• Resolved Thomas M

    (@webzunft)


    Hi Tim,

    I was used to Loco working out of the box, but this time it doesn‘t.

    I installed it on a WordPress site and it doesn’t find any .pot files or translations. Not even for the default WordPress themes or plugins where it works on other sites.

    I have set folder and file permissions up to 777 for the plugins and theme without effect.

    It tells me that the permissions for the folders are OK, but it can’t find a .pot file and suggests the I create one, giving me the exact name of the file that is already there.

    It is a hosting where it works on other sites, so I have no further idea what to check.

    Thanks for a great plugin and support
    Thomas

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tim W

    (@timwhitlock)

    It is a hosting where it works on other sites, so I have no further idea what to check.

    If it’s the same host, is it also the same operating system and same version of PHP?

    Did you copy another WordPress database into your site?

    Do you have symlinked folders?

    Did you enable WP_DEBUG and check for errors?

    Did you check your server logs for silent errors?

    Thread Starter Thomas M

    (@webzunft)

    Here is something from the debug.log

    PHP Notice: Use of undefined constant GLOB_BRACE – assumed ‘GLOB_BRACE’ in wp-content/plugins/loco-translate/lib/loco-admin.php on line 647
    PHP Notice: Use of undefined constant GLOB_BRACE – assumed ‘GLOB_BRACE’ in /wp-content/plugins/loco-translate/lib/loco-packages.php on line 233

    I checked. There is no GLOB_BRACE constant defined and therefore a check like this breaks:

    `
    $options |= GLOB_BRACE;
    `

    Is this anything you can do something about?

    Thanks
    Thomas

    Plugin Author Tim W

    (@timwhitlock)

    Sounds like you’re probably on Solaris. This plugin isn’t compatible with Solaris. the 1.x branch won’t ever be. When I come to build v.2 I’ll take a view on whether to work around it.

    If you’re on the same web host as a server that worked for you before, then I’d try to stick with the same OS too.

    Thread Starter Thomas M

    (@webzunft)

    Seems like some sites run on Solaris there now. It is a very large German hoster (Strato) which means that many users probably run into this issue over time.

    I am glad to read that you are working on a solution.

    Thanks
    Thomas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pot files not showing’ is closed to new replies.