• Hi team,

    As I say in the subject : I can not save my translations

    When I click on the Save button, I get the following error message that appears :
    SyntaxError: Unexpected token ? in JSON at position 0

    The PHP version of my server is: 7.0

    Thanks for your help.
    Regards

Viewing 7 replies - 31 through 37 (of 37 total)
  • Hi @timwhitlock.

    Today I tried to translate the two plugins and theme, but when I wanted to create a template, I received an error.

    ‘Error: {“data”:{“redirect”:”https:\/\/lutekandrespol.pl\/wp-admin\/admin.php?bundle=booked%2Fbooked.php&page=loco-plugin&action=view#loco-booked. Check console output for debugging information’

    I came here with my error. After installing the dev version everything works as it should.

    Plugin Author Tim W

    (@timwhitlock)

    Thanks, that’s interesting. I notice that your output is truncated the same amount as the original reporter – 3 bytes.

    My wild guess is that a PHP file somewhere has a UTF-8 byte order mark. This would cause three bytes of accidental output and cause exactly this problem. Like this person found out.

    Although my changes may have fixed this leak, I’d very much like to know where the output comes from. If you track it down, please let me know.

    Plugin Author Tim W

    (@timwhitlock)

    Also, for anyone else who’s interested. I added a WordPress hook for debugging accidental script output. Here’s the code.

    • This reply was modified 8 years, 3 months ago by Tim W. Reason: fixed link
    Thread Starter netixel

    (@netixel)

    The development version is free or I have to wait until these changes make it into the next free release ??

    Thanks

    Thread Starter netixel

    (@netixel)

    I replaced the code of the buffer.php file with your new code and when I save it appears: error unknown.

    But the save works !

    Plugin Author Tim W

    (@timwhitlock)

    The development version is free, just like any release of this plugin is free.

    You misunderstand the purpose of that code. It’s for developers to reference. Don’t change anything! I suggest you ignore that post.

    Thread Starter netixel

    (@netixel)

    Ok, I just wanted to test but I came back to the original version.
    I would wait for the update.

Viewing 7 replies - 31 through 37 (of 37 total)
  • The topic ‘I can not save my translations’ is closed to new replies.