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: Exception
This topic contains 4 replies, has 2 voices.
Last updated by Andrey 1 year, 5 months ago.
Assisted by: Andrey.
Author | Posts |
---|---|
November 8, 2023 at 2:35 pm #14758021 | |
carlav-3 |
I am trying to: Hi, on a client site I use WPML. The website is still running on php 7.4 because as soon as I upgrade to 8.0 it gives an error. I tried deactivating all other plugins without success but as soon as I deactivate WPML the website comes back. So I am sure WPML is the cause I can't upgrade the php version to at least 8.0. Everything is up-to-date, the plugins, Divi WP. Link to a page where the issue can be seen: it can't be seen now because I downgraded back to 7.4. I also a staging site and same issue. I expected to see: a working website with php 8.0 Instead, I got: error message saying an error has occured. |
November 8, 2023 at 3:29 pm #14758419 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+03:00) |
Thank you for contacting WPML support. We 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. |
November 9, 2023 at 9:00 am #14763417 | |
carlav-3 |
Hi, thanks for your answer. I followed your instructions. But as soon as I upgrade php from 7.4 to 8.0 my dashboard gives an error and I can not reach it and can not provide you with a communication log. In the error log file on the server there are no recent errors so I can not send those. I use Divi and when I turn on the safe mode and set the php to 8.0 I see this error log: I don't know if that helps but I only see that when I deactivate WPML the site works on 8.0 and with WPML activated it is not. I hope you can still help me with this issue. |
November 9, 2023 at 12:42 pm #14766955 | |
carlav-3 |
An additional message that hopefully helps. In de WPML Support section of the WP dashboard I see this: WordPress So it says that the memory limit is 40M. But on the server I raised it to 256M in the php options. Why does WPML thinks the memory limit is 40M when in fact it is 256M? |
November 9, 2023 at 3:08 pm #14768715 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+03:00) |
Thank you for your feedback. The PHP Fatal error says that your server's allocated memory limit is out. I suggest increasing your server's WP Memory Limit and Memory Limit and checking the results afterward. PHP Memory Limit is the total size of memory that your server provides for you. WP Memory Limit is the memory assigned to a particular WordPress site on the server. It can never be bigger than the server’s main PHP Memory Limit. In other words, if your server’s PHP Memory Limit is 64M, even if you set WP Memory Limit to 128M or more, the actual memory limit for your site will still remain 64M. Please have a look here: https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/ |
November 9, 2023 at 5:03 pm #14770103 | |
carlav-3 |
I increased the memory limit to 512M on the server and in the wp-config.php and that seems to help. WPML needs a lot of resources so it seems. |