Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Youngbloodr77 on "[Plugin: Polylang] Fatal error once logged out"

$
0
0

Hi there, i have Themeforest Visia installed as a theme and the plugin installs fine and operates fine on the site. But once i try to log out as admin i get a fatal error conflict with the themes WPML file.

Fatal error: Call to a member function get_active_languages() on a non-object in > PeThemeWPML.php on line 19

Line 19 is $this->_langs = $sitepress->get_active_languages();

public function langs() {
if ($this->_langs) {
return $this->_langs;
}

global $sitepress;
$this->_langs = $sitepress->get_active_languages();
return $this->_langs;
}

I can log out on the standard theme and of course once i delete the plugin from the ftp server everything works fine but i don't have the plugin.

Any tips would be great seeing i find the plugin great!

https://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>