Support

Home Forums Event Espresso Premium Page not found after event published

Page not found after event published

Posted: February 26, 2019 at 9:32 am

Viewing 17 reply threads


Vernon

February 26, 2019 at 9:32 am

This is my first event creation. I created the questions, the tickets and customized the event page. After publishing I got the view page link, if I click on that or the link for the event, I get a page can not be found. As a newbie what might I be missing? – Thanks


Tony

  • Support Staff

February 26, 2019 at 9:35 am

Hi there,

Go to Dashboard -> Settings -> Permalinks.

What is it currently set to?

After opening the about setting page (you don’t need to do anything on the page), retry the link for your event, does it work then?


Vernon

February 26, 2019 at 9:44 am

Thanks for the quick response..
Set to:
Post name https://dev.setrac.org/sample-post/


Tony

  • Support Staff

February 26, 2019 at 10:00 am

So this is your event? https://dev.setrac.org/events/symposium/

That’s no longer giving a 404 page not found, but there is an error being thrown on that page currently.

If you check the servers error logs can you see any ‘fatal error’ entries there?

Your host will usually have a section on the control panel that allows you to view any errors being thrown on the site.


Vernon

February 26, 2019 at 12:11 pm

Tony, I did not see any FATAL errors in plesk logs. The only error I saw was The image at https://dev.setrac.org/wp-content/uploads/2017/09/SETRAC-Logo.png is not readable. Yet I am able to pull up that image. It is also the image I used in Event Espresso for the new logo.

Any other suggestions of where to look specifically ?

Thanks for you help


Tony

  • Support Staff

February 26, 2019 at 12:43 pm

Ok, add the code shown here:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

to your wp-config.php file and let me know when that’s done.

Are you aware you’re using a Windows server? Whilst some people do install and use WordPress on a Windows Server, its usually not a joyful experience for those users and I would highly recommend migrating the site to a linux stack.


Vernon

February 26, 2019 at 12:56 pm

OK I added the code to the end of the wp-config.php file.
You are correct WordPress is installed on a hosted Windows Server. Agree we are looking to migrating to linux server. Thanks again for your help.


Tony

  • Support Staff

February 26, 2019 at 2:55 pm

How far at the end is at the end? (I know, sorry)

It should be before this comment: /* That's all, stop editing! Happy blogging. */

But definitely before this:

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Like so: https://monosnap.com/file/qgsn1vmf8jrpXbPY8rM4e3U1bSKYxq

Or, because this is a dev/staging site (it is, right?) you could just use: define( 'WP_DEBUG', true ); and it will display the errors directly on the page.


Vernon

February 26, 2019 at 5:03 pm

This reply has been marked as private.


Vernon

February 26, 2019 at 5:06 pm

This reply has been marked as private.


Tony

  • Support Staff

February 27, 2019 at 2:23 am

The first one wouldn’t have worked, the second one is close, but you can only define something once so where it has:

define('WP_DEBUG', false);

Remove that.

Also, although you marked those replies private, those files contain a lot of information you don’t want to make public, I’d advise against posting all of that info anywhere online so I’ve removed it from the above posts as they aren’t needed for the above.


Vernon

February 27, 2019 at 6:01 am

Good morning, must say EXCELLENT SUPPORT. Thanks. Yes it is a dev / test page if it would be easier to trouble shoot and have the debug displayed on the page let me know what I need to do, is it replace the last two lines with define(‘WP_DEBUG’, false); ?

Short skinny change:

* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
// Enable WP_DEBUG mode
define( ‘WP_DEBUG’, true );
if ( WP_DEBUG ) {
@ini_set( ‘display_errors’, 0 );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
}/* That’s all, stop editing! Happy blogging. */


Vernon

February 27, 2019 at 6:46 am

This reply has been marked as private.


Tony

  • Support Staff

February 27, 2019 at 6:53 am

Hmm, ok, with the above, errors should be logged but they don’t appear to be.

Quick explanation:

// Enable WP_DEBUG mode
define( ‘WP_DEBUG’, true );

Tells WordPress to enable DEBUG mode, which basically means it tells your server to display all notices/warnings/errors on the page, you don’t want that set to true on a production site buts it is really useful on dev to see what errors are being thrown.

if ( WP_DEBUG ) {
@ini_set( ‘display_errors’, 0 );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
}

Says, if WP_DEBUG is enabled (set to true), then…

Don’t display errors at all – @ini_set( ‘display_errors’, 0 );

Log the errors – define( ‘WP_DEBUG_LOG’, true );
(That logs the errors to w /wp-content/debug.log file)

Just to be double sure, use the WordPress constant to tell WordPress to tell the server, not to display errors – define( ‘WP_DEBUG_DISPLAY’, false );
(Yes a bit of a mouthful but it covers all bases)

Now, if your site can’t create the debug.log itself, the above doesn’t work, nothing breaks it just doesn’t log the errors, being a windows server, its common for it not to have the correct permissions so this may be why I can’t view the log.

This is what I would do next:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
//if ( WP_DEBUG ) {
//    @ini_set( 'display_errors', 0 );
//    define( 'WP_DEBUG_LOG', true );
//    define( 'WP_DEBUG_DISPLAY', false );
//}
/* That’s all, stop editing! Happy blogging. */

// are PHP comments, meaning anything on that line is ignored, you can just remove them and leave define( 'WP_DEBUG', true ); if preferred.

The site might ‘blow up’ with this change, in that if errors/warnings/notices etc are being thrown the site will look a mess whilst the above is acitve, it doesn’t break anything and once you change it back they will be hidden again (they are still thrown even now, they just aren’t displayed).

Once that’s done, let me know and I’ll check again.


Vernon

February 27, 2019 at 7:12 am

Made changes to : // Enable WP_DEBUG mode
define( ‘WP_DEBUG’, true );
//if ( WP_DEBUG ) {
// @ini_set( ‘display_errors’, 0 );
// define( ‘WP_DEBUG_LOG’, true );
// define( ‘WP_DEBUG_DISPLAY’, false );
//}

Correct the site is now “the site can not be reached”


Tony

  • Support Staff

February 27, 2019 at 7:26 am

Correct the site is now “the site can not be reached”

That’s actually not what I meant by the site blowing up and shouldn’t happen, theres a few possible reasons for that error:

https://stackoverflow.com/questions/14039804/error-330-neterr-content-decoding-failed

Problem is we are not getting into server config and I have very little experience with Windows server.

If you set WP_DEBUG back to false the site should show once again.


Vernon

February 27, 2019 at 8:34 am

Tony, from the logs that I posted for you (dropdown-multisite-selector, ewww-image-optimizer, popup-builder, and wp-bitly) were showing problems (not within the allowed path) I deactivated all those plug ins and the event page is now displaying. I activated each one and was unable to determine which one was the root cause. After re-activating all the plug ins the event is still displaying. Thank you so much for your help!


Tony

  • Support Staff

February 27, 2019 at 10:48 am

I’m glad its up and running, but that’s a little annoying as we now just don’t know the cause.

For whatever reason (although I’m not surprised) your logs reply was flagged as spam, so I’m only just seeing that now.

The errors you’re getting all link to open_basedir restriction in effect

Which means you host is set up to only allow specific directories to run PHP, so its likely that as soon as anything tries to pull a file outside of that directory, things are going blow up again and stop working.

I’d recommend you contact your host and have them slacken off the above restriction a little so that plugins can access their own code at least.

Viewing 17 reply threads

The support post ‘Page not found after event published’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso