Activate Code Snippets plugin crashes website

[ad_1]

Hi @osinteractive,

The article you linked to is for a different plugin from WPCode.

In WPCode you can enable safe mode by adding ?wpcode-safe-mode=1 to the URL as explained in this article: https://wpcode.com/docs/php-error-handling-safe-mode/

That should allow you to recover access to your website and deactivate the faulty snippet.

Thanks, I added this to the plugin page and then clicked Activate – the site immediately crashed with 503:

https://domain/wp-admin/plugins.php?wpcode-safe-mode=1

After activating the plugin, you will need to access the admin with the safe mode parameter again:

https://domain/wp-admin/?wpcode-safe-mode=1

The parameter will not work when activating the plugin since it will only work after the plugin has been activated, it has no effect in the activation process.

This might not work at first since it seems like your snippet is causing an error on the server that is using up all memory or something similar but I suggest clearing the cache in your browser and trying it a few times until you get in.

Ah problem solved, I was able to reload the admin console to disable the faulty snippet.

using https://domain/wp-admin/?wpcode-safe-mode=1

Thanks!!!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer