• Hi all,

    Have recently updated some bits of WordPress and now our site is completely down showing a “critical error”. We are unable to access the WP admin to see where the error may be, but Im assuming its a PHP issue from one of the error reports I could find. I’m not sure what version PHP it is, but I would imagine its very outdated.

    [27-Jul-2021 12:20:42 UTC] PHP Fatal error: Cannot redeclare simple_bootstrap_display_post_meta() (previously declared in /home/mikeandeugene17/public_html/wp-content/themes/rec-child-theme/functions.php:166) in /home/mikeandeugene17/public_html/wp-content/themes/simple-bootstrap/functions.php on line 257

    I’m pretty sure that our web person hasn’t kept up with the updates as we have had issues with updates killing the site before.

    I will say now, that I have very very limited knowledge with any of this sort of thing (although, learning more since the problem). I’ve tried disabling the plugins in file manager, but a little worried about making any other changes (little knowledge is dangerous ;-)) that may cause even further issues.

    Any help and advice would be greatly appreciated

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sure what exactly was updated.

    This error is simply telling you that a same function is being created again in simple-bootstrap theme which was already created in rec-child-theme. Give a different name to that function and it should fix it.

    Find the simple_bootstrap_display_post_meta() function in your themes’ functions.php file, and remove it.
    The error message is quite clear.

    Thread Starter themagician777

    (@themagician777)

    Thank you both for the help its much appreciated. Please bear with me, Im a complete noob when it comes to all this techie stuff.
    Which theme function.php file should I be deleting that line from (the child theme or simple bootstrap one)?

    Many thanks

    Your theme’s functions.php.
    I’d rather not change the plugin code.

    You a?so should check, what that function is doing, maby it was meamt to override aspects of the plugin.

    Example:

    
    function very_importan_func($some_variable) {
      //code that does impressive things
    }
    

    To make the above function not interfere with anything, you can for example rename it, so “very_importan_func” becomes “other_name”.
    Or delete the whole thing.

    • This reply was modified 3 years, 7 months ago by danthefan.
    Thread Starter themagician777

    (@themagician777)

    Thanks Dan, your help is much appreciated ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Website down and unable to access wp admin’ is closed to new replies.