• Used the plug in to clear the cache for a separate issue.

    Now I am getting lots of Undefined Index errors all over the site. What is causing this and how can I fix?

    Examples:

    Notice: Undefined index: active in/home/sites/tradehelp.co.uk/public_html/testweb/wp-content/themes/tradehelp/page.php on line 7

    Notice: Undefined property: WP_Error::$count in /home/sites/tradehelp.co.uk/public_html/testweb/wp-content/themes/tradehelp/includes/blocks/section-promotion.php on line 4

    Thanks!
    Lee

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hi Lee,

    If you look at the error, it says what file the error is in. It looks like the error is coming from your theme. You’ll have to contact your theme developer for some help on clearing up the issue.

    Thread Starter leeldesign

    (@leeldesign)

    Hi, yes but there are 20-30 different undefined index where page sections should be, which only happened after I cleared the cache, it was working fine before.

    Thanks,
    Lee

    Plugin Author webheadcoder

    (@webheadllc)

    Hi,

    If you’re only seeing errors after the cache was cleared that just means you were viewing cached pages while your website was having issues.

    Check if anything has changed such as:
    – If your wp-config.php file has changed. If the WP_DEBUG constant was enabled, this would cause the errors to suddenly show.
    – If your theme has been updated recently. Changes could have broken things on your website and only started showing up after the cached pages without the errors were cleared.
    – Changes to your theme settings could also have caused issues which the theme was not expecting.
    – Any custom code that alters the theme

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple ‘Notice: Undefined index: active’ errors after clearing cache’ is closed to new replies.