Admin Menu Tree Page View
Fatal Error with WPML installed in Network Mode but disabled on site (1 post)

  1. Jan Thiel
    Posted 1 year ago #


    got this error, when trying to access the Plugins page or the Pages overview:

    Fatal error: Call to a member function get_translatable_documents() on a non-object in /PATH/TO/WP/wp-content/plugins/cms-tree-page-view/functions.php on line 811

    if (defined("ICL_SITEPRESS_VERSION")) {
    		$wpml_post_types = $sitepress->get_translatable_documents();
    		if (array_key_exists($post_type, $wpml_post_types)) {
    			$wmpl_active_for_post = TRUE;
    			$wpml_current_lang = $sitepress->get_current_language();

    Quite easy to trace: You should enhance the way how to check for WPML. We do have WPML activated in the whole Multi Site Installation, but disabled it on several sites. This is one of the sites without WPML support.
    I guess your check for the defined version might foul you here. Because the Sitepress Object is not there on this site.




Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin Menu Tree Page View
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic