WordPress.org

Forums

Events Manager
[resolved] eventcategory error code shows on side (10 posts)

  1. oes
    Member
    Posted 1 year ago #

    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
    a.

    http://wordpress.org/plugins/events-manager/

  2. Philip John
    Member
    Posted 1 year ago #

    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.

    Thanks,
    Phil

  3. oes
    Member
    Posted 1 year ago #

    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:

    <?php
    //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!

  4. Philip John
    Member
    Posted 1 year ago #

    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.

    Thanks

  5. oes
    Member
    Posted 1 year ago #

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

  6. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Just to check something, is

    define('WP_DEBUG', false);

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

  7. oes
    Member
    Posted 1 year ago #

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

  8. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Try adding

    error_reporting(0);

    directly under this line:

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

    in your wp-config.php file.

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    or ask your hosts to disable the display_errors php setting

  10. oes
    Member
    Posted 1 year ago #

    thank youuuuuu!

    the error_reporting(0); solution

    -> worked for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic