Title: Plugin causing fatal error
Last modified: June 19, 2023

---

# Plugin causing fatal error

 *  Resolved [winetravelista](https://wordpress.org/support/users/winetravelista/)
 * (@winetravelista)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/)
 * WordPress is saying the WordPress Popular Posts plug-in is causing a fatal error
   on my site. I have deactivated it in recovery mode, but if I activate it again,
   it gives me the same error message.
 * Here are the error details:
 * Error Details
   =============An error of type E_ERROR was caused in line 1443 of
   the file /home/nginx/domains/winetravelista.com/public/wp-content/plugins/wordpress-
   popular-posts/src/Admin/Admin.php. Error message: Uncaught Error: Call to undefined
   function WordPressPopularPosts\Admin\_esc_html_e() in /home/nginx/domains/winetravelista.
   com/public/wp-content/plugins/wordpress-popular-posts/src/Admin/Admin.php:1443Stack
   trace:#0 /home/nginx/domains/winetravelista.com/public/wp-includes/class-wp-hook.
   php(308): WordPressPopularPosts\Admin\Admin->notices()#1 /home/nginx/domains/
   winetravelista.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#
   2 /home/nginx/domains/winetravelista.com/public/wp-includes/plugin.php(517): 
   WP_Hook->do_action()#3 /home/nginx/domains/winetravelista.com/public/wp-admin/
   admin-header.php(303): do_action()#4 /home/nginx/domains/winetravelista.com/public/
   wp-admin/edit.php(407): require_once(‘/home/nginx/dom…’)#5 {main}  thrown
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causing-fatal-error-11%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831769)
 * Hi [@winetravelista](https://wordpress.org/support/users/winetravelista/),
 * Sorry to hear you’re having issues with the latest version of the plugin.
 * Can you please share more details about your setup? For example, WordPress version?
 * In the meantime I’ll get you a test version that should fix this problem so you
   can try it out (so thanks for reporting).
 * **Edit:** Alright, [here it is](https://sandbox.cabrerahector.com/wpp/wordpress-popular-posts.zip).
   Please download it and install it on your site (Plugins > Add New, then click
   on the Upload Plugin button at the top left of the screen, WordPress will tell
   you that the plugin is already installed on your website, click on “Replace current
   with uploaded”, activate the plugin again and report back your results).
    -  This reply was modified 2 years, 11 months ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
 *  [scotttripatrek](https://wordpress.org/support/users/scotttripatrek/)
 * (@scotttripatrek)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831930)
 * I am getting the same error with this plugin since it updated earlier today.
   
   I downlaoded and added that new plugin you linked above but getting the same 
   error when it activates.
 * WordPress version 6.2.2
   Active theme: Responsive (version 4.8.4)Current plugin:
   WordPress Popular Posts (version 6.1.2)PHP version 8.0.27
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831940)
 * Thanks for the update, [@scotttripatrek](https://wordpress.org/support/users/scotttripatrek/).
 * Alright, please follow the same process except [download this zip file](https://downloads.wordpress.org/plugin/wordpress-popular-posts.6.1.1.zip)
   instead to downgrade to version 6.1.1 while I work on a different solution.
 * I’ll post a new test zip in a few hours so you guys can try it out (as I’m unable
   to reproduce that error myself, everything works fine on three different websites
   I tested).
 *  [scotttripatrek](https://wordpress.org/support/users/scotttripatrek/)
 * (@scotttripatrek)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831949)
 * Thanks for the quick response. I have re-installed the previous version and site
   working again. Will wait for your update on latest version
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831950)
 * Actually, scratch that.
 * [@scotttripatrek](https://wordpress.org/support/users/scotttripatrek/) [@winetravelista](https://wordpress.org/support/users/winetravelista/)
   please try [this version](https://sandbox.cabrerahector.com/wpp/wordpress-popular-posts.zip)
   instead. It should fix the problem for you.
 * Once you confirm it does please let me know and I’ll release version 6.1.3 right
   away with this patch.
 *  [scotttripatrek](https://wordpress.org/support/users/scotttripatrek/)
 * (@scotttripatrek)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831957)
 * Thanks. Installed that new version – Version 6.1.2
 * Working fine now.
 * I am getting the message displayed on my site ‘
 * **Important notice for administrators:** The WordPress Popular Posts “classic”
   widget is going away!
 * This widget has been deprecated. Please replace it with the WordPress Popular
   Posts block or the wpp shortcode as soon as possible.’
 * I saw separate support post about this, so will read through how to resolve this.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16831961)
 * Terrific, I can go to bed in peace then haha. Thanks for helping out, [@scotttripatrek](https://wordpress.org/support/users/scotttripatrek/)!
 * Regarding the deprecation notice, please see [here](https://cabrerahector.com/wordpress/wordpress-popular-posts-6-1-0-improved-php-8-1-support-plus-minor-enhancements/#6.1.2).
 *  Thread Starter [winetravelista](https://wordpress.org/support/users/winetravelista/)
 * (@winetravelista)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16833629)
 * Thanks for getting this resolved so quickly! The new release solved the issue
   for me too.
 * I’m also getting the same error about the classic widget going away.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16833685)
 * Not really an error, it’s a notice (semantics, I know, but they’re really not
   the same thing.)
 * Basically, I’m letting you guys know in advance that the widget you’re using 
   on your site’s sidebar (or wherever it might be) is going to be removed from 
   the plugin sometime in the near(ish) future (no ETA, but it won’t be right away
   so you have time to make all necessary changes).
 * To avoid having your popular posts list disappear from your website you should
   replace the “classic” widget with either the [WordPress Popular Posts block](https://cabrerahector.com/wordpress/wordpress-popular-posts-5-3-improved-php-8-support-retina-display-support-and-more/#block-editor-support)
   or the [[wpp] shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages#the-wpp-shortcode).
 * Since the original issue has been fixed I’m marking this topic as resolved. Please
   feel free to leave a comment here (or in a new thread) if you have additional
   questions.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Plugin causing fatal error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-11/#post-16833685)
 * Status: resolved