Installing or uploading to Wordpress and getting a Memory limit error


SUBMITTED BY: Guest

DATE: March 12, 2019, 6:40 p.m.

FORMAT: Text only

SIZE: 3.4 kB

HITS: 294

  1. Installing or uploading to Wordpress and getting a Memory limit error
  2. ++++++++++++++
  3. If You want to buy cheap web hosting then visit http://listtop.pw and select the cheapest hosting. it can be suitable for all your needs.
  4. Top 200 best traffic exchange sites http://listtop.pw/surf
  5. Listtop.pw
  6. Listtop.pw
  7. Listtop.pw
  8. +++++++++++++++
  9. Sometimes when you are installing a new theme to Wordpress or even uploading your edits to Wordpress, there will be times that you get an error that says something like,
  10. "You do not have enough memory to complete the task"
  11. or something like that. A solution you can try is to increase the limits in your php.ini or .user.ini file in the public_html directory. Doing this will allow you to overwrite the default memory limits (which can sometimes be 2 MB) to where you need the limits at.
  12. Keep this is mind when you do this, depending on the amount of resources you are allocated by your hosting company, they could be over used and could cause Internal Server Errors. You should consult with your hosting company before making this change.
  13. Here are example increased limits you can use:
  14. memory_limit = 192M
  15. max_execution_time = 300
  16. max_input_time = 300
  17. upload_max_filesize = 100M
  18. upload_tmp_dir = 128M
  19. post_max_size = 128M
  20. __________________
  21. LP TECHS
  22. www.lunarpages.com
  23. That's correct! php.ini as well as .htaccess file can do it for you. If you have CloudLinux then using cPanel >> Select PHP option, you can update any of the PHP values easily.
  24. Send a message via MSN to easyhostmedia
  25. but using the php.ini specific to your website may not work. take your example.
  26. memory_limit = 192M
  27. max_execution_time = 300
  28. max_input_time = 300
  29. upload_max_filesize = 100M
  30. upload_tmp_dir = 128M
  31. post_max_size = 128M
  32. will not work if the server admin has the servers php.ini set as
  33. memory_limit = 192M
  34. max_execution_time = 200
  35. max_input_time = 200
  36. upload_max_filesize = 50M
  37. upload_tmp_dir = 64M
  38. post_max_size = 64M
  39. __________________
  40. Terry Robertson - CEO The Easyhost Media Group
  41. PowerSSL - - We Secure your World
  42. The Scamlist Forum - Fighting against scammers
  43. Hello,
  44. You have to need to increase
  45. max_execution_time = 3000
  46. max_input_time = 3000
  47. max_input_time can be set to -1 , execution time of 90 should be enough, but you can go with 300 if you get 500 error
  48. __________________
  49. VIRTONO - Reliable and affordable Cloud hosting
  50. Shared - Reseller - VPS - Cloud VM - Dedicated
  51. RO - NL - DE - UK Datacenters
  52. max_input_time can be set to -1
  53. does not always work
  54. If you get the Fatal error: Allowed memory size exhausted error, you need to increase PHP Memory limit in wordpress
  55. - Edit the wp-config.php file
  56. - Locate under /root folder
  57. - Modify the PHP memory limit as follows:
  58. define( 'WP_MEMORY_LIMIT', '256M');
  59. - Save the file and refresh your wordpress site to see if the PHP memory issue is resolved.
  60. If you get the Fatal error: Allowed memory size exhausted error, you need to increase PHP Memory limit in wordpress
  61. - Edit the wp-config.php file
  62. - Locate under /root folder
  63. - Modify the PHP memory limit as follows:
  64. define( 'WP_MEMORY_LIMIT', '256M');
  65. - Save the file and refresh your wordpress site to see if the PHP memory issue is resolved.
  66. Yes agreed. I also found this problem but after memory_limit 256M, I am able to do my job.

comments powered by Disqus