Support

Home Forums Event Espresso Premium "Undefined variable: post_class…" appearing at the top of every event.

"Undefined variable: post_class…" appearing at the top of every event.

Posted: December 26, 2014 at 11:19 pm

Viewing 4 reply threads


jpacooper

December 26, 2014 at 11:19 pm

Today I took my website live, updated it to the latest version of wordpress and activated my event espresso 4 key. Previously I was creating the website offline with MAMP. Now when I go to the event registration page, I am seeing an error displaying at the top. Could you please advise what this is and how to remove it? It shouldn’t be the kind of thing viewable to the public.

Below is a link to the screenshot:

http://tinypic.com/r/2z6xjcn/8

Thanks in advance.


Dean

December 29, 2014 at 1:14 am

Hi,

Please make sure that wp_debug is set to False in your wp-config.php

More info: http://codex.wordpress.org/WP_DEBUG


jpacooper

December 29, 2014 at 4:23 am

Ok thanks, I’ll try that out. Can I still make changes in wordpress with the debug set to false (sorry, I’m new to this stuff)


Tony

  • Support Staff

December 29, 2014 at 6:10 am

Hi,

WP_Debug just tells WordPress to enable error_reporting on your site/server.

In production you usually do not not want errors to be reported to your visitors, so generally this should be set to FALSE on productions sites. You can log the errors but depending on what the error/warning/notice is your log file can become very large very quickly.

So yes you can disabled WP_Debug and work within the Admin without issue.


jpacooper

December 29, 2014 at 5:08 pm

I set debug to false and it’s all fixed. Thanks a lot for your help guys!

Viewing 4 reply threads

The support post ‘"Undefined variable: post_class…" appearing at the top of every event.’ 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