Pages

Saturday, December 13, 2014

Wordpress-Error:Allowed memory size of 41943040 bytes exhausted

This means that the maximum allowed memory of about 40M has been used and needs to be increased.
As such we write the following command into wp-config.php in order to increase allowed memory. 

In below example we are setting threshold to 64MB

('WP_MEMORY_LIMIT', '64M');

Wordpress-Bypass FTP credientials step for updates(Update on localhost)

If you want to bypass the step where wordpress asks for ftp credentials on update i.e you do not want wordpress to ask for ftp credentials on update specially helpful in updating on localhost

Then in wp-config.php add the following lines to the code
 
define('FS_METHOD','direct');

That's it and this will bypass the ask for ftp credientials