Site logo

Archived topic

Errors in the logs

6 replies · Started by Bogdan on August 11, 2022

Viewing posts 1–7 of 7

Kinsta, my host, was trying to help me with website performance. They say that GeneratePress theme might cause the issue (502, 504 errors and slow speed).

2022/08/11 17:32:50 [error] 5865#5865: *1486232 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined variable $post_id in /www/sibotherm_429/public/wp-content/themes/generatepress_child/functions.php on line 11" while reading response header from upstream, client: 83.185.47.78, server: http://www.sibotherm.com, request: "GET /incalzire-in-pardoseala-pret/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-sibotherm.sock:", host: "www.sibotherm.com:24184", referrer: "https://www.google.com/"

Please, can you help?
Maybe this issue is not at your end, sorry to bother you.

Many thx.
Bogdan

Hi there,

Looking at the error, it seems caused by your child theme, do you have any custom functions added to your child theme? As the default GP child theme functions.php file is blank.

If so, can you switch to the parent theme and test the performance again?

Hi!

Parent theme = same issue (502, 504 error or very slow).
The issue occurs after a browser hard refresh of a post/page; child and parent themes.
Restarting PHP = problem solved.

With parent theme:
2022/08/12 03:27:49 [error] 5865#5865: *1498079 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.166.130.2, server: http://www.sibotherm.com, request: "GET /cele-mai-bune-centrale-termice-pe-gaz/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-sibotherm.sock", host: "www.sibotherm.com:24184", referrer: "https://www.google.com/"

Thank you.

Parent theme:
2022/08/12 03:40:27 [error] 5865#5865: *1498757 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 66.249.81.243, server: http://www.sibotherm.com, request: "GET /category/echipamente-apa/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-sibotherm.sock:", host: "www.sibotherm.com:24184"

If this info helps.

Thanks again.

Hi there,

so you have some bad code in your Child Theme. It seems on line 11 you declare the $post_id variable but that is not defined. And that is proven when you disable the Child Theme. I suggest you remove the snippet that line is in. If you want to share the snippet in another topic we can take look at what might be wrong with it.

With just the Parent Theme enabled the error you see is: 104: Connection reset by peer which generally means a config change has occurred on the server.

If you keep the child theme and then ask Kinsta to look at the issue. As that is not GP related.
As a note - we are hosted on Kinsta, and so are many of the sites that our team develop.

Thank you very much.
I will do everything you suggested.

Let us know how you get on

This archived topic is closed to new replies.