nginx - Wordpress - PHP Fatal Error - functions.php - while trying to get to wp-admin -
i have w3tc, nginx, varnish , php5-fpm installed on ubuntu 12.04 image 768 mb ram. site functioning fine, when try access /wp-admin http 500 internal server error.
i have went logs , have looked , found following error:
php message: php fatal error: allowed memory size of 67108864 bytes exhausted (tried allocate 5184285 bytes) in /var/www/wp-includes/functions.php on line 251 while reading response header upstream
i have seen many posts says make following settings:
increase allocated memory in wp-config.php or wherever need it:
define('wp_memory_limit', '64m');
in case php running out of memory, can increase modifying php.ini , restarting web server.
memory_limit 256m
but haven't had luck. have restored image previous backup , issue still exists. no plugins have been modified or updated since previous time able access backend.
i turned wp_debug true , saw this:
notice: wp_enqueue_script called incorrectly. scripts , styles should not registered or enqueued until wp_enqueue_scripts , admin_enqueue_scripts , or init hooks. please see debugging in wordpress more information. (this message added in version 3.3.) in /var/www/wp-includes/functions.php on line 2758 notice: wp_enqueue_style called incorrectly. scripts , styles should not registered or enqueued until wp_enqueue_scripts , admin_enqueue_scripts , or init hooks. please see debugging in wordpress more information. (this message 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
Comments
Post a Comment