Support

Home Forums Event Espresso Premium Error "event_post.php on line 60"

Error "event_post.php on line 60"

Posted: September 3, 2013 at 7:16 am

Viewing 11 reply threads


Klaus M

September 3, 2013 at 7:16 am

Hi guys,

after saving my event, and publish a post with it i receive the following error on that page:

TITLE
Posted on: Oktober 12th, 2013 by admin No Comments
Warning: Creating default object from empty value in /…/…/…/htdocs/xxxxx/wp-content/plugins/event-espresso/templates/event_post.php on line 60
Saturday October 12, 2013 – Sunday October 13, 2013

what went wrong?

thanks for your help!


Josh

  • Support Staff

September 3, 2013 at 2:36 pm

Hi Klaus,

That’s an interesting error message. Can you let us know which version of Event Espresso is installed along with the WordPress version number?

Also, has anything been customized within the /templates/event_post.php template?


Klaus M

September 3, 2013 at 3:04 pm

No nothing. I even uploaded the original event_post.php file to make sure everything is original. What i did: i customized the event-espresso/includes/functions/email.php according to Tonys help from https://eventespresso.com/topic/e-mail-tags-custom-text-links-only/ (LINE32/85)

Everything else is original. I run WP 3.6 with Event Espresso – 3.1.34.1.P


Klaus M

September 3, 2013 at 3:08 pm

Now i have uploaded the original “event-espresso/includes/functions/email.php”-FILE but error still exists ;(


Josh

  • Support Staff

September 4, 2013 at 11:57 am

Hi Klaus,

I believe that you’re seeing this error because 1) Your server is running PHP 5.4 and 2) error display is turned on. Error display should only be turned on while a website is under development. It should never be set to display while in production.

While the code in question in event_post.php will need to be updated in order to not throw warnings on servers running PHP 5.4, you can set error display to off by adding this line to your wp-config.php file above any require_once or include commands:

@ini_set('display_errors','Off');


Klaus M

September 4, 2013 at 12:48 pm

thanks. i’ll try that later. so, 5.4 is too old for EE?


Josh

  • Support Staff

September 4, 2013 at 1:09 pm

Hi Klaus,

PHP 5.4 is a bit on the newer side. Many web servers are still on PHP 5.2, some are on 5.3, and a few have updated to 5.4.


Klaus M

September 4, 2013 at 1:39 pm

Hm, unfortunately that did not work. The error message shows as it did before.
I edited the wp-config.php as follows:

<code>/** Sets up WordPress vars and included files. */
@ini_set(&#039;display_errors&#039;,&#039;Off&#039;);
require_once(ABSPATH . &#039;wp-settings.php&#039;);</code>


Klaus M

September 4, 2013 at 1:40 pm

<code>/** Sets up WordPress vars and included files. */
@ini_set(&#039;display_errors&#039;,&#039;Off&#039;);
require_once(ABSPATH . &#039;wp-settings.php&#039;);</code>


Klaus M

September 4, 2013 at 1:40 pm

/** Sets up WordPress vars and included files. */
@ini_set(‘display_errors’,’Off’);
require_once(ABSPATH . ‘wp-settings.php’);


Josh

  • Support Staff

September 4, 2013 at 2:41 pm

Hi Klaus,

Please be sure that wp_debug is set to off in the same file:

define('WP_DEBUG', false);

and then you can try updating the event that the post was generated from.


Klaus M

September 4, 2013 at 2:50 pm

define('WP_DEBUG', false);
was already inside the file. updating the EE event was the thing to do! thanks. no errors anymore.

Viewing 11 reply threads

The support post ‘Error "event_post.php on line 60"’ 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