Must be a lot of play WordPress friends are useful XAMPP build a local php+mysql environment for WordPress theme Templates and plug-in testing. But I have always encountered a problem: The remote server wordpress background export of "articles, comments, categories" (XML) files in the import to local WordPress, the following error (may be more content, such as articles):
Fatal error:allowed memory size of 33554432 bytes exhausted (tried to allocate 320160 bytes) in D:\xampp\htdocs\wp-admin\ Import\wordpress.php on line 125
The literal understanding should be memory size limit, before 2nd at JC prompted finally found a solution (assuming XAMPP installed in the D-packing directory):
1, open D:\xampp\apache\bin directory;
2, find and open php.ini configuration file;
3, search the memory, find the following content:
;;;;;;;;;;;;;;;;;;;
; Resource Limits;
;;;;;;;;;;;;;;;;;;;
Max_execution_time = 60; Maximum execution time of each script, in seconds
Max_input_time = 60; Maximum amount of time each script may spend parsing request data
Memory_limit = 32M; Maximum amount of memory a script may consume (16MB)
Memory_limit is the parameter that is used to set the size of the memory size, and the value is modified to 64M or greater. The other 2 parameters Max_execution_time and Max_input_time literal understanding should be timeout and import time settings, can also be adjusted as needed. Last saved;
5, back to the root directory of XAMPP, double-click Xampp_restart.exe Restart Apache and Mysql.
That ' s all. Back to Wordpress background, you can successfully import the XML file
It is easy to do it ~ no longer worry about memory size problem!