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

    (@timwhitlock)

    If it says it’s unknown it’s because my code doesn’t know what it is. This means I can’t offer any hints or fixes as it could be virtually anything happening in your WordPress environment.

    My own plugin won’t throw any errors which are unknown unless something really serious has gone wrong beyond its control. Most likely some other part of WordPress or PHP or your server is causing it. The only solution is developer-level debugging of the Ajax request.

    You may find some clues in this FAQ:
    “Why do I get “Unexpected token” or “syntax error” when I try to save?”

    Different problem, but possibly with similar solutions.

    Thread Starter Kunzilla

    (@kunzilla)

    Hi Tim,

    yes i understand what you mean, but we dont know whats going wrong. We updated our wordpress to 4.3.1 some day ago, but we recognize the problem yesterday.

    The only “readable” error we see is “Loco Error: Ajax failure for loco-posync action.”

    Thread Starter Kunzilla

    (@kunzilla)

    I also changed the theme and disabled all pluging (not Loco) and we get the same error.

    Object {status: 200, error: “success”, message: “Unbekannter Fehler”, response: “”}

    Thread Starter Kunzilla

    (@kunzilla)

    I check the files and request. I found out, that the call goes into that case in loco-posync.php.

    // Extract from sources
            if( $exp = LocoAdmin::xgettext( $package, dirname($path) ) ){
                $pot = '';
                break;
            }

    Any idea?

    Plugin Author Tim W

    (@timwhitlock)

    OK, so the error happens at some point during the source extraction process. But, without some error text or more specific point of failure the error is still “unknown”.

    If the string extraction process isn’t working for your theme/plugin, I suggest maintaining your own POT file. Then this source extraction process won’t need to run at all. PO files will be synced with your file and won’t look at the source.

    Thread Starter Kunzilla

    (@kunzilla)

    Hi Tim,

    thanks for the quick reply. How can i use a “own pot file”? I disable all plugin and changed themes, that doesnt help. We use WordPress Multisite.

    Plugin Author Tim W

    (@timwhitlock)

    If you want to better understand POT files, I suggest you start at the beginning.
    https://make.ww.wp.xz.cn/polyglots/handbook/tools/gettext/

    If you want to use Loco Translate, you’ll have to get to the bottom of what the error is, and I’m out of ideas, because I need to see an actual error.

    I get “unknown error” after I try to save a string translation.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘"Unknown Error" Issue’ is closed to new replies.