• Resolved ThomasEckel

    (@thomaseckel)


    For developing of themes I have installed a multisite WordPress at localhost. To translate my themes, I have installed the Plugin “Loco Translate”. But it doesn’t work: “Packages” shows a blank page.

    URL: http://localhost/projects/wp-theme-factory/wp-admin/admin.php?page=loco-translate

    debug.log:

    [27-Dec-2015 15:12:26 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\projects\wp-theme-factory\wp-content\plugins\loco-translate\lib\loco-packages.php on line 199
    
    [27-Dec-2015 15:12:26 UTC] PHP Stack trace:
    
    [27-Dec-2015 15:12:26 UTC] PHP   1. {main}() C:\xampp\htdocs\projects\wp-theme-factory\wp-admin\admin.php:0
    
    [27-Dec-2015 15:12:26 UTC] PHP   2. do_action() C:\xampp\htdocs\projects\wp-theme-factory\wp-admin\admin.php:236
    
    [27-Dec-2015 15:12:26 UTC] PHP   3. call_user_func_array() C:\xampp\htdocs\projects\wp-theme-factory\wp-includes\plugin.php:525
    
    [27-Dec-2015 15:12:26 UTC] PHP   4. LocoAdmin::render_page_tools() C:\xampp\htdocs\projects\wp-theme-factory\wp-includes\plugin.php:525
    
    [27-Dec-2015 15:12:26 UTC] PHP   5. LocoPackage::sort_modified() C:\xampp\htdocs\projects\wp-theme-factory\wp-content\plugins\loco-translate\lib\loco-admin.php:264
    
    [27-Dec-2015 15:12:26 UTC] PHP   6. usort() C:\xampp\htdocs\projects\wp-theme-factory\wp-content\plugins\loco-translate\lib\loco-packages.php:910
    
    [27-Dec-2015 15:12:26 UTC] PHP   7. LocoPackage::_sort_modified() C:\xampp\htdocs\projects\wp-theme-factory\wp-content\plugins\loco-translate\lib\loco-packages.php:910
    
    [27-Dec-2015 15:12:26 UTC] PHP   8. LocoPackage->get_modified() C:\xampp\htdocs\projects\wp-theme-factory\wp-content\plugins\loco-translate\lib\loco-packages.php:894

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

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

    (@timwhitlock)

    as the log shows:

    Maximum execution time of 60 seconds exceeded

    You need to increase your script execution time.

    Thread Starter ThomasEckel

    (@thomaseckel)

    Thanks timwhitlock

    I have set max_execution_time=300 at php.ini and it works.

    But why is the execution time longer than 60 seconds (70,12sec)? This is not a normal time for a request.

    Plugin Author Tim W

    (@timwhitlock)

    Parsing PO files to get translation completion takes time. If you have many files to scan it will take longer.

    Loco uses the WordPress cache to speed things up when WP_DEBUG is off.

    Obviously I agree that 60 seconds is too long a page load. One of many things to address in version 2.0.

    Hi,

    Has this issue been adressed in the meantime? I’m facing the same issue on each and every site, whatever the server.

    Thanks in advance for your help.

    Best regards,
    Marc.

    Plugin Author Tim W

    (@timwhitlock)

    When you say “in the mean time” I assume you mean has version 1.x been fixed in advance of 2.x? It hasn’t and there will be no further 1.x releases.

    The issue has been addressed in v2.0 which is currently in beta: https://localise.biz/help/wordpress/translate-plugin/developers

    The new version never attempts to scan every translation file. Things are broken up differently and page views are much faster.

    Hello Tim,

    In the meantime means “since the time you said it would be fixed”, 7 months ago. No matter what version of the plugin it is.

    I’ll look at this beta, thank you!

    Best regards,
    Marc.

    Well, even with max exec time set to 300s, Loco Translate doesn’t work on the site I’m testing. I clicked on the left pane to access its settings and translations and instead of that, I’m redirected to site’s homepage on front-end.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin "Loco Translate": page=loco-translate shows a blank page’ is closed to new replies.