Background of the issue:
I am trying to access and edit 20 pages that are showing a critical error. The issue is present on both the English and Spanish pages. Here are some examples of the affected pages: hidden link, hidden link, hidden link, hidden link. I expected to see the page so I could check and edit it if necessary. The issue can also be seen here: hidden link.
Symptoms:
There are 20 pages showing a critical error on both English and Spanish versions. The expected page content is not visible, preventing editing and translation checks.
Questions:
What is causing the critical error on these pages?
How can I resolve the critical error to access and edit the pages?
Thank you for contacting WPML support. I'll be happy to help you with this. I'm not seeing an error on the link you shared, but I do see a 404 page. Can you share a screenshot of the error you are seeing? You mentioned the error is showing in more than one language. If you disable WPML, does the error still show? If so, please check and see if you disable all non WPML plugins so that only WPML is active if the error still shows. This is best tested in a staging environment so as not to interrupt your live site. Please let me know the results.
Thank you for your assistance. I will try this solution.
If I am logged in WordPress I get the critical error attached if I am not logged in I get 404 page.
In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.
The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:
/* That's all, stop editing! Happy blogging. */
Please note that you’ll see everything, not only related to our Plugins. This will most likely include messages from other plugins, your theme, and sometimes even WordPress core. The messages appear all over the place.
Sometimes they appear right on top, but they can also appear in the middle of the page.
After enabling the debug mode, please try to replicate the issue. Navigate to the page where the error message being displayed. The errors will be either displayed on the screen or logged in the debug.log log file inside the /wp-content/directory.
Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.
The topic ‘[Closed] Critical error on some pages’ is closed to new replies.