Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, thanks for that bug report. I’m looking into it, trying to reproduce it. What version of WP, PHP, MySQL are you using? You can email me directly if you don’t want to post that info publicly. Mike

    Thread Starter djeyewater

    (@djeyewater)

    Hi Mike

    You can see the error if you have error reporting turned on. in my wp-config.php I have:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    ini_set('display_errors',0);

    (I’m actually trying to debug a problem with wp-cron not working, but it is difficult when the error logs are full of errors from unrelated things).

    If you look at the function ksuce_exclude_categories (line 102 in ultimate-category-excluder.php) you’ll see that you’re trying to add an item to the array $array2.
    $array2[$mbccount] = $value;
    But $array2 is not declared in the function, so PHP throws this Notice. It is a notice, not a critical error.

    It can be fixed by declaring $array2 as an array at the start of the function (the fix I put in my previous post).

    Cheers

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP error’ is closed to new replies.