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.
Tagged: Bug
This topic contains 13 replies, has 2 voices.
Last updated by Andrey 1 year, 10 months ago.
Assisted by: Andrey.
Author | Posts |
---|---|
August 16, 2023 at 8:27 pm #14241239 | |
albertM-24 |
I am trying to: Open String Translation or WordPress General Settings Link to a page where the issue can be seen: hidden link I expected to see: Normaly opened page Instead, I got: Error 500 or Memory Allocation Error I have tried disabling all plugins except WPML and the error still occurs. Changing the default language back to the previously selected language fixes the error, but the default language needs to be changed. |
August 17, 2023 at 2:04 pm #14246853 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
The 500 error page means that there is an error in the PHP code that your site runs. When errors are not caught, the server stops everything and returns a page that says โ500 errorโ or an empty page. Different servers are configured to display these errors slightly differently, but they all mean the same โ there is an unhandled PHP error in the siteโs code. First, you need to see what the errors are. Guessing what might be the problem and trying different solutions may lead to even more trouble. The first step is to enable debug. You can do this by adding a few lines to the siteโs wp-config.php file. With error log enabled, you will see what the actual problem is. To enable it, open your wp-config.php file and look for define(โWP_DEBUGโ, false);. Change it to: define('WP_DEBUG', true); In order 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 ); In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory. https://wpml.org/documentation/support/debugging-wpml/ Let me know what you see after the debug mode has been enabled. |
August 17, 2023 at 7:48 pm #14248539 | |
albertM-24 |
Hello, Below is the content from debug.log: [17-Aug-2023 19:43:26 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in \wp-includes\pomo\translations.php on line 288 PHP memory limit and WP memory limit is set to 2GB. Best Regards |
August 19, 2023 at 7:24 am #14255667 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
Yes, that's strange. PHP memory limit is more than enough. What are the results of you temporarily disabling WPML only and visiting the WordPress General Settings page? Are you getting the fatal error when changing the site's default language in WPML >> Languages? |
August 19, 2023 at 2:30 pm #14256621 | |
albertM-24 |
When WPML is disabled everything works fine same when I change back default language, zero problems. |
August 21, 2023 at 7:54 am #14260449 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
I need to request temporary access (wp-admin and FTP) to your site โ preferably to a test site where the problem has been replicated if possible โ in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. |
August 22, 2023 at 12:06 pm #14270873 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
Thank you for the information. Your staging site is not available. Can you check this? |
August 22, 2023 at 1:49 pm #14271795 | |
albertM-24 |
Sorry, an error caused PHP to crash. The server should now be stable. |
August 22, 2023 at 2:09 pm #14271891 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
I just tried to log in with provided URL and getting the following: Not Found The requested URL was not found on this server. |
August 22, 2023 at 7:12 pm #14273353 | |
albertM-24 |
I transfered this site to other server. Maybe DNS need time to flush. For me it looks ok. |
August 23, 2023 at 7:37 pm #14280465 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
Thank you. It is working now. I will have a look and let you know. |
August 24, 2023 at 2:56 pm #14286751 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
I appreciate your patience. The issue you faced seems to be related to https://wpml.org/errata/wordpress-6-3-performance-issues-with-string-translation-in-specific-scenarios/. Please do the following: - Deactivate the Woocommerce plugin and update it - Go to โWPML > String Translationโ, find and delete the strings belonging to โdefaultโ textdomain - Activate back Woocommerce - Switch the default language of the site. It should be fine now Please remember to back up your database first before you proceed. Let me know if still the problem. |
August 24, 2023 at 9:05 pm #14288267 | |
albertM-24 |
Thanks for the help. The proposed solution worked ๐ |
August 24, 2023 at 9:12 pm #14288275 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (ะ ัััะบะธะน ) Timezone: Europe/Kyiv (GMT+03:00) |
Great! Have a great weekend ahead ๐ |