[Resolved] Critical error with WPML String Translations
This thread is resolved. Here is a description of the problem and solution.
Problem:
When we enable the plugin WPML String Translation version 3.2.8 we get a critical error and cannot see the plugin's details in the installed plugins page.
The debug log file shows the following error:
[30-Nov-2023 14:59:56 UTC] PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string in ........./wp-admin/includes/plugin-install.php:676
Stack trace:
#0 ........./wp-admin/includes/plugin-install.php(676): printf()
#1 ........./wp-includes/class-wp-hook.php(324): install_plugin_information()
#2 ........./wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 ........./wp-includes/plugin.php(517): WP_Hook->do_action()
#4 ........./wp-admin/plugin-install.php(82): do_action()
#5 {main}
thrown in ........./wp-admin/includes/plugin-install.php on line 676
Solution:
The line mentioned in the error outputs the string "%s ago" which was translated incorrectly in String Translation. Fixing the translation of the %s placeholder resolved the issue.
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.
No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
On the project hidden link when we enable the plugin WPML String Translation version 3.2.8 we get a critical error and cannot see the plugins details. See prints attached.
To enable it, open your wp-config.php file and look for:
define('WP_DEBUG', false);
And 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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.
If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!
The error log is empty as you can see on the print attached.
After changing the this
1
define('WP_DEBUG', false);
And change it to:
1
2
3
4
5
6
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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
We get errors on the error_log but all related to this change above,
[23-Nov-2023 19:11:55 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:11:55 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:11 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:11 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:13 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:13 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:22 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:22 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:31 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:31 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:37 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:37 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:40 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:40 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:12:58 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:12:58 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:00 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:00 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:20 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:20 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:25 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:25 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:27 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:27 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:40 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:40 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
[23-Nov-2023 19:13:42 Europe/Berlin] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/colourin/piiiton.com/wp-config.php on line 101
[23-Nov-2023 19:13:42 Europe/Berlin] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/colourin/piiiton.com/wp-config.php on line 104
I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –
Your next answer will be private, which means only you and I have access to it.
❌ Please backup your database and website before providing us with access details ❌
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.
✙ I would also need your permission to take a local copy of your site to debug the issue without affecting your live site.
If you don't see the form below, please don't add your credentials as they will be publicly exposed: hidden link
But the problem isn't with YITH plguins but with yours, WPML String translation. Please try to enable that plugin and than see if you can see the plugin details for any plugin.