WordPress.org

Ready to get started?Download WordPress

Forums

Loco Translate
[resolved] Empty page when trying to add new language [loco translate] (6 posts)

  1. Asynaptic
    Member
    Posted 5 months ago #

    ok I installed loco translate and can see the plugin's dashboard where it lists all the themes and plugins for translation and the languages already available.

    I click on "+ new language" for one of the plugins I want to work on a translation (mycred) and am redirected to this url:

    http://www.mydomain.dev/wp-admin/admin.php?name=mycred%2Fmycred.php&type=plugin&msginit=mycred&page=loco-translate

    But the url page is completely blank (checked page source)!

    the same thing happens for all other clickable links in the loco translate plugin. for exmaple, clicking on the "Template POT" column where it says "mycred.pot":

    http://www.mydomain.dev/wp-admin/admin.php?name=mycred%2Fmycred.php&type=plugin&poedit=plugins%2Fmycred%2Flang%2Fmycred.pot&page=loco-translate

    of clicking on the "File Permissions" column where it says "check mark OK":

    http://www.myfomain.dev/wp-admin/admin.php?name=mycred%2Fmycred.php&type=plugin&fscheck=mycred&page=loco-translate

    In all cases, the url page is completely blank (checked page source)!

    I have no idea why but could it be that I'm in a local environment instead of a hosted server? I'm using desktopserver by serverpress: http://serverpress.com/products/desktopserver/

    https://wordpress.org/plugins/loco-translate/

    The loco translate setting page is set to:

    Use built-in MO compiler.
    generate hashtables (un-checked)
    backing up po files 1

  2. timwhitlock
    Member
    Plugin Author

    Posted 5 months ago #

    A dev environment won't cause any problems as long as it's configured properly for WordPress. I don't know anything about ServerPress though.

    Have you tried enabling WP_DEBUG and looked for errors in your logs?

  3. Asynaptic
    Member
    Posted 5 months ago #

    no error logs are created that I can find!

    I added the following to wp-config.php:

    // Turn debugging on
    define('WP_DEBUG', true);

    // Tell WordPress to log everything to /wp-content/debug.log
    define('WP_DEBUG_LOG', true);

    I also installed log viewer plugin just in case.

    I also did a fresh new environment with just the plugin I want to translate and loco translate (and log viewer).

    exactly the same, blank page

  4. timwhitlock
    Member
    Plugin Author

    Posted 5 months ago #

    Without an error I don't know where to start here.
    Is it only the new language page that fails? Is it only this plugin? Does the page generate any markup before it fails? What version of PHP and WordPress are you running?

  5. Asynaptic
    Member
    Posted 5 months ago #

    Sorry, but there is no error log that I can find.

    No, as I wrote in my original message it is all 3 that fail:

    1) trying to create new via "+ new language" link (any of them)
    2) clicking on the template pot file link (any of them)
    3) clicking on the file permissions link "check mark OK" (any of them)

    there is no markup before it fails, when I click those links, I'm taken to a new page with the URLs that I shared above. But the new page is completely empty!

    PHP version, let me check... ok that was it! I upgraded to php 5.4 and that seems to have done the trick. I hope this helps someone else who is silly enough to have the same problem like me.

    Sorry to have bothered you with this Tim and THANK YOU for your prompt and helpful suggestion!!

    w00t!

  6. timwhitlock
    Member
    Plugin Author

    Posted 5 months ago #

    I'm glad it's fixed, but it should (I mean, I want to ensure it does) work in at least 5.3.x

    Thanks for letting me know. I'll make sure I test in some older versions of PHP.

Reply

You must log in to post.

About this Plugin

About this Topic