Support » Plugin: Kocuj Sitemap » function ‘qtranxf_getSortedLanguages’ not found or invalid function name

  • Resolved redearthdesign


    Hi Dominik,

    On two websites this week, I’ve had this error come up:
    Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘qtranxf_getSortedLanguages’ not found or invalid function name in [redacted]/wp-content/plugins/kocu​j-sitemap/classes/multiple-languages/q-translate-x.class.php on line 153

    It shows up on the front end of the site. Neither site is multilingual; there is no language plugin installed. Both are running version 2.3.2 of the plugin. Two are on WordPress core 4.6.1, one is on 4.5.4.

    I have version 2.3.2 of this plugin on other WP 4.6.1 & 4.5.4 installations with no problems.

    On the sites with this issue, I tried deactivating all the plugins, and changing to default theme, but the issue remains. I’ve also tried removing the plugin altogether and reinstalling it.

    Do you have an idea of what might be causing this or how to fix it?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve found some bug in checking if multi-lingual qTranslate X plugin is installed. I’m very sorry for that.

    Today I will release a new version (2.3.3) – probably in few hours. I’ll let you know in this topic when it will happen.

    New version – 2.3.3 – has been released. Please, check if after updating to this version these errors has disappeared.

    Thank you for such a quick reply. I tried upgrading one of the sites, and the initial error is gone, but now it says:
    Fatal error: Using $this when not in object context in [redacted]/wp-content/plugins/kocuj-sitemap/classes/base.class.php on line 334

    This error shows up on the admin side only, not the front end of the site, where the sitemap is correctly displayed. But the error prevents me accessing the admin area.

    It’s very strange, because this code in line 334 is only executed when updating from version below 2.3.0. Are you sure that you did have version 2.3.2 before update? I’ve tested it and this line is not executed when updating from 2.3.0, 2.3.1 or 2.3.2.

    It looks like it is bug with updating. It is only for PHP 5.3. All newer PHP versions do not have this error. It somehow was not visible during my tests.

    I will fix this bug in new plugin version and let you know when it will happen (probably today or tomorrow).

    If you want to have access to administration panel, you can safely remove lines 333-340 from file base.class.php. The only drawback of doing this will be an information about reviews, telling friends, etc. about Kocuj Sitemap plugin, but you can close it when it will be displayed.

    I’ve updated the Kocuj Sitemap plugin to 2.3.4. It has all fixes you need.

    First you should make changes in lines 333-340, as I wrote above, to make an administration panel working again, and then you should update the Kocuj Sitemap plugin to 2.3.4.

    Please, let me know if it works for you. I hope it works, but let me know to be sure.

    Thanks so much for being so responsive. This fix has taken care of the issues, everything is working great again! I appreciate your help with this.

    I’m glad that it’s working now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘function ‘qtranxf_getSortedLanguages’ not found or invalid function name’ is closed to new replies.