Resolved

Reported for: WPML Multilingual CMS 3.8.0

Resolved in: 3.8.1

Symptoms

When activating WPML together Cyr to Lat enhanced plugin you will get a ‘Fatal error: Call to a member function get_requested_lang() on null in \sitepress-multilingual-cms\sitepress.class.php on line 1320’.

Workaround

We already have a fix for this but until we test and publish, you can temporarily rename the plugin cyr3lat folder in wp-content/plugins, for example to z-cyr3lat and then activate it again.

6 Responses to “Fatal error when using Cyr to Lat enhanced plugin”

  1. The following error occurs as well

    Catchable fatal error: Argument 1 passed to WPML_Notice_Render::must_display_notice() must be an instance of WPML_Notice, instance of __PHP_Incomplete_Class given, called in /home/neokleouscom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notices.php on line 170 and defined in /home/neokleouscom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notice-render.php on line 87

  2. Let me re-state the issues:

    1. All websites have the same version of WPML(the one before 3.8.0)
    2. All website have the plugin Cyr to Lat enhanced
    3. All websites’ front end is shown ok. The errors appear in the backend
    4. Two of the websites have the following error:

    Warning: call_user_func() expects parameter 1 to be a valid callback, class ‘WPML_ST_Fastest_Settings_Notice’ not found in /home/netinfoweb/public_html/mgigregoriou/wp-content/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notice-render.php on line 101

    5. the other website has the error:

    Catchable fatal error: Argument 1 passed to WPML_Notice_Render::must_display_notice() must be an instance of WPML_Notice, instance of __PHP_Incomplete_Class given, called in /home/neokleouscom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notices.php on line 170 and defined in /home/neokleouscom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notice-render.php on line 87

    When i upgrade to version 3.8.0 i get the error:

    Fatal error: Call to a member function get_requested_lang() on a non-object in /home/netinfoeu/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1320

    • That is great to hear – thanks! As I said we already have a fix – it’ll be tested and released in the next small update version. coming very soon.