Title: Fatal error
Last modified: August 21, 2016

---

# Fatal error

 *  [jennatkinsmarketinggmail.com](https://wordpress.org/support/users/jennatkinsmarketinggmailcom/)
 * (@jennatkinsmarketinggmailcom)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1178/)
 * 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: [http://wordpress.org/support/topic/polylang-sudden-fatal-error](http://wordpress.org/support/topic/polylang-sudden-fatal-error)
   but not sure I understand what the solution is. Can you please clarify what I
   can do?
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859235)
 * 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](https://wordpress.org/support/users/jennatkinsmarketinggmailcom/)
 * (@jennatkinsmarketinggmailcom)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859247)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859263)
 * 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.
 *  [IoanaGaurean](https://wordpress.org/support/users/ioanagaurean/)
 * (@ioanagaurean)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859483)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859484)
 * 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.
 *  [caltkult](https://wordpress.org/support/users/caltkult/)
 * (@caltkult)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859485)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859489)
 * 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](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859490)
 * It miss a < in the code 😉
 *     ```
       <?php
       require_once(PLL_INC . '/language.php');
       ```
   
 *  [Lainnie](https://wordpress.org/support/users/hercuriomajesty/)
 * (@hercuriomajesty)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859499)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859500)
 * Hi!
 * Did you try [http://wordpress.org/support/topic/fatal-error-1178?replies=10#post-5517748](http://wordpress.org/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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859501)
 * 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.
 *  [beto_bens](https://wordpress.org/support/users/beto_bens/)
 * (@beto_bens)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859503)
 * 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 [http://wordpress.org/support/topic/fatal-error-1178](http://wordpress.org/support/topic/fatal-error-1178))
   but problem persist. I DEACTIVATE all my others plugins and the problem persist.
   My website host in GoDaddy.
 *  [beto_bens](https://wordpress.org/support/users/beto_bens/)
 * (@beto_bens)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859504)
 * FYI.
    I rollback to polylang 1.5 and problem disappear.
 *  [Lainnie](https://wordpress.org/support/users/hercuriomajesty/)
 * (@hercuriomajesty)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859505)
 * 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.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 14 replies
 * 7 participants
 * Last reply from: [Lainnie](https://wordpress.org/support/users/hercuriomajesty/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/fatal-error-1178/#post-4859505)
 * Status: not resolved