500 error thrown on posting comment and contact form
-
Hi,
I am on wordpress 4.5.2, nginx-1.10.0, php-7.0.6, mariadb-10.0.23. I am using nginx cache plugin to clear nignx cache. Full cache purging is working fine using the cache purge button in the admin area. But this plugin is causing a 500 error when a user is posting comments or for matter if posting on contact form. When a user posts a comment, the comment is successfully submitted, but at user’s end instead of returing to the original post page, the user is handed a 500 error page saying unable to handle the request. Things work fine upon deactivating the plugin. But when reavtivated, the issue persists. A closer look at the error log says this:2016/05/09 15:49:42 [error] 1804#0: *3042 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function request_filesystem_credentials() in /path/to/wordpress/wp-content/plugins/nginx-cache/nginx-cache.php:250 Stack trace: #0 /path/to/wordpress/wp-content/plugins/nginx-cache/nginx-cache.php(169): NginxCache->initialize_filesystem() #1 /path/to/wordpress/wordpress/wp-content/plugins/nginx-cache/nginx-cache.php(232): NginxCache->is_valid_path() #2 /path/to/wordpress/wp-content/plugins/nginx-cache/nginx-cache.php(221): NginxCache->flush_zone() #3 /path/to/wordpress/wordpress/wp-includes/plugin.php(525): NginxCache->flush_zone_once(40) #4 /path/to/wordpress/wp-includes/comment.php(1821): do_action('comment_post', 40, 0, Array) #5 /path/to/wordpress/wp-includes/comment.php(2918): wp_new_comment(Array) #6 /path/to/wordpress/wp-comments-post.php(20): wp_handle_comment_submission(Array) #7 {main} thrown in /path/to/wordpress/wp-content/plugins/nginx-cache/nginx-cache.php on line 250" while reading response header from upstream, client: 1.2.3.4, server: www.example.com, request: "POST /wp-comments-post.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "www.example.com", referrer: "https://www.example.com/2015/04/05/some-sample-url/"
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘500 error thrown on posting comment and contact form’ is closed to new replies.