Support » Plugin: StatPress Visitors » [Plugin: StatPress Visitors] Update from 1.4.3 – Fatal error

  • Resolved Baribull


    I have a problem with updating from version 1.4.3 to

    When I try to activate the plugin after installation, I receive this message:

    Fatal error: Call to undefined function wp_load_translations_early() in ******* /wp-includes/wp-db.php on line 928

    and, of course it doesn’t activate.
    What shall I do?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author luciole135


    Very strange the plugin dont have translations !

    Try to uploads again the files and install it manually !

    I did try to install it manually.

    Without any success…

    Plugin Author luciole135


    May be an incompatibility with another plugin ?

    The 1.4.3 worked fine with all my plugins (statPress Visitors – is the only stat plugin I use).

    Will have to stay with an old ver. ;-(

    UPDATE: I checked how it would go on my local (xampp installation of WordPress) and having the same plugins as on the Internet ver. IT WORKED!

    Why I cannot do the update on the web wersion of my blog?

    Plugin Contributor Gawain Lynch


    Try adding the following to your wp-config.php

    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', false);
    define('WP_DEBUG_LOG', true);
    define('SCRIPT_DEBUG', true);
    define('SAVEQUERIES', true);

    The call is failing on a database operation which is in turn trying to call print_error(). The above defines will create a debug.log file in your wp-content directory that will give you/us some clues.

    Plugin Author luciole135


    These version add JavaScript and AJAX, may be an incompatibility beetween plugin.

    Please try to deactivate other plugin and to install StatPressV, (but keep the file of 1.4.3 on your computer). Is it work ?

    Then, if it work, activate other plugin to see who is the incompapatibility and tell me, i will try to reproduce these situation on my computer.

    It didn’t work with switching off the plugins.

    The content of debug.log I cannot paste, because it’s too much text…

    Plugin Contributor Gawain Lynch


    If you disable all other plugins then enable only statpress-visitors, the last 10 or so lines should have the error and backtrace that has the details we want… You can also paste the whole log (starting from after all plugins are disabled) to pastebin.

    Note: some plugins are very noisy in the debug log, so this is why it is useful to disable them before enabling this one. i.e. disable everything, delete the old debug.log file and then enable statpress-visitors

    Gawain Lynch U were right!

    Here’s the whole log:

    [12-Aug-2012 22:27:27] PHP Fatal error: Call to undefined function wp_load_translations_early() in /home/xxxxx/public_html/wp-includes/wp-db.php on line 928
    [12-Aug-2012 22:27:28] PHP Fatal error: Call to undefined function wp_load_translations_early() in /home/xxxxx/public_html/wp-includes/wp-db.php on line 928
    [12-Aug-2012 22:27:28] PHP Fatal error: Call to undefined function wp_load_translations_early() in /home/xxxxx/public_html/wp-includes/wp-db.php on line 928

    But donno if it helps…

    Plugin Author luciole135


    Try to activate StatPress Visitor with all plugin deactivate and TwentyTen activate, not your theme (to see if it work with another theme)…

    All plugins were deactivated (when generated log file), my theme is TwentyTen…

    Plugin Contributor Gawain Lynch



    wp_load_translations_early() is defined in wp-includes/load.php which is included by /wp-settings.php which leads me to suspect that there is something broken in your WordPress install.

    Had you made any other changes around the time you updated Statpress?

    No I hadn’t, and my WordPress works fine (didn’t notice any other errors).

    However, I suspect that there might be something wrong with my installation of wordpress. After automatic update of WP I had to delete “.maintenance” file (it gave me a false info about error during update). Since then it works just fine.

    Plugin Contributor Gawain Lynch


    Hmm… I’m wondering…

    OK, so what I can gather, logically from the information you’ve provided is that StatPress visitors is experiencing a database error of some type, but when it tries to log that error it is unable to find core WordPress files.

    My current guess is around file and directory permissions in the root WordPress directory ‘/home/xxxxx/public_html/’ as the upgrade process was unable to delete .maintenance, it might well have been unable to delete wp-load.php and not upgraded the install properly (possibly the same for other files in that directory).

    One option would be to edit wp-load.php and on the second line add something like:
    /* This is a comment that I don't want to see */

    And then go to the updates screen and tell WordPress to reinstall itelf and see if that text disappears from the file.

    After manual re-installation of WordPress, it finally worked!

    I am now proudly using the latest version of this great plugin!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: StatPress Visitors] Update from 1.4.3 – Fatal error’ is closed to new replies.