{"id":1998,"date":"2022-08-30T15:21:12","date_gmt":"2022-08-30T15:21:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/08\/wordpress-php-fatal-error-functions-php-while-trying-to-get-to-wp-admin-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:21:12","modified_gmt":"2022-08-30T15:21:12","slug":"wordpress-php-fatal-error-functions-php-while-trying-to-get-to-wp-admin-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/wordpress-php-fatal-error-functions-php-while-trying-to-get-to-wp-admin-collection-of-common-programming-errors\/","title":{"rendered":"WordPress &#8211; PHP Fatal Error &#8211; functions.php &#8211; while trying to get to wp-admin-Collection of common programming errors"},"content":{"rendered":"<p>I have W3TC, Nginx, varnish and php5-fpm installed on an Ubuntu 12.04 image with 768 MB RAM. The site itself is functioning fine, but when I try to access \/wp-admin I get an HTTP 500 Internal Server error.<\/p>\n<p>I have went to the logs and have looked and found the following error:<\/p>\n<blockquote>\n<p>PHP message: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 5184285 bytes) in \/var\/www\/wp-includes\/functions.php on line 251 while reading response header from upstream<\/p>\n<\/blockquote>\n<p>I have seen many posts where it says to make the following settings:<\/p>\n<blockquote>\n<p>Increase your allocated memory in wp-config.php or wherever you need it:<\/p>\n<p>define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;64M&#8217;);<\/p>\n<p>In case PHP itself is running out of memory, you can increase that by modifying php.ini and restarting your web server.<\/p>\n<p>memory_limit 256M<\/p>\n<\/blockquote>\n<p>But haven&#8217;t had any luck. I have also restored the image from a previous backup and the issue still exists. No plugins have been modified or updated since the previous time I was able to access the backend.<\/p>\n<p>I also turned WP_DEBUG to true and saw this:<\/p>\n<blockquote>\n<p>Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts , admin_enqueue_scripts , or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in \/var\/www\/wp-includes\/functions.php on line 2758 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts , admin_enqueue_scripts , or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in \/var\/www\/wp-includes\/functions.php on line 2758 Notice: Undefined variable: paged in \/var\/www\/wp-content\/themes\/organic_magazine\/functions.php on line 419<\/p>\n<\/blockquote>\n<p id=\"rop\"><small>Originally posted 2013-12-08 05:40:19. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have W3TC, Nginx, varnish and php5-fpm installed on an Ubuntu 12.04 image with 768 MB RAM. The site itself is functioning fine, but when I try to access \/wp-admin I get an HTTP 500 Internal Server error. I have went to the logs and have looked and found the following error: PHP message: PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1998","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1998"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1998\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}