• Resolved brit77

    (@brit77)


    Hi,
    I just moved to a new Litespeed host and installed this plugin per their recommendation.

    My error log is sporadically filling with the following:

    Notice: Undefined index: WP_Widget_Recent_Posts in /home/mysite/public_html/wp-content/plugins/litespeed-cache/src/purge.cls.php on line 965

    It seems to happen several times in succession, at times when I am not working on the site. This morning it logged at 09:52:29, 09:52:35, 09:53:18, 09:53:23, 09:53:58, 09:54:04 and then one more time at 12:31:24.

    Is there some setting or configuration that can prevent this? Any insight would be appreciated.

    Thanks!
    Sarah

    • This topic was modified 4 years, 4 months ago by brit77.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please create a php file in your site root directory

    with code

    <?php
    require( './wp-load.php' );
    global $wp_widget_factory;
    $recent_posts = $wp_widget_factory->widgets['WP_Widget_Recent_Posts'];
    var_dump($recent_posts);

    then access it from browser, and see what it returns ?

    Best regards,

    Thread Starter brit77

    (@brit77)

    I did as you said. When I access it file, I see only:
    NULL

    Thread Starter brit77

    (@brit77)

    P.S. And in the error log:
    Notice: Undefined index: WP_Widget_Recent_Posts in /home/site/public_html/test.php on line 4

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please verify that if you have recent post widget in your wordpress ?

    Best regards,

    Thread Starter brit77

    (@brit77)

    No, there is no recent post widget on this site. I believe it is disabled in the functions file. Could that be causing the error? To test, I can comment out the code that removes the widget.

    Thanks,
    Sarah

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes, from the error report , it seems “can’t find recent widget”

    Best regards,

    Thread Starter brit77

    (@brit77)

    I re-enabled the recent posts widget, and after several days the error has not occurred again. So, that was definitely what was causing it! Ideally, I’d like to keep this widget disabled to streamline the widgets visible to my clients (this is not one I ever use). Any chance there’s a way to circumvent this error without having to keep this unnecessary widget? I appreciate your help. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Undefined index: WP_Widget_Recent_Posts Notice’ is closed to new replies.