Problem after attempting to install plugin – Fatal Error

I have got this error message after attempting to install the Pop-Up plugin through the WPMUDEV Dashboard:

Fatal error: Out of memory (allocated 71041024) (tried to allocate 297673 bytes) in /websites/123reg/LinuxPackage22/me/di/a_/media-care.co.uk/public_html/wp-includes/functions.php on line 251

  • phillcoxon
    • The Crimson Coder

    WordPress is trying to use a lot of memory. It looks like your server is set for 64Mb.

    Try this:

    Open wp-config.php and find this bit:

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Change it so that it reads like this:

    /** Sets up WordPress vars and included files. */
    define('WP_MEMORY_LIMIT', '128M');
    require_once(ABSPATH . 'wp-settings.php');

    Post back and let us know if that works.

  • neel_mandal
    • Design Lord, Child of Thor

    My host says: –

    You have reached the allocated memory limit that you can use to upload content on your application, please clear some of the website content to be able to upload new one, the memory limit on a shared environment is 64 Mb, this restriction can not be increased unfortunately.

    Don’t understand what they mean and unsure how to fix. Have now deleted all my plugins but still have problem. Someone help me please

  • phillcoxon
    • The Crimson Coder

    So if I understand you correctly you’re with 123-reg and you’ve just purchased a reseller account with hostgator?

    There’s two parts to moving a site between hosting companies. First you have to back up all of the data and databases and move that across.

    Second you have to update the nameservers on your domain name to point to the new nameservers at the new hosting company. This should be done after the data and databases have been moved to the new hosting.

    If your current hosting company uses cPanel then you can create a full cPanel backup of your site and import that into your hostgator account. The advantage to doing this is that it preserves everything – all files, databases, email accounts, email forwarders etc.

    If 123-reg doesn’t use cPanel then it will require a manual backup of your data and databases. If you’re just moving the WordPress site then using something like BackupBuddy is brilliant for cloning the site onto another URL.

  • phillcoxon
    • The Crimson Coder

    If you log in via FTP and rename your plugins folder to something else (fixplugins, for example) that will deactivate all of your plugins when you log in next. That should get you in.

    Then I suggest you re-enable Backup Buddy, go the Backup Buddy settings and enter the import password and check any other settings you need such as excluding any files or directories that should not be backed up.

    Then run a full backup with Backup Buddy (files and database). Download that backup. Go to the Backup Buddy restore menu and download a copy of import.php.

    Next go to your HostGator reseller account and make sure you have the same domain created as a cpanel account there. Because your website domain is pointed to your current hosting you won’t be able to access the new hosting by using that domain name. There are two ways around this:

    1) Upload the backup file + importbuddy.php to your new hosting account using FTP.

    2) If you know how, edit your hosts file to temporarily force your computer to go to your new hosting instead. You can do that by saving something like the following in your hosts file:

    1.2.3.4 example.com http://www.example.com

    …where 1.2.3.4 is the IP address of your new hosting server at hostgator and example.com & http://www.example.com is replaced by your domain name.

    Accessing and editing you hosts file varies from Windows to Mac to Linux and is not the easiest thing to do if you’re not familiar with the process.

    From there create a new database in your new hosting cpanel account and go to your domain name (which is pointing to your new hosting due to the entry in the hosts file), click on import.php and follow the instructions. BackupBuddy will fully restore the website and database to the new hosting account in seconds.

    The only thing left to do after that is to remove the tempory entry from your hosts file and change the nameservers in your domain registrar to point to the new hostgator nameservers.

    It sounds pretty daunting but once you’ve done it a couple of times it gets really easy.

    If you need a hand with getting the transfer done – drop me an email to discuss. My email address is in my profile.

    Hope that helps.

  • neel_mandal
    • Design Lord, Child of Thor

    Thank you so much for all you help. I think I have the problem resolved now using the steps described by you to deactivate my plugins folder. There was nothing left in them but deactivating the folder by renaming it has allowed me full access and the ability to re-install the one I wanted. Thanks again.Don’t think I could have done this without your help.

  • phillcoxon
    • The Crimson Coder

    You’re welcome. Just be aware that if you hit the lack of memory problem once it may well happen again as you add new plugins to your site. The sooner you can move to your hostgator hosting the better.

    Let me know if I can help with anything else.