{"id":764,"date":"2012-08-13T08:01:36","date_gmt":"2012-08-13T08:01:36","guid":{"rendered":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/?p=764"},"modified":"2017-02-17T20:31:40","modified_gmt":"2017-02-17T20:31:40","slug":"fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-x-bytes","status":"publish","type":"post","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-x-bytes\/","title":{"rendered":"Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes)"},"content":{"rendered":"<p>How to resovle this problem that took my site down and seems to be a common problem on google.<\/p>\n<p>&nbsp;<\/p>\n<p>Create a file called php.ini in the root of your site (if you are using a hosted addon domain, this must be in the subdirectory of that site)<\/p>\n<p>In php.ini, enter a line that says memory_limit = 64MB<\/p>\n<p>In your site&#8217;s .htaccess (being a WordPress blog, I&#8217;m assuming there is one), enter the following line SetEnv PHPRC \/\/ (keep the slashes) Edit wp-config.php and enter the following line define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;64M&#8217;);<\/p>\n<p>Upload the new files to the server<\/p>\n<p>or<\/p>\n<p>It makes more sense to add the line:<br \/>\ndefine(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;64M&#8217;);`<br \/>\nto wp-config.php &#8211; wp-settings.php will be overwritten when you upgrade, but if the value is already defined in wp-config then it uses what is set there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to resovle this problem that took my site down and seems to be a common problem on google. &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[3],"tags":[397,398,399,400,401,183],"class_list":["post-764","post","type-post","status-publish","format-standard","hentry","category-computer-related","tag-allocated","tag-allowed-memory-size","tag-bytes","tag-exhausted","tag-fatal-error","tag-wordpress"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":844,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wordpress-fatal-error-on-upgrade-allowed-memory-size-exhausted\/","url_meta":{"origin":764,"position":0},"title":"WordPress &#8211; Fatal Error on Upgrade, Allowed memory size exhausted?","author":"Nerd","date":"1st March 2013","format":false,"excerpt":"Example: Fatal error: Out of memory (allocated 67108864) (tried to allocate 18640 bytes) in blah\/blah\/blah\/public_html\/wordpress\/wp-includes\/media.php on line 253 \u00a0 Maybe a All in One SEO Plugin is the problem. 1. Deactivate the SEO plugin 2. Upload the images 3. Update the post. 4. Activate SEO. This worked for me. Solved\u2026","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":759,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/word-press-error-message\/","url_meta":{"origin":764,"position":1},"title":"Word Press Error Message","author":"Nerd","date":"10th June 2012","format":false,"excerpt":"The following word press error message seems to occur if you have exceeded your webspace on your server and you try to update wordpress. Error Message: Download failed.: Failed writing body (409 != 1448)","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":824,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/steam-error-could-not-connect-to-steam-network\/","url_meta":{"origin":764,"position":2},"title":"Steam &#8211; Error &#8220;Could not connect to Steam network&#8221;","author":"Nerd","date":"27th December 2012","format":false,"excerpt":"This error was nothing to do with the steam servers or my internet connection, it was down to the disk space where Steam is installed had run out and I only had 14MB free so it wouldnt start steam as there was an update that it couldnt do.","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1166,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/how-to-delete-skype-fully-from-your-computer-solved\/","url_meta":{"origin":764,"position":3},"title":"If Skype will not install then try this work around using the portable version","author":"Nerd","date":"25th March 2015","format":false,"excerpt":"Having issues installing Skype? Try this.","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":166,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/microdirect-samsung-750gb-spinpoint-f1-sat-samsung-hd753lj\/","url_meta":{"origin":764,"position":4},"title":"Microdirect &#8211; Samsung 750GB Spinpoint F1 SAT (Samsung HD753LJ)","author":"Nerd","date":"12th January 2010","format":false,"excerpt":"I purchased a hard drive from microdirect about a year ago. The hard disc drive is a \"Samsung 750GB Spinpoint F1 SAT,\u00a0 Samsung HD753LJ\" and has always seemed to have problems with sectors and the hard disc drive did not always appear in \"My Computer\". I ran Spinrite to repair\u2026","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1107,"url":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/windows-live-mail-not-starting-error-message-0x80041161-solved\/","url_meta":{"origin":764,"position":5},"title":"Windows Live Mail Not Starting &#8211; Error Message 0x80041161 [SOLVED]","author":"Nerd","date":"23rd October 2014","format":false,"excerpt":"How to resolve the Windows Live Mail not starting issue. - Error Message 0x80041161","rel":"","context":"In &quot;Computer Related&quot;","block_context":{"text":"Computer Related","link":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/category\/computer-related\/"},"img":{"alt_text":"windows_live_id_assistant_services_error_0x80041161","src":"https:\/\/i0.wp.com\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-content\/uploads\/2014\/10\/windows_live_id_assistant_services_error_0x80041161.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/posts\/764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/comments?post=764"}],"version-history":[{"count":1,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/posts\/764\/revisions"}],"predecessor-version":[{"id":765,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/posts\/764\/revisions\/765"}],"wp:attachment":[{"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/media?parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/categories?post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nerdorturd.com\/webdevelopments\/nerdorturd\/wp-json\/wp\/v2\/tags?post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}