Issues with WordPress Corruption and Backup Management
-
I've been dealing with some ongoing issues with my WordPress site and backups, and I could really use some advice.
It all started back in October when my site got corrupted and showed the error message: “There has been a critical error on this website.” After some time, I finally managed to restore it, but the same problem hit again last week. I had to go back to a very old backup because trying to restore from more recent ones just brought up the same error, even though they were from before the issues began.
This seems to be a WordPress-specific problem since my other applications are working fine. I don’t think the server is the issue, either.
On top of that, I’ve noticed that some apps aren’t backing up correctly, and old backups aren’t being deleted, which might be leading to storage problems.
I'm not sure if these two issues are connected, but I'd appreciate any tips on diagnosing and fixing them. Has anyone experienced something similar? Any suggestions would be great!
-
@IniBudi said in Issues with WordPress Corruption and Backup Management:
Try to switch your PHP version to 7.4,
How do I do that?
-
@SamGreenwood make sure that you use LAMP instead of WordPress Developer or Managed.
-
@IniBudi said in Issues with WordPress Corruption and Backup Management:
@SamGreenwood make sure that you use LAMP instead of WordPress Developer or Managed.
Now you come to mention it, it'd probably be good if the WordPress apps had the same "chose PHP version" feature that the LAMP app has.
-
If WP keeps getting corrupt, it is possible that the site is hacked. The backup situation and WP not loading is most likely not related.
About backups not getting deleted, see the notes in https://docs.cloudron.io/backups/#cleanup-backups . When app updates, it creates a backup and this backup will be kept for 3 weeks.
-
@IniBudi said in Issues with WordPress Corruption and Backup Management:
@SamGreenwood make sure that you use LAMP instead of WordPress Developer or Managed.
The instance I'm using is WP (Managed). I was hoping there's a way to fix it without having to create a new server. I don't want to lose my content.
@joseph said in Issues with WordPress Corruption and Backup Management:
If WP keeps getting corrupt, it is possible that the site is hacked. The backup situation and WP not loading is most likely not related.
I doubt it, I don't see any traffic that looks unusual. It seems like an issue with the WP package.
-
@SamGreenwood said in Issues with WordPress Corruption and Backup Management:
I doubt it, I don't see any traffic that looks unusual. It seems like an issue with the WP package.
Do you have the logs when WP is down? It could also be a plugin related issue. Update plugins one by one and after each update restart the app to check which plugin might be causing it
-
@SamGreenwood Also, is there a way to pull the main Cloudron log file and the app log files at once?
-
@SamGreenwood dont' need the cloudron log file, just the app logs is sufficient.
-
@SamGreenwood try do disable all Wp plugins and themes. Simply, you can rename those folders (/wp-content/plugins and /wp-content/themes) adding something after, then create new empty ones. And try if something changes. I don't think issue is related to backup.
-
Here are links the the logs:
-
About Wordpress,
- list item have you disabled all plugins and themes?
- did you check that wp-config.php is properly configured? (Eg. DB_NAME, DB_USER, DB_PASSWORD and DB_HOST).
In this situation, I think could be better to hire a Wp dev that can take a deep look inside...
About Cloudron,
it seems you don't have enough space on VPS (Error: Not enough disk space)...
-
There seem to be separate issues.
Cloudron backup errored with error: Error copying snapshot/app_542a898c-ae8f-4b67-b06e-16104dd8cdf4.tar.gz (12168190995 bytes): AccessDenied AccessDenied: null
This is the backup error. It says access denied. How/where are your backups stored? Does the API key have permissions to Copy?
2025-01-18T00:00:37.000Z [Sat Jan 18 00:00:37.378324 2025] [php:error] [pid 66] [client 172.18.18.140:58048] PHP Fatal error: Uncaught Error: Failed opening required '/app/data/wp-content/plugins/wp-rest-api-authentication/admin\partials\notices\class-mo-api-authentication-notices-utils.php' (include_path='.:/usr/share/php') in /app/data/wp-content/plugins/wp-rest-api-authentication/includes/class-miniorange-api-authentication-cron-manager.php:14\nStack trace:\n#0 /app/data/wp-content/plugins/wp-rest-api-authentication/includes/class-miniorange-api-authentication.php(130): require_once()\n#1 /app/data/wp-content/plugins/wp-rest-api-authentication/includes/class-miniorange-api-authentication.php(76): Miniorange_Api_Authentication->load_dependencies()\n#2 /app/data/wp-content/plugins/wp-rest-api-authentication/miniorange-api-authentication.php(124): Miniorange_Api_Authentication->__construct()\n#3 /app/data/wp-content/plugins/wp-rest-api-authentication/miniorange-api-authentication.php(127): run_miniorange_api_authentication()\n#4 /app/code/wp-settings.php(471): include_once('...')\n#5 /app/data/wp-config.php(118): require_once('...')\n#6 /app/code/wp-load.php(50): require_once('...')\n#7 /app/code/wp-blog-header.php(13): require_once('...')\n#8 /app/code/index.php(17): require('...')\n#9 {main}\n thrown in /app/data/wp-content/plugins/wp-rest-api-authentication/includes/class-miniorange-api-authentication-cron-manager.php on line 14
There is a PHP erorr coming from
wp-rest-api-authentication
plugin. You have to debug the backtrace above. -
Clarification:
This instance has WP Multisite enabled. I get the error mentioned above on the subcidiary sites but get a "Error establishing a database connection" on the main network site.
-
@SamGreenwood can you try disabling
wp-rest-api-authentication
? I suspect that plugin is the source of the issue. See https://docs.cloudron.io/apps/wordpress-managed/#disabling-plugin -
I followed the instructions, now the child sites work but the main network site isn't,