• Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes) in /home2/user1/public_html/fantasy/wp-includes/class-simplepie.php on line 5353

    After upgrading to 2.8 I have this error in the Incoming Links widget in the main admin board.

    I could not remove the widget by clicking on the Screen settings tab as it produces no effect.

Viewing 15 replies - 46 through 60 (of 66 total)
  • Finally got around to contacting my host. They moved me to another server with a higher memory limit.

    Everything is working again!

    Well I had the same problem too… When I tried to upgrade from WordPress 2.8 to 2.8.2 I got a Fatal Error saying allowed memory size exhausted..

    I just tried Deactivating the active plugins and clicked the Automatic Upgrade mode.. It all worked fine… ??

    define(‘WP_MEMORY_LIMIT’, ’64M’);

    is what worked for me. Thank you ??

    Miss Louise

    I was having this error on the auto upgrade to 2.8.4
    I set the wp-config to 64M as described above and additionally the includes/cache.php and my problem was solved

    very easy thanks to all

    I’ve found upgrading my WP quite difficult due to the fact that my Host is cheap and therefore less memory than I would like. Though I found a workaround that I wanted to share.

    1. Install PHP on your own computer and a web server like Apache. (if you don’t already have one.
    2. Unpack the WordPress upgrade to your “local” root dir or wherever your web server is pointing.
    3. Copy your wp_config.php file to your local server with loads of memory allocated to PHP.

    Presto, the upgrade runs on your local computer but does all the DB, upgrades and such on your host-server.

    Happy word-pressing..

    *Should add a warning that I give no guarantees this will work 100% though it did for me.

    thanks gestroud, worked a treat

    m0r6h3us

    (@adeliofioritto)

    I solved my problem by these steps:
    1. in wp_config.php adding: define(‘WP_MEMORY_LIMIT’, ’64M’);
    2. in wp_include/cache.php adding: ini_set(‘memory_limit’,’64M’);
    3. creating php.ini local file adding: memory_limit = 64M

    thank you for that tip adelio.fioritto
    I have done 1 and 3 without any changes.

    2. in wp_include/cache.php adding: ini_set(‘memory_limit’,’64M’);

    that was the missing code.

    everything works fine now thanks.

    I had the same issue so called my host. We first went to file manager–> and in the public_html found the php.ini file and right clicked on it and chose edit code. code window opened and used the keyboard combo Control F to open a search field where I typed in “Memory”. Brought to code line where I was able to change memory limit from 32 M to 128 Meg (by the way, this is arbitrary, and based on whatever you want to allow scripts to use). Saved the changes and fixed.

    had similar problem

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2354671 bytes) in /public_html/wp-includes/http.php on line 1331

    I have deactivated some of my plugins like Cforms, nexgen gallery and popularity contest etc and then upgraded….

    it solved the prob.

    Again after upgradation, all plugins activated successfully…

    mikejkim

    (@mikejkim)

    @gestroud Your tip worked perfectly. Thank you!!

    jclayc

    (@jclayc)

    Deactivating all plugins and then upgrading fixed the error for me…

    virg

    (@virg)

    On some servers, editing the wp-config.php, doesn’t fix the issue. You need to install a “php.ini” file and increase within it, the post_max_size = 32 to 64 or higher. Here are the instructions for this from my host:

    Step 1- Login into your cPanel.
    Step 2- Under the Software/Services category, click on the PHP Config icon.
    Step 3- In this screen, there is a section called “Install Default php.ini”. Under that section, please check mark the “IonCube” and the “SourceGuardian” check boxes (Many commercial php scripts need these turned on – if you think your script may not require the IonCube or SourceGuardian packages, it is okay to not check mark the boxes – but it will not hurt anything to check mark both boxes.).
    Step 4- Under the same section, click the “INSTALL PHP.INI MASTER FILE” button.
    Step 5- You have just successfully installed the “php.ini.default” file . But the next step is to rename it from “php.ini.default” to just “php.ini” to make it active. You can do the Rename in the File Manager screens. Under the Files category in your cPanel, please click on the File Manager icon.
    Step 6- When you click on the File Manager icon, you should get a popup dialog titled “File Manager Directory Selection”. (If you do not see the popup dialog, then you need to click on the link at the bottom of your cPanel called “reset all interface settings” – and then Refresh your cPanel and click on the File Manager icon again.) In the popup dialog screen, click the “Web Root (public_html/www)” and the “Show Hidden Files (dotfiles).” choices. Finally please click the “Go” button.
    Step 7- If you already have a “php.ini”, I would recommend that you Rename the file to “php.iniOld” in case you need ever need it.
    Step 8- Find the file that you just installed called “php.ini.default”, Right-Click the file and choose the Rename option.
    Step 9- A new popup dialog called Rename should appear. Please start pressing your Backspace on your keyboard and you will start to see the letters disappear. Keep removing the letters until you see only “php.ini”, and then click the Rename File button.
    Step 10- Your php.ini file is now active and fully functional !! Additionally, some users need to make adjustments to this file. To edit the file, you just Righ-Click the php.ini file and choose the Edit option, and then change the value like these examples show:
    a. To increase your memory for your php pages: memory_limit = 2M —> memory_limit = 100M
    or
    b. To turn on your Register Globals: register_globals = Off —> register_globals = On (We don’t recommend that you change this flag unless you know what you are doing.)
    or
    c. To increase the maximum file size for uploading (there are two flags that you have to change):
    post_max_size = 2M —> post_max_size = 100M
    upload_max_filesize = 2M —> upload_max_filesize = 100M
    d. To turn on PDO, add this line of code to your php.ini file:
    extension=pdo_mysql.so
    extension=pdo.so
    extension=pdo_sqlite.so
    extension=sqlite.so
    Step 11- Important: The php.ini file is generally directory specific. If you have “PHP5 (Single php.ini)” or “PHP5 (FastCGI)” selected in your Php Config screen, then you should not need to do anything else. If you do NOT have either of those selected, then you may need to copy the php.ini file into all of the subfolders inside your public_html directory. This may be dozens and dozens of subfolders that you have to copy the file into. Also, sometimes it can take between 15-30 minutes before the system recognizes the php.ini file or any changes that you have made in the file.

    I just followed part a. and it fixed the problem. My WordPress site seems to work fine now!

    tomturnerjr

    (@tomturnerjr)

    @gestroud Thank you for your tip (provided below) It worked perfectly for me. Thanks!

    @gestroud recommended adding “…this line to your wp-config.php
    define(‘WP_MEMORY_LIMIT’, ’64M’);
    This way you won’t have to constantly make the fix again whenever you upgrade WordPress.”

    mrbacan

    (@mrbacan)

    I had the same memory problem and I added this line to my wp-config.php file: define(‘WP_MEMORY_LIMIT’, ’64M’);

    This solved my problem.
    Before that I tried changing the php.ini and didn’t had any effect.

Viewing 15 replies - 46 through 60 (of 66 total)
  • The topic ‘Memory exhausted error in admin panel after upgrade to 2.8’ is closed to new replies.