This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing crashes in the WordPress admin after updating WPML to the latest version, it might be due to a compatibility issue with your theme or its associated plugins. Specifically, the crash occurs with a fatal error related to array and string offset access syntax in the theme's code.
Solution:
We recommend updating your theme and its associated plugins to the latest versions. We are unsure if in this case, updating the Hermes theme and the LionThemes Helper plugin to their latest versions resolved the issue. Before updating, ensure you make a complete backup of your site. If your theme and plugins are not officially compatible with WPML, consider contacting the theme authors to encourage them to join our Go Global Program.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance.
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: Compatibility
This topic contains 2 replies, has 0 voices.
Last updated by Itamar 2 weeks, 2 days ago.
Assisted by: Itamar.
Author | Posts |
---|---|
April 16, 2025 at 4:58 pm #16940513 | |
lodeT |
Background of the issue: Symptoms: Questions: |
April 16, 2025 at 6:00 pm #16940753 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Which WPML version are you trying to update from? Please share your site's Debug information if you need further help with this issue. You can read about it here. http://wpml.org/faq/provide-debug-information-faster-support/ Thanks, |
April 21, 2025 at 5:20 am #16950627 | |
lodeT |
Yes, it's an old version. When i update WPML CMS Nav (version Versie 1.5.2), the backend blocks and update process keeps running. I tried 3 times and i get the problem every time. After put back a backup, everything is working fine with the old version. if i update it, i get the problem again. |
April 21, 2025 at 7:47 am #16950951 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Do you use the WPML CMS Nav add-on? I ask this question because this plugin adds a particular feature, and by checking your website, I'm unsure if you are using this feature. You can read about the WPML CMS Nav add-on here: https://wpml.org/documentation/support/cms-navigation/. So if you do not need the features that this add-on adds, simply deactivate it and remove it from your website. Please let me know if this is the case. Otherwise, you should not have any problem updating WPML from version 4.6.13. However, you must correct the following. The debug info you have attached shows that your server's WP Memory Limit is set to 40 M. Our recommendations are to have the following as minimal requirements: - PHP 7 and above (this is OK with your installation) with a WP Memory Limit of at least 128MB, while 256MB is recommended. MySQL 5.6 and above. Please follow this link for detailed documentation: https://wpml.org/home/minimum-requirements/ Is it possible for you to change those to the minimum requirement? You may need to contact your hosting provider for that. Meeting those baseline requirements is most critical before debugging, and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to resolve the issue before contacting your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file: /** Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M' ); Add it before this line: /* That's all, stop editing! Happy blogging. */ Could you please perform that procedure and see if it helps? More info about this can be found here: https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit Regards, |
April 21, 2025 at 7:58 am #16951073 | |
lodeT |
Hi, this is way too complicated. is there an easy way to solve this problem. I don't understand why I have to change things in the code to update an ad-on... The reason why I have to update WPML CMS Nav in the list of updates is because apparently I can only use my WPML translation credits when this plugin is updated. but when I do this everything crashes and I have the known problem. |
April 21, 2025 at 8:13 am #16951131 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, The code I ask you to add is a standard required by WordPress itself, as well as for most themes and plugins. You wrote: "The reason why I have to update WPML CMS Nav in the list of updates is because apparently I can only use my WPML translation credits when this plugin is updated." There is no connection between updating the WPML CMS Nav plugin and using WPML's automatic translation credits. If you require additional assistance with this, please share the access details to your site with me. Preferably, access to a staging site (a copy of your site on the same server where the issue also occurs). I'm enabling a private message for the following reply. |
April 21, 2025 at 8:13 am #16951132 | |
lodeT |
Sorry i made a mistake. it's this plugin that caused the crash : WPML Multilingual CMS |
April 21, 2025 at 8:17 am #16951153 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, We replied at the same time. For further investigation of the issue, please try the following. If the problem persists, please share with us WordPress's debug log (not WPML debug information). Please check this page for instructions. https://wpml.org/documentation/support/debugging-wpml/ To enable it, open your wp-config.php file and look for define('WP_DEBUG', false); Change it to: define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors', 0); After this, repeat the action that causes the problem on your site - try to update WPML Multilingual CMS (our core plugin.) In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then, please share the errors with us. If it's too complicated for you, please refer to my previous reply and share access to your website. Regards, |
April 21, 2025 at 9:21 am #16951345 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, The access link to your website is not working. You shared this with me: hidden link, but I'm getting this error:
Please see the attached screenshot. Please correct this and share the right access link. I'm enabling a private message for the following reply. For your information, some WordPress plugins can change the default WordPress admin access. Please check if one of the plugins you are using is causing this issue. It can also be a security measure from a security plugin you are using. Regards, |
April 21, 2025 at 9:23 am #16951363 | |
lodeT |
can you try hidden link |
April 21, 2025 at 4:10 pm #16952326 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Thanks, this link works, and I can log into your site. However, I am unable to log in to your site using FTP. I'm getting this error: Error: Could not connect to server Since it is a live site, I'm not allowed to make any changes to it. And since you mentioned that your site crashed when you updated WPML, I'm even more hesitant to take the risk without FTP access, as I could potentially disable WPML after the fatal error. He is suggesting to you how to proceed. Please try to update WPML Multilingual CMS when the theme is switched to the default WordPress theme, Twenty Twenty-Five, and all the third-party plugins, including WPML's other add-ons, are deactivated. Regards, |
April 21, 2025 at 8:13 pm #16952699 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Important! Please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree. Regards, |
April 21, 2025 at 9:08 pm #16952748 | |
lodeT |
Ok i agree |
April 23, 2025 at 3:45 pm #16961213 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I appreciate your patience. I installed the All In One Migration plugin on your site and made a copy of it. After downloading the copy I deactivated and removed the All In One Migration plugin. I've debugged this issue with a copy of your site on my local server and found out the following. The problem occurs when WPML is updated to its latest version 4.7.3. Then there is the following fatal error. Fatal error: Array and string offset access syntax with curly braces is no longer supported in \wp-content\plugins\lionthemes-helper\less\lessc.inc.php on line 749 The problem of fatal error is a collision with your theme, the Hermes theme by Lionthemes88, and with its required plugin, the LionThemes Helper plugin. I then checked further and found out that you are using old versions of the Hermes theme and its LionThemes Helper plugin. I checked their page on Themeforest and could see that the latest version of the theme is version 1.8.9, updated on 14 Apr 2025. You can see it here: Please update the Hermes theme and its LionThemes Helper plugin on your site; this should hopefully resolve the fatal error on your site when WPML is on its latest version. https://wpml.org/documentation/theme-compatibility/go-global-program/ We will be happy to cooperate with the authors in making their plugin officially compatible with WPML. Please let me know how it goes. Regards, |