I am having a major fatal error issue of my website. It has been down quite frequently. How can I solve this issue?
Fatal error: Cannot redeclare sdec() (previously declared in /home3/alanc929/public_html/wp-includes/vars.php:110) in /home3/alanc929/public_html/wp-includes/vars.php on line 177
White screen of fatal error
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Alan
This error comes up when a specific function is created more than once. The function in this case is called sdec. There isn’t a function by this name in the default file /wp-includes/vars.php – so it’s possible that something has modified your files.
One cause might be another plugin injecting this code into that file. It’s also possible that this is a malicious plugin, so I’d start by deleting plugins that you’ve downloaded from untrusted sources.
Here is a temporary solution for your particular case.
https://wordpress.org/support/topic/fatal-error-cannot-redeclare-sdec-2
Hi Greg
thanks for the replied. I had earlier solved the issue using the same link that you provided. Thanks mate.
Glad to hear you resolved Alan.
All the best with your site :)