• Resolved sinergyinaction

    (@sinergyinaction)


    Hi,
    I have the following problem (see below) in a localhost based site, which I restored (or actually migrated would be the more correct term) from a previous back-up.
    After doing the restoration using updraft-plus (with which I had done the back-up previously) I replaced the references to the urls of the original site with the ones of the current site.
    After selecting the theme, when I try to login, that is calling the url https://localhost/p4r (which is where the backup is now running) I get the following message:

    Fatal error: Uncaught Error: Call to undefined function create_function() 
    in D:\xampp\htdocs\p4r\wp-content\themes\peak\framework\option-tree\includes\ot-functions-admin.php:69 
    Stack trace: 
    #0 D:\xampp\htdocs\p4r\wp-includes\class-wp-hook.php(303): ot_register_theme_options_page('') 
    #1 D:\xampp\htdocs\p4r\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) 
    #2 D:\xampp\htdocs\p4r\wp-includes\plugin.php(470): WP_Hook->do_action(Array) 
    #3 D:\xampp\htdocs\p4r\wp-settings.php(578): do_action('init') 
    #4 D:\xampp\htdocs\p4r\wp-config.php(96): require_once('D:\\xampp\\htdocs...') 
    #5 D:\xampp\htdocs\p4r\wp-load.php(50): require_once('D:\\xampp\\htdocs...') 
    #6 D:\xampp\htdocs\p4r\wp-admin\admin.php(34): require_once('D:\\xampp\\htdocs...') 
    #7 D:\xampp\htdocs\p4r\wp-admin\index.php(10): require_once('D:\\xampp\\htdocs...') 
    #8 {main} thrown in D:\xampp\htdocs\p4r\wp-content\themes\peak\framework\option-tree\includes\ot-functions-admin.php on line 69
    
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    and can’t access the admin interface any longer. However the site itself is still running
    What can I do to access the admin interface (and fix the problem which is apparently have to do with the theme I am using)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Your peak theme seems to be the error.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename or delete the directory of your currently active theme. That will force your site to use the default theme (Twenty Twenty-one etc.).

    That should let you access dashboard.

    Next, report the issue at the support of that theme’s developers.

    Thread Starter sinergyinaction

    (@sinergyinaction)

    Thank you @t-p !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error after selecting theme’ is closed to new replies.