Support » Plugin: Events Manager » eventcategory error code shows on side

  • Resolved oes


    i got this bug on my site (sorry the site is still on my sever, so you can not find it on www). it happens if i am calling a eventcategory..
    does anyone know how to get rid of it?

    Warning: Creating default object from empty value in /Applications/MAMP/htdocs/cms/wp-content/plugins/events-manager/classes/em-category-taxonomy.php on line 22

    happy for help

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hiya,

    It looks like you have WP_DEBUG turned on. As this is not a critical error it shouldn’t be causing you any issues and you should turn WP_DEBUG off to get rid of it.


    thank you for your quick answer.
    in the wp_config.php the value is set to false see here: */define(‘WP_DEBUG’, flase); so that is not the problem,right?
    or is it in the em-debug.php?

    (it starts:

    //set debug mode on.
    function dbem_debug_option($option){
    	global $dbem_debug_options;
    	return $dbem_debug_options[$option];

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    how do i turn it of then?
    thanxs for help!

    Actually, the code you posted for WP_DEBUG is wrong:
    define('WP_DEBUG', flase);

    As ‘false’ is spelt incorrectly it will be turning WP_DEBUG on.

    Please correct the spelling and the error should disappear.


    sorry, my fault – now it is:
    define(‘WP_DEBUG’, false);
    but still doesn’t help?

    Plugin Support caimin_nwl


    NetWebLogic Support

    Just to check something, is

    define('WP_DEBUG', false);

    on a line on its own, without a /* or // before it?

    correct, there are no /* */ or //

    Plugin Support caimin_nwl


    NetWebLogic Support

    Try adding


    directly under this line:

    require_once(ABSPATH . 'wp-settings.php');

    in your wp-config.php file.

    Plugin Author Marcus


    or ask your hosts to disable the display_errors php setting

    thank youuuuuu!

    the error_reporting(0); solution

    -> worked for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘eventcategory error code shows on side’ is closed to new replies.