• Hello I’m new to this forum and new to wordpress ?? Last night I build a wordpress site and when I’m saving my settings using theme options it take long time and then gives and error message Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2604243 bytes)

    I found that one solution that modifing wp-settings.php and defining memory limit ” define(‘WP_MEMORY_LIMIT’, ’96M’); ” it is worked. But still it take long time to saving the settings and I need to know why this is happen. Then i can fix that thanks any expert pls help me

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vinoj Randika

    (@patzz)

    I think the theme option page is huge and it trying to save every thing at once so far i read few articles but really dont know how to fix this

    Hi,

    Check with these options:

    1) Either rename/remove Plugins folder via FTP or disables all the Plugins from database.

    2. If you have an access of PHP.ini file of the account/server then change the line in PHP.ini where line shows 32M to 64M:
    memory_limit = 64M; Maximum amount of memory a script may consume (64MB)

    3. If you do not have access of PHP.ini file then add this to an .htaccess file of your domain:
    php_value memory_limit 64M
    4. Try to add this line to your wp-config.php file to increase allocated memory to PHP:
    define(‘WP_MEMORY_LIMIT’, ‘64M’);

    If all this option can not resolve the issue then you need to contact your hosting service provider to resolve this issue.

    Thanks,

    Shane G.

    Thread Starter Vinoj Randika

    (@patzz)

    I did those and worked perfectly fnd, now my problem is every time when i’m saving my theme option settings (admin panel which provide by theme) it take huge time to save.

    I tried with renaming my plugins folder nothing happened. Then I remove portion of my theme option page and tried. It worked perfectly.

    so I think I found my problem is theme option page tries to save every thing on that every time, not only changed value. So it tries to send huge data portion as my theme option page is bigger.

    is there anyway to overcome this problem or detect changed value only? then i can save that one only when clicked the save option

    Thread Starter Vinoj Randika

    (@patzz)

    Friends thanks I fixed my problem it is because one theme option which has this ” ‘ ” letter in there default settings. You may not getting what i’m talking about. Anyway what i need is thanks for all specially Shane G thanks fnd came here and listen to me. thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate’ is closed to new replies.