Local: Fatal Error after switching Theme
-
I was working on the Local backend of WordPress(https://localhost:8888/portfolio/). I used my own theme originally and switched to one of the twenty-twenty themes. It was fine but when I checked the local WordPress backend again after my computer went into sleep mode and came back, the backend of WordPress got 2 Fatal errors below and I cannot see any backend of WordPress other than those 2 error messages. Could you please help me how to fix it and/ or change the theme to my theme?
Message 1
Fatal error: Uncaught Error: Call to undefined function fwd_register_custom_post_types() in /Applications/MAMP/htdocs/portfolio/wp-content/themes/michiko-portfolio/inc/cpt-taxonomy.php:56 Stack trace: #0 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-hook.php(309): portfolio_rewrite_flush(‘Twenty Twenty-O…’) #1 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /Applications/MAMP/htdocs/portfolio/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /Applications/MAMP/htdocs/portfolio/wp-includes/theme.php(3377): do_action(‘after_switch_th…’, ‘Twenty Twenty-O…’, Object(WP_Theme)) #4 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-hook.php(307): check_theme_switched(”) #5 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #6 /Applications/MAMP/htdocs/portfolio/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #7 /Applications/MAMP/htdocs/portfolio/wp-settings.php(598): do_action(‘init’) #8 /Applications/MAMP/htdocs/portfolio/wp-config.php(96): require_once(‘/Applications/M…’) #9 /Applications/MAMP/htdocs/portfolio/wp-load.php(50): require_once(‘/Applications/M…’) #10 /Applications/MAMP/htdocs/portfolio/wp-blog-header.php(13): require_once(‘/Applications/M…’) #11 /Applications/MAMP/htdocs/portfolio/index.php(17): require(‘/Applications/M…’) #12 {main} thrown in /Applications/MAMP/htdocs/portfolio/wp-content/themes/michiko-portfolio/inc/cpt-taxonomy.php on line 56
There has been a critical error on this website.`Message 2
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /Applications/MAMP/htdocs/portfolio/wp-content/plugins/sg-security/templates/error.php:111 Stack trace: #0 /Applications/MAMP/htdocs/portfolio/wp-content/plugins/sg-security/core/Helper/Helper.php(111): include() #1 /Applications/MAMP/htdocs/portfolio/wp-includes/functions.php(3713): SG_Security\Helper\Helper->custom_wp_die_callback(Object(WP_Error), ”, Array) #2 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-fatal-error-handler.php(234): wp_die(Object(WP_Error), ”, Array) #3 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-fatal-error-handler.php(153): WP_Fatal_Error_Handler->display_default_error_template(Array, Object(WP_Error)) #4 /Applications/MAMP/htdocs/portfolio/wp-includes/class-wp-fatal-error-handler.php(57): WP_Fatal_Error_Handler->display_error_template(Array, Object(WP_Error)) #5 [internal function]: WP_Fatal_Error_Handler->handle() #6 {main} thrown in /Applications/MAMP/htdocs/portfolio/wp-content/plugins/sg-security/templates/error.php on line 111`The page I need help with: [log in to see the link]
- The topic ‘Local: Fatal Error after switching Theme’ is closed to new replies.