• I got this error after upgrade php 7.4 to php 8.2

    Fatal error: Uncaught Error: Call to undefined function switch_to_blog() in D:\MAMP\htdocs\fab\scrip\wp-content\themes\scrippscollege\includes\header.php:68 Stack trace: #0 D:\MAMP\htdocs\fab\scrip\wp-includes\template.php(812): require() #1 D:\MAMP\htdocs\fab\scrip\wp-includes\template.php(745): load_template(‘D:\\MAMP\\htdocs\\…’, false, Array) #2 D:\MAMP\htdocs\fab\scrip\wp-includes\general-template.php(206): locate_template(Array, true, false, Array) #3 D:\MAMP\htdocs\fab\scrip\wp-content\themes\scrippscollege\template-page-builder.php(4): get_template_part(‘includes/header’) #4 D:\MAMP\htdocs\fab\scrip\wp-includes\template-loader.php(106): include(‘D:\\MAMP\\htdocs\\…’) #5 D:\MAMP\htdocs\fab\scrip\wp-blog-header.php(19): require_once(‘D:\\MAMP\\htdocs\\…’) #6 D:\MAMP\htdocs\fab\scrip\index.php(17): require(‘D:\\MAMP\\htdocs\\…’) #7 {main} thrown in?D:\MAMP\htdocs\fab\scrip\wp-content\themes\scrippscollege\includes\header.php?on line?68

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    It looks like your theme is not compatible with PHP 8.2, or PHP 8.x entirely.

    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 the /scrippscollege/ directory to /scrippscollege-broken/

    This will disable the theme causing the problem and hopefully activate the most recent available default theme instread, thus restoring your site.

    Alternatively, just switch back to PHP 7.4.33.

    Next, I recommend reporting the problem to the theme’s developer.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.