Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
1.8k views
by

Hi Friends! 

Suddenly I have received Error 500 problem when the plug-in of "Redis Object Cache" after long process of work with my website has decided to activate WP. For the period of designing, I have disconnected this plug-in, and also NGINX Helper. 

No pages have opened in the browser. I checked on different devices and various browsers. I have restored the database from a backup, but it hasn't helped. I could get access only thanks to restoration from "Backups" Digital Ocean. After that, I have tested activation of a plug-in of "Redis Object Cache" once again. And I have again received Error 500.

Before (a few weeks ago) I many times activated it, but didn't face problems. 

What have I made incorrectly and how many candles need to be bought for god?

Sorry for huge cite from log file. I have found mentions of "Redis" only in "shigaev.com.error.log". Still another log file can be necessary? I don't know unfortunately.

2018/09/17 23:43:30 [error] 970#970: *35 FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php): failed to open stream: No such file or directory in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220

PHP message: PHP Fatal error:  require_once(): Failed opening required '/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php' (include_path='.:/usr/share/php') in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220" while reading response header from upstream, client: 90.154.70.61, server: shigaev.com, request: "GET /wp-admin/options-general.php?page=redis-cache&message=cache-enabled HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "shigaev.com", referrer: "https://shigaev.com/wp-admin/options-general.php?page=redis-cache"

2018/09/17 23:43:36 [error] 970#970: *35 FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php): failed to open stream: No such file or directory in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220

PHP message: PHP Fatal error:  require_once(): Failed opening required '/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php' (include_path='.:/usr/share/php') in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220" while reading response header from upstream, client: 90.154.70.61, server: shigaev.com, request: "GET /wp-admin/options-general.php?page=redis-cache&message=cache-enabled HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "shigaev.com"

2018/09/17 23:43:44 [error] 970#970: *35 FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php): failed to open stream: No such file or directory in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220

PHP message: PHP Fatal error:  require_once(): Failed opening required '/var/www/shigaev.com/htdocs/wp-content/themes/basic/inc/html-blocks.php' (include_path='.:/usr/share/php') in /var/www/shigaev.com/htdocs/wp-content/themes/redpen/functions.php on line 220" while reading response header from upstream, client: 90.154.70.61, server: shigaev.com, request: "GET /wp-admin/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "shigaev.com"

1 Answer

0 votes
by Expert

Hi Ontomn,

Seems like you are having issues with your theme.

Check the lines and files that logs are marking with error.

Regards.

by
I'm not sure I understand the relationship between ROC and the theme. But I noticed one dependence of the error from the appearance of a new file: right after the activation of the ROC plugin, "object-cache.php" appears in the folder "wp-content". After that, updating any page causes error 500. But if I delete (or rename) this file, the site becomes available again.

Of course, I replaced the theme with another (Twenty Seveteen). And I ran into the same problem in the same sequence.

I'm lost. Does the community have any clues about the causes of the problem?
by Expert

Did you modify the default  wp-config.php file generated by Webinoly?

Also, try clearing the redis cache. sudo webinoly -clear-cache=redis or sudo webinoly -clear-cache=all

by

I'm not really sure. But I remember some sort of editing. Now the wp-config.php directives are:

define('DB_NAME', '****');

define('DB_USER', '****');

define('DB_PASSWORD', '****');

define('DB_HOST', 'localhost');

define('DB_CHARSET', 'utf8');

define('DB_COLLATE', '');

$table_prefix  = 'wp_';

define('WP_DEBUG', false);

define('WP_REDIS_SELECTIVE_FLUSH', true);

define('WP_CACHE_KEY_SALT', 'redis_object_cache_for_wp_shigaev.com');

define('WP_CACHE', true);

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

define('CONCATENATE_SCRIPTS', false);

require_once(ABSPATH . 'wp-settings.php');

* * * 

I cleared the cache, as you advised. But before that, I found a ridiculous solution to the problem: the plugin "Health Check & Troubleshooting". Using this crutch, I returned the site to life and successfully activated ROC and NH. Of course: this is not a solution.

What log-file should I study to get to the truth?

I bought two candles for Satan and one for Catgod. It worked half way.

by Expert

This issue is not related to Webinoly.

You are having issues with your theme and plugins.

Webinoly have a set of tools to help you dig and find the root cause.

sudo log domain.com -error
sudo log -error
sudo log -php

# Enable wp-debug in your wp-config.php and then see the logs in real time
sudo log domain.com -wp

Regards.

by
I did not blame Webinoly. I wanted a solution to the problem.

Ok, I'll continue to explore the dependencies.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...