This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Fatal Error – Pitch Theme

11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 11 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread