I am getting errors on all my custom WordPress themes. If I just load a default WordPress theme I don’t seem to have any PHP issues, but whenever I load a custom theme I see the following function errors:
( ! ) Fatal error: Uncaught Error: Call to undefined function switch_to_blog() in A:_0 Websites_0 local websites\gravnetic\app\public\wp-content\themes\that-portfolio\functions.php on line 11
( ! ) Error: Call to undefined function switch_to_blog() in A:_0 Websites_0 local websites\gravnetic\app\public\wp-content\themes\that-portfolio\functions.php on line 11
Call Stack
Time Memory Function Location
1 0.0087 358568 {main}( ) …\index.php : 0
2 0.0098 358864 require( ‘A:_0 Websites_0 local websites\gravnetic\app\public\wp-blog-header.php’ ) …\index.php : 17
3 0.1751 2979304 require_once( ‘A:_0 Websites_0 local websites\gravnetic\app\public\wp-includes\template-loader.php’ ) …\wp-blog-header.php : 19
4 0.1769 2980624 include( ‘A:_0 Websites_0 local websites\gravnetic\app\public\wp-content\themes\that-portfolio\index.php’ ) …\template-loader.php : 106
5 0.1770 2982000 get_admin_id( ) …\index.php : 20