Skip Navigation

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.

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by Mohamed Sayed 11 months, 3 weeks ago.

Assisted by: Mohamed Sayed.

Author Posts
November 23, 2023 at 12:34 pm #14907831

colourI

Hi

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.

plugin_details_showing.JPG
plugin_details_not_showing.JPG
wpml_string_disable.JPG
November 23, 2023 at 5:51 pm #14910811

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

I couldn't replicate this issue on a clean installation with the latest version of String Translation, please see here: hidden link

Please provide me with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

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!

Kind regards,
Mohamed

November 23, 2023 at 6:15 pm #14911021

colourI

Hi

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

error_log.JPG
November 23, 2023 at 6:18 pm #14911061

Mohamed Sayed

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

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

November 25, 2023 at 8:37 pm #14923257

Mohamed Sayed

Hi,

Could you please tell me how can I see this issue?

I enabled the YITH plugins and I can view the plugin details without any errors, please see here: hidden link

I also tested when the plugins were disabled, but still not able to see any errors (hidden link)

November 27, 2023 at 10:42 am #14928835

colourI

Hi

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.

November 27, 2023 at 9:06 pm #14934785

Mohamed Sayed

The String Translation addon plugin is already enabled, but I don't see any errors.

I can view the details of all plugins as you see here: hidden link

Could you please check again if the issue is resolved on your side?

November 28, 2023 at 11:56 am #14938551

colourI

Hi

But our user get's the error, please see the video bellow.

hidden link

November 28, 2023 at 6:14 pm #14943491

Mohamed Sayed

Could you please provide us with the access details of this user account?

I've enabled the private reply, please make sure that you have a full backup first.

November 29, 2023 at 10:21 am #14948995

Mohamed Sayed

I'm not able to access the site due to the 2FA. Please disable the Wordfence 2FA option for this user till we finish investigating this issue.

November 30, 2023 at 9:30 am #14960111

colourI

Hi

I've disbaled the 2FA. Please try again.

December 1, 2023 at 8:41 am #14970123

Mohamed Sayed

Hi,

The debug log 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

I checked the line mentioned in the error and found it outputs a string that is translated incorrectly in String Translation.

I corrected the translation and the issue seems to be resolved hidden link, could you please check and confirm?

Screenshot_360.png
Screenshot_359.png
December 4, 2023 at 10:50 am #14985389

colourI

Hi

Is it's solved. Thanks for the help.