This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing server errors on your site that make it very slow and often go away when you reload the page, we have identified a potential solution. Solution: First, you might be facing an issue that requires adding specific code to your theme's functions file to correct rewrite rules:
1. Using FTP, navigate to `/wp-content/themes/your-theme`.
2. Open the `functions.php` file for editing.
3. Add the following code and then save the changes:
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am experiencing server errors on my site hidden link. I am trying to work on the site, but the errors make it very slow. I attempted to follow a link for troubleshooting: https://wpml.org/forums/topic/internal-server-error-23/ but couldn't understand the instructions.
Symptoms:
I get server errors about 50% of the time, which often go away when I reload the page.
You may be experiencing an issue mentioned in another thread. Here are the steps to resolve it:
1. Using FTP, navigate to `/wp-content/themes/your-theme`.
2. Open the `functions.php` file for editing.
3. Add the following code and then save the changes:
Thanks for the reply. I added that to my functions.php (at the end of the file, hope it doesn't matter where I added it?), but it didn't seem to change. I'm still getting a lot of server errors, which makes working on the page pretty tricky...
update: deactivating it and working on it for an hour, i've had zero server errors, and the wp-admin site is super fast. :/ But clearly i need to re-activate it, as we need both BG and EN language options/etc.
Thank you for your feedback. Yes, you can activate it again.
We need to check what those are. The first step is to enable debugging. You can add a few lines to the site’s wp-config.php file. With the error log enabled, you will see the actual problem.
To enable it, open your wp-config.php file and look for define('WP_DEBUG', false);. Change it to:
define('WP_DEBUG', true);
To enable the error logging to a file on the server, you need to add yet one more similar line:
define( 'WP_DEBUG_LOG', true );
The errors will be saved to a debug.log file inside the /wp-content/directory.
Hi Andrey,
Again, sorry for the delay! I entered the following into the wp-config.php file for you!
I had the pluging turned off the last day/s so i could fix a bunch of the issues on the pages that I couldn't fix before due to the server errors (basically there are so many errors that it's not really possible to work, they come up every page reload when the plugin is turned on). I'll turn the wpml plugin back on now!
Thanks for helping,
Steve
define( 'WP_DEBUG', true );
/* Add any custom values between this line and the "stop editing" line. */
define( 'WP_DEBUG_LOG', true );
/* Put this in for WPML. */
FYI, before i even turned WPML back on (the plugin), I'm getting the following errors already at the top of my wp-admin page:
Deprecated: Automatic conversion of false to array is deprecated in /home/hipstorb/public_html/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php on line 19
Warning: Cannot modify header information - headers already sent by (output started at /home/hipstorb/public_html/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php:19) in /home/hipstorb/public_html/wp-admin/includes/misc.php on line 1438
Warning: Cannot modify header information - headers already sent by (output started at /home/hipstorb/public_html/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php:19) in /home/hipstorb/public_html/wp-includes/functions.php on line 7137
Warning: Cannot modify header information - headers already sent by (output started at /home/hipstorb/public_html/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php:19) in /home/hipstorb/public_html/wp-admin/admin-header.php on line 9
Ooo, and now after doing the debug/log thing, when i go to the webpage,... this nasty error shows up at the top! looks... bad 😀
please help!
cheers,
Steve
I mean looks bad if new customers are checking our webpage (which is admittedly, sadly not a crazy amount daily, but.. not a great impression). Buuut, still looks bad 😀
Okay, now the page doens't load at all, and that's very bad. I may have to turn off whatever logging you had me add to the wp-config file, as the page isn't loading/broken 🙁
Is there something i can send?
FYI, I changed the de-bugging to false/false again, as the page now wasn't loading at ALL (not just showing the errors at the top), but i'll try to check your reply quickly, and can turn it back on asap when you are around if needed!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.