• Resolved richerma9

    (@richerma9)


    Hi!
    I have an internal server error when trying to save woocommerce.pot, or synching woocommerce-fr_FR.po.
    The directory and file are writeable.
    I have created translations in Author and System folders.

    In Chrome Developer tools it says
    Failed to load resource : the server responded with a status 500
    Loco Error : Ajax failure for sync

    Provide the following text when reporting a problem:
    –8<–

    ——

    I use WooCommerce 2.6.14
    Wordpress 4.7.3
    Loco Translate 2.0.13

    Thanks for your help!

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

    (@timwhitlock)

    The output is blank, so you’ll have to find meaningful errors in your log files.

    It is probably a fatal PHP error, but without seeing an error I can’t diagnose it.

    See second bullet point “In your logs”:
    https://localise.biz/wordpress/plugin/faqs/debug-info#errors

    Thread Starter richerma9

    (@richerma9)

    Found this error on log file :

    [20-Apr-2017 13:00:59 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/hy3041/public_html/coaching-quebec.com/enligne/wp-content/plugins/loco-translate/lib/compiled/gettext.php on line 10

    Plugin Author Tim W

    (@timwhitlock)

    Looks like 128M isn’t enough to parse the PO file. It should be, easily.

    I have no problem saving or syncing with half this amount of memory. I just tried with a 800K+ PO file.

    Can you post a download link to the file you’re trying to save when this happens?

    Thread Starter richerma9

    (@richerma9)

    Plugin Author Tim W

    (@timwhitlock)

    I have no problem saving your French file, and no problem syncing it to the POT file.

    Again, I have half your memory, so I can’t account for why you need more than 128M. What happens if you increase the memory?

    Thread Starter richerma9

    (@richerma9)

    I upgraded memory to 256M, and now it works. ??

    Plugin Author Tim W

    (@timwhitlock)

    Ok great. I guess you have a lot of other plugins using up memory on admin pages when they’re not actually needed.

    I have a similar issue. Log:

    [21-Apr-2017 16:30:34 UTC] [Loco.debug] “Translations don’t match template. Run sync to update from woocommerce.pot” in src/admin/file/EditController.php:103

    [21-Apr-2017 16:30:43 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 67 bytes) in C:\wamp64-3.0.6\www\groupfitness\wp-content\plugins\loco-translate\lib\compiled\gettext.php on line 10

    Edit: I added more memory by adding this to wp-config.php

    define(‘WP_MEMORY_LIMIT’, ‘256M’);

    • This reply was modified 7 years, 7 months ago by smallbizgeek.
    Plugin Author Tim W

    (@timwhitlock)

    Do you know that WP_MEMORY_LIMIT works in your case?
    It won’t take effect if the server config disallows raising of PHP memory_limit.

    If you still see 134217728 bytes, then it hasn’t worked.

    Really this is beyond the scope of my support as it’s a server issue. I added some notes here though: https://localise.biz/wordpress/plugin/faqs/memory-limit#raise

    There is no way to get around memory requirements. As I noted previously my plugin works with a lot less memory than 128M, but if you have tonnes of plugins installed you’re going to need more.

    Increasing WordPress memory worked. I am using a localhost. When I move to my remote host I’ll be increasing PHP memory as well.

    Thanks, increasing the php memory limit to 256M also worked for me!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Internal server error’ is closed to new replies.