Home>Support>Fatal Error – Pitch Theme

Fatal Error – Pitch Theme

Hi installed the plugin “DZS Zoomsounds” and got this error message when going to the “Zoomsounds” settings tab…
“Fatal error: Call to undefined function get_current_screen() in MyDomain.com/wp-content/themes/pitch/extras/settings/settings.php on line 511”

DZS Zoomsounds works in WP 4.1 and with other themes.

Can you please let me know if you can fix this? I like the Pitch theme.
Thank you!

}

function siteorigin_settings_media_view_strings($strings, $post){
	if(!empty($post)) return $strings;
	$screen = get_current_screen();
	if(empty($screen->id) || $screen->id != 'appearance_page_theme_settings_page') return $strings;
	
	// Remove these strings, to remove the tabs
	// Luckily the JS gracefully handles these being unset
	unset($strings['createNewGallery']);
	unset($strings['createGalleryTitle']);
	unset($strings['insertFromUrlTitle']);
	
	$strings['insertIntoPost'] = __('Set Media File', 'pitch');
	
	return $strings;
}

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hi AppleFire

    Sorry to hear about the hassle.

    This plugin is clashing with our settings framework. We unfortunately don’t currently have a hotfix solution at this stage. All I can suggest at this stage is perhaps finding another plugin that offers the same functionality. We do our very best to ensure plugin clashes don’t happen with our themes, but unfortunately can’t always foresee what plugins might do.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More