I have tried all the following (although many said I only need either one)
- memory_limit = 512M (it's stated in my phpinfo(), this limit was set so long ago that I can't even remember when)
- php_value memory_limit512M in .htaccess
- define('WP_MEMORY_LIMIT', '512M');in wp-config.php
I'm still getting the same fatal error:
Interestingly, I can see
Choose a file from your computer: (Maximum size: 0)
when I went to Tools > Import > WordPress in my WordPress dashboad. According to the following, that "Maximum size" should agree with the above settings instead. http://codex.wordpress.org/FAQ_Working_with_WordPress#How_do_I_Import_a_WordPress_WXR_file_when_it_says_it_is_too_large_to_import.3F (screenshot: http://sg.theasianparent.com/images/errors/import_wordpress.PNG)
The exact error message (with exact memory figures) is as follows:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 121026561 bytes) in /home/asianp/public_html/sg/wp-includes/functions.php on line 3155
Would really appreciate if someone can shed some light here :)
Thank you very much!
Reference: http://stackoverflow.com/questions/3463276/allowed-memory-size-of