PHP Errors for most custom templates (latest build versions)

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

Sure seems like this is an issue with your theme.

I think it has more to do with ACF than my theme…it occurs in every custom theme I have.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.