Skip to content

LightSail Wordpress Error 500

0

I have been hosting a wordpress site since June 2024 using Lightsail Bitnami Wordpress. Everything was working fine, till I navigated to wp admin console today. I guess the site stopped working on Mar 8 2025 (based on the error log timestamp), but I learned of it today upon visiting the URL/admin

What is baffling is that I have not touched the settings nor I have made any changes to the wordpress site. I also searched the re:Post chats to find something relevant but have not so far. I am posting the last error from the log, this error has been part of the log file repeatedly - this is pretty much the only error I see.

[Sat Mar 08 23:59:07.719678 2025] [proxy_fcgi:error] [pid 2234373:tid 140149136549568] [client 57.141.0.18:36804] AH01071: Got e
rror 'PHP message: PHP Warning:  require(/opt/bitnami/wordpress/wp-includes/html-api/class-wp-html-processor.php): Failed to ope
n stream: No such file or directory in /opt/bitnami/wordpress/wp-settings.php on line 264; PHP message: PHP Fatal error:  Uncaug
ht Error: Failed opening required '/opt/bitnami/wordpress/wp-includes/html-api/class-wp-html-processor.php' (include_path='.:/op
t/bitnami/php/lib/php') in /opt/bitnami/wordpress/wp-settings.php:264\nStack trace:\n#0 /bitnami/wordpress/wp-config.php(111): r
equire_once()\n#1 /opt/bitnami/wordpress/wp-load.php(50): require_once('...')\n#2 /opt/bitnami/wordpress/wp-blog-header.php(13):
 require_once('...')\n#3 /opt/bitnami/wordpress/index.php(19): require('...')\n#4 {main}\n  thrown in /opt/bitnami/wordpress/wp-
settings.php on line 264'

I rebooted the instance this morning to see whether the site will come back up and it did not. It has been over 2 hours and the site is still not responding.

Has anyone seen such random occurrence of the site no longer responding?

asked 8 months ago124 views
2 Answers
0

The error you're experiencing with your WordPress site on Lightsail appears to be related to a missing or inaccessible file in your WordPress installation. Specifically, the error message indicates that the system is unable to find or open the file 'class-wp-html-processor.php' in the WordPress includes directory.

This issue could have occurred for several reasons:

  1. Incomplete or corrupted WordPress update: It's possible that a WordPress core update was initiated but not completed successfully, leading to missing files.

  2. File system issues: There might be problems with file permissions or disk space that are preventing WordPress from accessing necessary files.

  3. Plugin or theme conflicts: Although you mentioned not making any changes, it's possible that an automatic update to a plugin or theme could have caused conflicts with core WordPress files.

To address this issue, you can try the following steps:

  1. Verify file system integrity: Check if the missing file exists in the specified directory. If it's missing, you may need to replace it with a copy from a fresh WordPress installation.

  2. Check file permissions: Ensure that the WordPress files and directories have the correct permissions set.

  3. Disable plugins and switch to a default theme: If you can access the wp-admin area, try disabling all plugins and switching to a default WordPress theme to rule out conflicts.

  4. Reinstall WordPress core files: You can try replacing the core WordPress files with a fresh copy, being careful not to overwrite your wp-content directory or wp-config.php file.

  5. Check for available updates: Once you regain access, make sure all components (WordPress core, plugins, and themes) are up to date.

  6. Review error logs: Continue monitoring your error logs for any additional information that might help identify the root cause.

If these steps don't resolve the issue, you may need to consider restoring from a recent backup or snapshot of your Lightsail instance from before the problem occurred. If you don't have a recent backup, you might need to set up a new WordPress instance and migrate your content to it.

Remember to always keep regular backups of your WordPress site and Lightsail instance to make recovery easier in situations like this.

Sources
Lightsail Instance showing http 500 error | AWS re:Post
WordPress site on Lightsail can't connect to any HTTPS resource | AWS re:Post
Error establishing a database connection - Lightsail and Wordpress | AWS re:Post
Resolve WordPress setup errors on Lightsail - Amazon Lightsail

answered 8 months ago
EXPERT
reviewed 8 months ago
0

Hi,

Thank you for reaching out, this may happen due to you due to failed Wordpress auto update, if the /opt/bitnami/wordpress/wp-includes/html-api/class-wp-html-processor.php does not exist on your directory, try to get a fresh copy of the html-api directory from Wordpress official website and replace the directory on your host, It is recommended to take a snapshot of your instance before making any changes, thank you.

thank you Yujie

AWS
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.