• jennatkinsmarketinggmail.com

    (@jennatkinsmarketinggmailcom)


    I am encountering an intermittent error on my site; running WP 3.9, hosted by Go Daddy. Seems to be occurring more in Firefox, Chrome and IE than in Safari.

    Fatal error: PLL_Model::_languages_list(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "PLL_Language" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/content/p3nexnas03/23/2083523/html/wp-content/plugins/polylang/include/model.php on line 197

    I have read this post: https://www.ads-software.com/support/topic/polylang-sudden-fatal-error but not sure I understand what the solution is. Can you please clarify what I can do?

    https://www.ads-software.com/plugins/polylang/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Chouby

    (@chouby)

    Yes that’s the same error. It is not browser dependant has it is all related to server side. If it occurs, it means that something went wrong in your database.

    What’s very annoying in what you say is that it is intermittent. The data is read at every page load (frontend or admin) but very rarely updated (change polylang settings, permalinks settings, polylang update). So if the database was corrupted, it should break at every page load and not intermittently…

    Thread Starter jennatkinsmarketinggmail.com

    (@jennatkinsmarketinggmailcom)

    Yes, it is intermittent and has been the last few days. Currently, I can’t see anything on any of the pages except the error.

    The first time this happened, I deleted the plug-in, re-installed and started over. I re-tagged all of the pages with the correct language, re-built the menus and it worked fine for about a day and then started again but intermittently.

    Any ideas what I can do to try to fix?

    Plugin Author Chouby

    (@chouby)

    I have no idea why you get this problem. Maybe a database corruption…
    At least I will provide you with a (very) quick fix avoid relying on this data. I suppose that you are using v1.4.5.

    in polylang/include/model.php at line 139
    replace

    if (false === ($languages = get_transient('pll_languages_list'))) {

    by

    if (true) {
      define('PLL_CACHE_HOME_URL', false);

    I did no test but it should work.

    I would be interested if you could look for the entry _transient_pll_languages_list in the table wp_options and report the value field here.

    I also get the same error:

    Fatal error: PLL_Model::_languages_list(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition “PLL_Language” of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/content/p3nexnas05_data02/06/2113106/html/wp-content/plugins/polylang/include/model.php on line 192

    The error is also intermittent. I have noticed that the error appears after I post something: be it a normal post or making a new page. It tends to disappear after some time (sometimes longer, sometimes shorter)

    Plugin Author Chouby

    (@chouby)

    Hi!

    Have you the same host provider Godaddy?
    Did you try the fix I propose?

    And also as mentionned, I would be interested if you could look for the entry _transient_pll_languages_list in the table wp_options and report the value field here.

    Or you can try to repair your database to see if it comes from a database corruption.

    Hi Chouby,

    I’m experiencing the same issue. GoDaddy host. I tried your solution but it didn’t worked for me. Polylang version 1.5, WP 3.9.1.

    As soon as I can I’ll provide you with the extraction from the database so you can check whether or not my data is corrupted.

    Plugin Author Chouby

    (@chouby)

    It seems there is an issue whith this host. But I don’t know why. Could you try this other fix?

    In polylang/include/model.php, replace the first line:

    <?php

    by

    ?php
    require_once(PLL_INC . '/language.php');

    Plugin Support Chrystl

    (@chrystl)

    It miss a < in the code ??

    <?php
    require_once(PLL_INC . '/language.php');

    Lainnie

    (@hercuriomajesty)

    Hello! I am experiencing the same issue here, GoDaddy hosting, WP3.9.1, Polylang 1.5.2. I tried changing the code to the suggested
    <?php
    require_once(PLL_INC . ‘/language.php’);

    but the “fatal error” is still happening. Like the other users, every time when I update a post or make a new post, the “fatal error” will appear and the site will be down for a couple of minutes. It eventually will come back up but it’s just very frustrating. Any other suggestions please?

    Thanks!

    Plugin Author Chouby

    (@chouby)

    Hi!

    Did you try https://www.ads-software.com/support/topic/fatal-error-1178?replies=10#post-5517748 ?

    There is a specific issue with the GoDaddy setup and unfortunately, I have no clue why. I am still trying to gather information to solve the issue, without success so far.

    Do you know your PHP version?

    Plugin Author Chouby

    (@chouby)

    I just released Polylang 1.5.3. With this version, you should disable the problematic code by setting:

    define('PLL_CACHE_LANGUAGES', false);

    in wp-config.php. So there will be no more need to modify the plugin code in the future.
    This will remain an option as it slightly decreases the performance of Polylang and works as is for most users.

    I upgrade Polylang to 1.5.3 and get a fatal error
    (Fatal error: Call to a member function get_home_url() on a non-object in D:\Hosting\9409428\html\wp-content\plugins\polylang\frontend\choose-lang.php on line 166)
    i updated wp-config.php (as you told in https://www.ads-software.com/support/topic/fatal-error-1178) but problem persist.
    I DEACTIVATE all my others plugins and the problem persist.
    My website host in GoDaddy.

    FYI.
    I rollback to polylang 1.5 and problem disappear.

    Lainnie

    (@hercuriomajesty)

    Dear Chouby, thank you so much for the new Polylang version 1.5.3 and the wp-config.php fix. It worked!! I updated a few posts tonight and the fatal error is not showing again.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal error’ is closed to new replies.