WordPress.org

Ready to get started?Download WordPress

Forums

StatPress Visitors
[resolved] Update from 1.4.3 - Fatal error (17 posts)

  1. Baribull
    Member
    Posted 2 years ago #

    Hi,
    I have a problem with updating from version 1.4.3 to 1.5.0.3

    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?

    http://wordpress.org/extend/plugins/statpress-visitors/

  2. luciole135
    Member
    Plugin Author

    Posted 2 years ago #

    Very strange the plugin dont have translations !

    Try to uploads again the 1.5.0.3 files and install it manually !

  3. Baribull
    Member
    Posted 2 years ago #

    I did try to install it manually.

    Without any success...

  4. luciole135
    Member
    Plugin Author

    Posted 2 years ago #

    May be an incompatibility with another plugin ?

  5. Baribull
    Member
    Posted 2 years ago #

    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?

  6. Gawain Lynch
    Member
    Plugin Contributor

    Posted 2 years ago #

    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.

  7. luciole135
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  8. Baribull
    Member
    Posted 2 years ago #

    It didn't work with switching off the plugins.

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

  9. Gawain Lynch
    Member
    Plugin Contributor

    Posted 2 years ago #

    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

  10. Baribull
    Member
    Posted 2 years ago #

    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...

  11. luciole135
    Member
    Plugin Author

    Posted 2 years ago #

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

  12. Baribull
    Member
    Posted 2 years ago #

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

  13. Gawain Lynch
    Member
    Plugin Contributor

    Posted 2 years ago #

    Weird.

    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?

  14. Baribull
    Member
    Posted 2 years ago #

    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.

  15. Gawain Lynch
    Member
    Plugin Contributor

    Posted 2 years ago #

    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.

  16. Baribull
    Member
    Posted 2 years ago #

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

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

  17. Gawain Lynch
    Member
    Plugin Contributor

    Posted 2 years ago #

    Awesome :-) Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic