WP Toolkit missing language
Hello,
Since a few days, I am uneable to install or modify a Wordpress installation in "cPanel > Wp Toolkit" since the only language available in WP Toolkit is English. The majority of our installation are in french.
On already installed WordPress in french language, I get the error "fr_Fr was not found in the haystack".
-
Hey there! This is not the intended behavior as there should be a long list of languages available in that dropdown menu. Can you confirm that your server is able to ping api.wordpress.org? If you can, it would be best to create a ticket so we can investigate what is happening on your specific machine.
0 -
Hello,
I can ping api.wordpress.org so I will open a ticket for further investigation. Thanks for the quick response!
Regards,
Jean
0 -
You're very welcome!
0 -
we are ping too, and this error is happening here.
0 -
After researching and enable wptoolkit logs and checking logs files:
DETAILS: https://docs.cpanel.net/knowledge-base/cpanel-developed-plugins/wp-toolkit/
Enable wptoolkit logs (logCommandsAndFileOperations = true):
/usr/local/cpanel/3rdparty/wp-toolkit/var/etc/config.ini
Logs is here:
/usr/local/cpanel/3rdparty/wp-toolkit/var/logs/
I fixed it running on terminal with root:
Check if there is a folder languges:
ls -la /usr/local/cpanel/3rdparty/wp-toolkit/languages/
If there is no folder or files you need to fix.
How to fix:
cd /usr/local/cpanel/3rdparty/wp-toolkit/
mkdir -p languages
cd languages
wget https://downloads.wordpress.org/translation/core/6.8.1/pt_BR.zip
unzip pt_BR.zip
rm pt_BR.zip
Restart cPanel:
/scripts/restartsrv_cpanel
or
service cpanel restart
Find the language cache:
find /usr/local/cpanel/3rdparty/wp-toolkit/ -name "languages_6.8.1*"
if you find, remove it:
rm -rf /caminho/do/cache/languages_6.8.1
After that i restarted again cPanel:
service cpanel restart
Now the WpToolkit show all languages:
I'm not sure but maybe only removing the cache folder and restart cPanel is enough.
rm -rf /caminho/do/cache/languages_6.*
service cpanel restart
Be careful and good Luck!0 -
Davi Souza - thanks for sharing that workaround!
0
Please sign in to leave a comment.
Comments
6 comments