• Need an help with this. After an upload of a png on default thumbnail image, Wp Popular crashed (high traffic site). i try deactivate the plugin, but if i re-activate still crashing. So i need to find where i can set back the thumbnail default image to none (DB table?) or in alternative i ask if i delete the plugin and reinstalling it will solve the problem (or keep some setting saved?). Using PHP 7.4 – wordpress6.11 and the latest release of WP Popular post, thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter samdoomboom

    (@samdoomboom)

    Update: on a staging site i try to replicate the problem and BOOM here it is:

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /home/*****/env/staging/wp-includes/capabilities.php:873 Stack trace: #0 /home/*****/env/staging/wp-includes/functions.php(3531): current_user_can(‘unfiltered_html’) #1 /home/****/env/staging/wp-includes/formatting.php(2073): get_allowed_mime_types() #2 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Helper.php(337): sanitize_file_name(‘cropped-cropped…’) #3 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Image.php(67): WordPressPopularPosts\Helper::is_image_url(‘https://staging…’) #4 /home/*****/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(33): WordPressPopularPosts\Image->__construct(Array) #5 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(105): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #6 /home/*****/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(89): WordPressPopularPosts\Container\Container->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #7 /home/*****/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(44): WordPressPopularPosts\Container\Container->offsetGet(‘image’) #8 /home/*******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(105): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #9 /home/********/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(89): WordPressPopularPosts\Container\Container->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #10 /home/*******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(111): WordPressPopularPosts\Container\Container->offsetGet(‘output’) #11 /home/********/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(105): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #12 /home/*******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(89): WordPressPopularPosts\Container\Container->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #13 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(119): WordPressPopularPosts\Container\Container->offsetGet(‘widget_endpoint’) #14 /home/*******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(105): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #15 /home/*******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(89): WordPressPopularPosts\Container\Container->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #16 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/WordPressPopularPostsConfiguration.php(144): WordPressPopularPosts\Container\Container->offsetGet(‘rest’) #17 /home/*********/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(105): WordPressPopularPosts\Container\WordPressPopularPostsConfiguration->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #18 /home/*********/env/staging/wp-content/plugins/wordpress-popular-posts/src/Container/Container.php(89): WordPressPopularPosts\Container\Container->WordPressPopularPosts\Container\{closure}(Object(WordPressPopularPosts\Container\Container)) #19 /home/******/env/staging/wp-content/plugins/wordpress-popular-posts/src/Bootstrap.php(18): WordPressPopularPosts\Container\Container->offsetGet(‘wpp’) #20 /home/*********/env/staging/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php(38): require(‘/home/*******/…’) #21 /home/**********/env/staging/wp-settings.php(447): include_once(‘/home/*******/…’) #22 /home/********/env/staging/wp-config.php(104): require_once(‘/home/******/…’) #23 /home/*******/env/staging/wp-load.php(50): require_once(‘/home/******/…’) #24 /home/*******/env/staging/wp-blog-header.php(13): require_once(‘/home/*******/…’) #25 /home/*******/env/staging/index.php(17): require(‘/home/*******/…’) #26 {main} thrown in?/home/*******/env/staging/wp-includes/capabilities.php?on line?873

    I experienced the same problem.
    Probably some conflict with other plugin, I have not time yet to debug in this way, in any case I think is necessary made a change to avoid this eventual conflict.
    My quick fix was find in the {YOURPREFIX}_option table the option name: wpp_settings_config and remove the path of the thumb.
    This meaning that is not possible change the default thumb image but reolve the fatal error.

    Regards

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey guys,

    Issue has already been reported here. However, I can’t seem to replicate this:

    1. Brand new WordPress website, the only active plugin is WordPress Popular Posts.
    2. Went to Settings > WordPress Popular Posts > Tools, replaced the stock “No Thumbnail” with a .png image I just created.
    3. Clicked on the Apply button to save changes.

    Everything went as expected. No PHP fatal errors whatsoever.

    So:

    • Can this problem be replicated with all of the other plugins disabled?
    • WordPress version?
    • Any other info that may be helpful?
    Thread Starter samdoomboom

    (@samdoomboom)

    As i wrote before wp is 6.11. Unfortunally actually i can’t test each plugin to understand if there is a conflict and wich one is. Maybe is a problem about WP Popular that try to set the thumbnail on a full loaded site full of old post (more than 5.000)… By the way what @sriva suggest seems a good option to go back to functionality – AND NOT TRY to set a default thumbnail image again (or the problem still there). Cheers

    Plugin Author Hector Cabrera

    (@hcabrera)

    I honestly doubt that the issue is linked to the number of posts the site has as the error message is related to user role / permissions (Uncaught Error: Call to undefined function wp_get_current_user() in /…/wp-includes/capabilities.php).

    Please try following these troubleshooting instructions and report back your results.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnail Image Crashing’ is closed to new replies.