Wordpress website throwing "There has been a critical error on this website." in all pages after migration

Keywords: WordPress - AWS - Technical issue - Other
bnsupport ID: 9ff3ac6a-ffb9-7844-9e35-74477b29e159
Description:
I migrated from an existing Lightsail WP site to another one in a new AWS account ( haven’t configured the new domain for this and acessing the same via IP)

Use the All-In-One-Migration plugin as suggested by Bitnami.

Got thee critical error as mentioned.

Please find the support bundle generated using the Bitnami Support Tool.

9ff3ac6a-ffb9-7844-9e35-74477b29e159

Hi @thompsonplr,

Our support tool found several errors in your instance

? Apache: Found possible issues
✓ WordPress: No issues found
? resources: Found possible issues
✓ mysql: No issues found
? php: Found possible issues

Found recent error messages in the Apache error log.

[Tue Apr 20 16:51:53.583842 2021] [proxy_fcgi:error] [pid 12507:tid 139833531922176] [client 117.210.187.30:56146] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/michigan_child_theme/page.php:15
Stack trace:
#0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/template-loader.php(106): include()
#1 /opt/bitnami/apps/wordpress/htdocs/wp-blog-header.php(19): require_once('/opt/bitnami/ap...')
#2 /opt/bitnami/apps/wordpress/htdocs/index.php(17): require('/opt/bitnami/ap...')
#3 {main}
  thrown in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/michigan_child_theme/page.php on line 15'

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

You can use the WordPress CLI tool to disable the theme if required

https://docs.bitnami.com/aws/apps/wordpress/administration/use-wpcli/

Your instance has little available RAM memory.You could try to increase your instance’s memory. Please check your cloud provider’s documentation for more information.

You can also enable swap memory to improve performance.

https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-memory-linux/

The following error appears in the /opt/bitnami/php/var/log/php-fpm.log:

[20-Apr-2021 15:54:39] WARNING: [pool www] server reached max_children setting (5), consider raising it

You will need to increase the max_children value in the /opt/bitnami/php/etc/bitnami/common.conf file and restart the services

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.