• Hello,

    I’m trying to deactivate Nelio Content plugin in a staging site created with WP Staging but I’m getting a fatal error and can’t deactivate it:

    Fatal error: Uncaught Error: Class ‘Nelio_Content_Analytics_Helper’ not found in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php:37 Stack trace: #0 /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/nelio-content.php(47): Nelio_Content_Deactivator::deactivate() #1 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(286): deactivate_nelio_content(false) #2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/cebsolut/public_html/staging01/wp-admin/includes/plugin.php(792): do_action(‘deactivate_neli…’, false) #5 /home/cebsolut/public_html/staging01/wp-admin/plugins.php(192): deactivate_plugins(‘nelio-content/n…’, false, false) #6 {main} thrown in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php on line 37

    I know it isn’t supposed to work in staging sites (https://monosnap.com/file/Yj8LOzAdWKl3OaYaF7HwCmrcBO6UoS) and that’s not the purpose here. Just to deactivate it.

    How to accomplish it?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author David Aguilera

    (@davilera)

    That’s strange, Pedro. Well, if you can’t disable it, you can do so by simply accessing your site via FTP and removing the folder nelio-content in wp-content/plugins/.

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi, David

    That would be a workaround but I prefer to do it from admin dashboard. WP Staging push the fix to you as the message apparently is originated from Nelio plugin.

    Could you look at it and suggest a fix? Or clarify what is happening and I would check back with WP Staging developer?

    Thanks

    Plugin Author David Aguilera

    (@davilera)

    Hi Pedro,

    Basically, the problem is that WordPress can’t find class Nelio_Content_Analytics_Helper when deactivating Nelio Content. But this is weird, because when I deactivate the plugin in the Dashboard, it does find said class (as it’s included in our plugin’s autoloader).

    I don’t know why you can’t deactivate the plugin… but maybe it has something to do with WP Staging. I’m sorry I can’t be more helpful ??

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Thanks, David

    Back to the WP Staging developer ??

    Hi @pchenriques,

    did you already try to disable the plugin on the live site as well to check if you get there the same error?

    Do you get the same error on a fresh staging site with no modifications?
    ?
    ?I’ve tried to reproduce the issue and installed nelio on a test site which I’ve cloned then.
    ?
    ?Then I disabled the plugin on the staging site without any issues. It works flawlessly for me.
    ?So I am sorry but I really have no clue why you get the nelio error on your website.
    ?
    ?It may be worth to disable all other plugins first, then try again to disable nelio to see if one of your other installed plugins on your staging site is causing this issue.

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi @renehermi

    I get no error while disabling Nelio plugin on the live site. I get the error on a fresh created site The error I get on the staging site.

    In a fresh staging site, with all but Nelio plugin disabled (https://monosnap.com/file/5xZazs8D3rnNFKdWzQFDMf1BuOwOYa), I still got the error when trying to disable it:

    Fatal error: Uncaught Error: Class ‘Nelio_Content_Analytics_Helper’ not found in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php:37 Stack trace: #0 /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/nelio-content.php(47): Nelio_Content_Deactivator::deactivate() #1 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(286): deactivate_nelio_content(false) #2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/cebsolut/public_html/staging01/wp-admin/includes/plugin.php(792): do_action(‘deactivate_neli…’, false) #5 /home/cebsolut/public_html/staging01/wp-admin/plugins.php(192): deactivate_plugins(‘nelio-content/n…’, false, false) #6 {main} thrown in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php on line 37

    @renehermi, meanwhile, the other similar issue I was dealing with was solved (https://www.ads-software.com/support/topic/deactivating-the-events-calendar-is-causing-technical-difficulties/#post-11681848) althougt in the case of Nelio I don’t have any custom function.

    Does this help solve this problem?

    Thanks

    Does the file nelio-content\includes\class-nelio-content-analytics-helper.php exist in the staging site?

    Is the nelio plugin version equal on live and staging site?

    From the error description, it looks like the nelio autoloader was not able to load this class when the plugin is going to be disabled by you.

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi @renehermi

    Yes, nelio-content\includes\class-nelio-content-analytics-helper.php exists in staging site.

    Yes, same version (fresh new staging site).

    With all plugins deactivated (by renaming nelio-content folder…), I can activate Nelio Content plugin from the admin dashboard but get same error when trying to deactivated).

    I try also to deleted the plugin from the staging site, install it again, activated it but when trying to deactivated got the same error. All other plugins were disabled through the process.

    Any new hint to solve it?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error on deactivating plugin’ is closed to new replies.