WordPress.org

Ready to get started?Download WordPress

Forums

Counterize
[resolved] Server error after upgrading Counterize (7 posts)

  1. Italiangal
    Member
    Posted 3 years ago #

    After upgrading Counterize to the latest version using the 'automatic update' feature, I get a "Server Error" "The website encountered an error while retrieving (website URL). It may be down for maintenance or configured incorrectly." when trying to access my WP admin control panel. The only way to get it back up is to go into my FTP tool and manually delete the counterize folder. I tried manually installing an older version and am getting the same error. Counterize worked great on my site even after I upgraded WP until I tried to upgrade Counterize. Any ideas?

  2. GabSoftware
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    Which version are you trying to install? Did you have a lot of entries in your database?

  3. GabSoftware
    Member
    Plugin Author

    Posted 3 years ago #

    By the way this could help you to locate the error:

    - Open your wp-config.php file
    - Set the WP_DEBUG constant to true
    - Add the following lines just after the WP_DEBUG line:

    error_reporting( E_ALL | E_STRICT );
    ini_set('display_errors', 1);

    If you see errors instead of the "Server Error" page, please take a screenshot and copy-paste the errors here.

  4. Italiangal
    Member
    Posted 3 years ago #

    It's a brand new site, less than a month old so not a lot of entries yet. 7 posts. WP Version 3.2. Counterize Version 3.0.32.

    I added the code to the wp-config.php file then activated Counterize. Immediately I got the following error:
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /(home directory)/wp-admin/menu.php on line 45

    I tried to add the following statement to the wp-config.php file as suggested in another forum to no avail: define('WP_MEMORY_LIMIT', '64M')

    If I type in my site's URL, I still get the generic Server Error message with the following line: HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

  5. GabSoftware
    Member
    Plugin Author

    Posted 3 years ago #

    Thank you for your report. So your host is limiting the memory to 32 M, which is quite low. Counterize is becoming a big plugin and together with WordPress ate all the available memory, apparently during the upgrade process.

    Anyway I don't know why Counterize is using all your available memory. I guess I should start to use a code profiler!

    If you can, you could export your online web server database to a local web server, then do the update process here, then import the updated database back to your online web server. The memory limit in local web servers is generally set to 128 M which is enough for pretty much everything.

    Also you can try to comment the upgrade lines in counterize_install.php between 3.0.28 and 3.0.32, as no database changes have been done (just some cleaning).

    Otherwise, you can wait for a next version of Counterize, but I can't tell when...

    Sorry for the inconvenience.

    Regards,

    Gabriel

  6. Italiangal
    Member
    Posted 3 years ago #

    Hi Gabriel. I just wanted to let you know, thanks to your guidance, I got Counterize working again! When I first started my site, I installed bbpress with the plans of setting up a forum but had not started using it yet. It had been deactivated, but it wasn't until I deleted it that I could get Counterize working again. Apparently between the two plug-ins and the upgrade, it must have bumped my memory usage over the limit. I've also emailed my web hosting company to get their help in bumping up the memory limit to hopefully prevent this from happening again.

    Thanks again for your help!

  7. GabSoftware
    Member
    Plugin Author

    Posted 3 years ago #

    That's great if that solved your problem! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags