Wordpress: fatal error no access on control panel/admin panel
-
20-12-2019 - |
Question
During a clean up of my plugins inside of Wordpress i deactivated the: smart archives reloaded plugin.
Next up: a fatal error when i refreshed the page.
Fatal error: Class 'SAR_Generator' not found in wp-content/themes/waldorf/functions.php on line 469
So i couldn't access the site and also the wp-admin / control panel anymore. Before the clean up i downloaded the whole folder for a backup.
- i replaced this folder with the backupped version: no change
- replaced functions.php / wp-admin & wp-includes: no change
- checked my wordpress version: 3.5.1 downloaded a fresh wordpress folder and replaced those wp-admin & wp-includes with the ones on the ftp: no change.
What to do ??????
Solution
It's difficult to provide a quick reply without seeing what the exact lines were in the waldorf theme that you have, however, it seems to be that the theme assumes that the Class 'SAR_Generator' is available by default and doesn't check if this isn't the case.
I suggest logging in via ftp and finding this section of code in your functions.php around line 469 and comment this out and possibly other lines that relate to this.