PHP fejl i mit WP theme
Kære EksperterJeg får nedenstående fejl når jeg tilføjer mit theme til min Wordpress blog.
Der var ingen problem i at hente det første theme (cherry), men det efterfølgende (theme2122) gav hvid skærm. Så fik jeg den til at vise fejlen, som er:
Fatal error: Call to undefined function theme_locals() in /customers/6/8/d/kvinnovation.com/httpd.www/wp-content/themes/theme2122/includes/class-tgm-plugin-activation.php on line 164
Selve den del af koden hvor fejlen skulle værre i den øvre del er:
public function __construct() {
self::$instance =& $this;
$this->strings = array(
'page_title' => theme_locals("Kvinnovation"),
'menu_title' => theme_locals("menu_title"),
'installing' => theme_locals("installing"),
'oops' => theme_locals("oops"),
'notice_can_install_required' => _n_noop( theme_locals("notice_can_install_required"), theme_locals("notice_can_install_required_2")),
'notice_can_install_recommended' => _n_noop( theme_locals("notice_can_install_recommended"), theme_locals("notice_can_install_recommended_2")),
'notice_cannot_install' => _n_noop( theme_locals("notice_cannot_install"), theme_locals("notice_cannot_install_2")),
'notice_can_activate_required' => _n_noop( theme_locals("notice_can_activate_required"), theme_locals("notice_can_activate_required_2")),
'notice_can_activate_recommended' => _n_noop( theme_locals("notice_can_activate_recommended"), theme_locals("notice_can_activate_recommended_2")),
'notice_cannot_activate' => _n_noop( theme_locals("notice_cannot_activate"), theme_locals("notice_cannot_activate_2")),
'notice_ask_to_update' => _n_noop( theme_locals("notice_ask_to_update"), theme_locals("notice_ask_to_update_2")),
'notice_cannot_update' => _n_noop( theme_locals("notice_cannot_update"), theme_locals("notice_cannot_update_2")),
'install_link' => _n_noop( theme_locals("install_link"), theme_locals("install_link_2")),
'activate_link' => _n_noop( theme_locals("activate_link"), theme_locals("activate_link_2")),
'return' => theme_locals("return"),
'plugin_activated' => theme_locals("plugin_activated"),
'complete' => theme_locals("complete"),
);
/** Annouce that the class is ready, and pass the object (for advanced use) */
do_action_ref_array( 'tgmpa_init', array( &$this ) );
/** When the rest of WP has loaded, kick-start the rest of the class */
add_action( 'init', array( &$this, 'init' ) );
}
Jeg har selv lige tilføjet "Kvinnovation" som er navnet på sitet.
På forhånd tusind tak for svar :)