Skip to main content

WP Toolkit missing language

Comments

6 comments

  • cPRex Jurassic Moderator

    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
  • Jean Boudreau

    Hello, 

    I can ping api.wordpress.org so I will open a ticket for further investigation. Thanks for the quick response!

    Regards,

    Jean

    0
  • cPRex Jurassic Moderator

    You're very welcome!

    0
  • Davi Souza

    we are ping too, and this error is happening here.  

    0
  • Davi Souza

    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
  • cPRex Jurassic Moderator

    Davi Souza - thanks for sharing that workaround!

    0

Please sign in to leave a comment.