Website is not opening after plugins upgrade

kennysamuerto

Member
PartnerNOC
May 20, 2009
24
6
53
cPanel Access Level
Root Administrator
Hello,

It is a Wordpress bug, not a cPanel bug.

I recommend you to access your wp-config.php file, and edit the debug line to true.

Then access the site again, and you will see the error that you must fix for the site to work again.

Good luck
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
963
437
363
cPanel Access Level
DataCenter Provider
Check public_html/error_log and any other error_log files that you can find. The reason will normally be there. Could also be a PHP version compatibility issue (i.e. you need to switch to newer PHP). And yes, this is a WordPress/site issue, not a server issue.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
963
437
363
cPanel Access Level
DataCenter Provider
I'm also a fan of moving everything out of the plugin directory, and adding them back one by one until the problem happens.
If you simply rename them, it does the same thing. We typically rename them like:

example-plugin1 -> example-plugin1.disable

Then it's pretty easy to put them back.
 
  • Like
Reactions: cPRex

kdean

Well-Known Member
Oct 19, 2012
409
82
78
Orlando, FL
cPanel Access Level
Root Administrator
The error log should tell you which plugin is involved in the error. Also, If it's a recent wordpress version it's likely the wordpress admin has received an email with information and a link allowing login access to the site to disable the plugin.

If you need to move or disable plugin via FTP, you don't need to move them all. Just look at the modified dates and deal with the most recent ones.

Once you've disabled the problem plugin you could install the WP Rollback plugin to revert the problem plugin to a previous version to see if it restores the needed functionality without breaking the site anymore.
 

glmanager

Member
Jun 14, 2022
15
0
1
Chatswood
cPanel Access Level
Reseller Owner
Thanks guys.
I enabled debugging in wp_config.php file.
This is what I get when try to open the website.
Please advise what I should do no to fix it.

Notice: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66
Notice
: Undefined variable: place in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 66

Fatal error
: Uncaught Error: Call to undefined function split() in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php:75 Stack trace: #0 /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions.php(23): include() #1 /home/wpsite/public_html/wp-settings.php(566): include('/home/wpsite/p...') #2 /home/wpsite/public_html/wp-config.php(96): require_once('/home/wpsite/p...') #3 /home/wpsite/public_html/wp-load.php(50): require_once('/home/wpsite/p...') #4 /home/wpsite/public_html/wp-blog-header.php(13): require_once('/home/wphylec/p...') #5 /home/wpsite/public_html/index.php(17): require('/home/wpsite/p...') #6 {main} thrown in /home/wpsite/public_html/wp-content/themes/rttheme11_old/functions/rt_ud_sidebars.php on line 75
 

kdean

Well-Known Member
Oct 19, 2012
409
82
78
Orlando, FL
cPanel Access Level
Root Administrator
"Uncaught Error: Call to undefined function split()" indicates that you likely updated PHP as well. Split was removed from PHP in version 7.0. If you have a more recent version of the theme, that likely has the fix. If that's not an option, you need to switch back to PHP 5.6.

If that's the only issue, you may be able to just replace the split() function where indicated with the preg_split() function.

http://php.adamharvey.name/manual/en/function.split.php
 

kdean

Well-Known Member
Oct 19, 2012
409
82
78
Orlando, FL
cPanel Access Level
Root Administrator
If you also updated wordpress you may need to roll that back to a much earlier version as well, since old themes don't usually work that well in the latest version of Wordpress. Then the plugins you updated may need to revert as well since they may not be compatible with older versions of wordpress you revert to.

Does your host have a backup from before all the updates, that may be the best route to get everything back to how it was.