Community

HTTP ERROR 500 when trying to access an URL

mo
moneysite #1

hi, i got big trouble with my site which is newly integrated with CyberPanel. My website ran in Nginx before and then I moved to CP. When I try to access an old post URL, I got 500 HTTP Error. And I press F5 to reload the page, this post became normal, the URL is still able to access successfully. I don’t know which type of this error but it affects seriously to my SEO performance.

us
usmannasir #2

Please check web server logs.

mo
moneysite #3

Type your comment> @usmannasir said:

Please check web server logs.

These are my last 50 lines:
“2021-05-24 02:51:33.330527 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 868352 bytes) in /home/theatre-daunou.com/public_html/wp-includes/widgets/class-wp-widget-recent-posts.php on line 120
2021-05-24 02:51:33.330562 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Stack trace:
2021-05-24 02:51:33.330567 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 1. {main}() /home/theatre-daunou.com/public_html/index.php:0
2021-05-24 02:51:33.330570 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 2. require() /home/theatre-daunou.com/public_html/index.php:17
2021-05-24 02:51:33.330574 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 3. require_once() /home/theatre-daunou.com/public_html/wp-blog-header.php:19
2021-05-24 02:51:33.330577 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 4. include() /home/theatre-daunou.com/public_html/wp-includes/template-loader.php:106
2021-05-24 02:51:33.330580 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 5. generate_construct_sidebars() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/single.php:52
2021-05-24 02:51:33.330583 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 6. get_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/inc/structure/sidebars.php:34
2021-05-24 02:51:33.330586 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 7. locate_template() /home/theatre-daunou.com/public_html/wp-includes/general-template.php:136
2021-05-24 02:51:33.330589 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 8. load_template() /home/theatre-daunou.com/public_html/wp-includes/template.php:676
2021-05-24 02:51:33.330592 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 9. require_once() /home/theatre-daunou.com/public_html/wp-includes/template.php:730
2021-05-24 02:51:33.330595 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 10. dynamic_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/sidebar.php:22
2021-05-24 02:51:33.330612 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 11. WP_Widget_Recent_Posts->display_callback() /home/theatre-daunou.com/public_html/wp-includes/widgets.php:823
2021-05-24 02:51:33.330615 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 12. WP_Widget_Recent_Posts->widget() /home/theatre-daunou.com/public_html/wp-includes/class-wp-widget.php:380
2021-05-24 02:51:33.331051 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /home/theatre-daunou.com/public_html/wp-includes/functions.php on line 3397
2021-05-24 02:51:33.331060 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Stack trace:
2021-05-24 02:51:33.331064 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 1. {main}() /home/theatre-daunou.com/public_html/index.php:0
2021-05-24 02:51:33.331067 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 2. require() /home/theatre-daunou.com/public_html/index.php:17
2021-05-24 02:51:33.331070 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 3. require_once() /home/theatre-daunou.com/public_html/wp-blog-header.php:19
2021-05-24 02:51:33.331073 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 4. include() /home/theatre-daunou.com/public_html/wp-includes/template-loader.php:106
2021-05-24 02:51:33.331076 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 5. generate_construct_sidebars() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/single.php:52
2021-05-24 02:51:33.331079 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 6. get_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/inc/structure/sidebars.php:34
2021-05-24 02:51:33.331081 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 7. locate_template() /home/theatre-daunou.com/public_html/wp-includes/general-template.php:136
2021-05-24 02:51:33.331084 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 8. load_template() /home/theatre-daunou.com/public_html/wp-includes/template.php:676
2021-05-24 02:51:33.331087 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 9. require_once() /home/theatre-daunou.com/public_html/wp-includes/template.php:730
2021-05-24 02:51:33.331090 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 10. dynamic_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/sidebar.php:22
2021-05-24 02:51:33.331093 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 11. WP_Widget_Recent_Posts->display_callback() /home/theatre-daunou.com/public_html/wp-includes/widgets.php:823
2021-05-24 02:51:33.331095 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 12. WP_Widget_Recent_Posts->widget() /home/theatre-daunou.com/public_html/wp-includes/class-wp-widget.php:380
2021-05-24 02:51:33.331098 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 13. WP_Fatal_Error_Handler->handle() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:0
2021-05-24 02:51:33.331101 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 14. WP_Fatal_Error_Handler->display_error_template() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:57
2021-05-24 02:51:33.331104 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 15. WP_Fatal_Error_Handler->display_default_error_template() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:152
2021-05-24 02:51:33.331107 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 16. wp_die() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:233
2021-05-24 02:51:33.331561 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 856064 bytes) in Unknown on line 0
2021-05-24 02:51:33.331570 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP Stack trace:
2021-05-24 02:51:33.331573 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 1. {main}() /home/theatre-daunou.com/public_html/index.php:0
2021-05-24 02:51:33.331576 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 2. require() /home/theatre-daunou.com/public_html/index.php:17
2021-05-24 02:51:33.331579 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 3. require_once() /home/theatre-daunou.com/public_html/wp-blog-header.php:19
2021-05-24 02:51:33.331582 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 4. include() /home/theatre-daunou.com/public_html/wp-includes/template-loader.php:106
2021-05-24 02:51:33.331585 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 5. generate_construct_sidebars() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/single.php:52
2021-05-24 02:51:33.331588 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 6. get_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/inc/structure/sidebars.php:34
2021-05-24 02:51:33.331591 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 7. locate_template() /home/theatre-daunou.com/public_html/wp-includes/general-template.php:136
2021-05-24 02:51:33.331594 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 8. load_template() /home/theatre-daunou.com/public_html/wp-includes/template.php:676
2021-05-24 02:51:33.331597 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 9. require_once() /home/theatre-daunou.com/public_html/wp-includes/template.php:730
2021-05-24 02:51:33.331600 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 10. dynamic_sidebar() /home/theatre-daunou.com/public_html/wp-content/themes/generatepress/sidebar.php:22
2021-05-24 02:51:33.331602 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 11. WP_Widget_Recent_Posts->display_callback() /home/theatre-daunou.com/public_html/wp-includes/widgets.php:823
2021-05-24 02:51:33.331605 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 12. WP_Widget_Recent_Posts->widget() /home/theatre-daunou.com/public_html/wp-includes/class-wp-widget.php:380
2021-05-24 02:51:33.331608 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 13. WP_Fatal_Error_Handler->handle() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:0
2021-05-24 02:51:33.331611 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 14. WP_Fatal_Error_Handler->display_error_template() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:57
2021-05-24 02:51:33.331614 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 15. WP_Fatal_Error_Handler->display_default_error_template() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:152
2021-05-24 02:51:33.331617 [NOTICE] [1457] [157.55.39.29:5888:HTTP2-1#theatre-daunou.com] [STDERR] PHP 16. wp_die() /home/theatre-daunou.com/public_html/wp-includes/class-wp-fatal-error-handler.php:233”

us
usmannasir #4

The error I see is

Fatal error: Allowed memory size of 134217728 bytes exhausted

You need to increase memory limit for the php version you are using

mo
moneysite #5

Type your comment> @usmannasir said:

The error I see is

Fatal error: Allowed memory size of 134217728 bytes exhausted

You need to increase memory limit for the php version you are using

I tried to increase php limit to 256M (which was 128M before) but this error still happen.
Is this error related to .htaccess config?

us
usmannasir #6

You need to click “Restart PHP” or do killall lsphp from cli.

mo
moneysite #7

Type your comment> @usmannasir said:

You need to click “Restart PHP” or do killall lsphp from cli.

i restarted PHP as well after changing the config. but it didn’t work

us
usmannasir #8

Then its time for you to look into our partner section and go for a managed service. Because these are the exact steps to follow.

Sign in to reply