• 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 15 replies - 16 through 30 (of 37 total)
  • Thread Starter netixel

    (@netixel)

    Do you want I click on CONSOLE for the response body ?

    Uncaught SyntaxError: Unexpected token ? in JSON at position 0(…)
    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:4 POST https://www.acadezik.com/wp-admin/admin-ajax.php net::ERR_CONTENT_LENGTH_MISMATCHsend @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:4ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:4n @ admin.js?ver=2.0.10:90k.register.f.post @ admin.js?ver=2.0.10:92doSaveAction @ editor.js?ver=2.0.10:124(anonymous function) @ editor.js?ver=2.0.10:173dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:3r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:3
    admin.js?ver=2.0.10:88 Loco Error: Ajax failure for savek.register.f.debug @ admin.js?ver=2.0.10:88m @ admin.js?ver=2.0.10:89i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:2fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:2y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:4c @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.6.1:4
    admin.js?ver=2.0.10:88 Object {status: 0, error: “error”, message: “”, output: “”}
    admin.js?ver=2.0.10:88 Provide the following text when reporting a problem:
    –8<–

    ——

    Plugin Author Tim W

    (@timwhitlock)

    So the server is responding with no data at all. I have no way of knowing why this is.

    My last suggestion is you switch to a stock theme like twentysixteen and see if the problem persists. If it does, disable all other plugins one by one until the problem stops.

    Thread Starter netixel

    (@netixel)

    OK thanks. I’ll try your advice. I really want to use your plugin…

    Regards

    Thread Starter netixel

    (@netixel)

    I did what you said, I disabled each plugin but it did not change anything. After activating them all I have this error when I click on Save button :

    Error: {“data”:{“locale”:”fr-FR”,”pobytes”:428314,”poname”:”vibe-fr_FR.po”,”modified”:1479929067,”datetime”:”23\/11\/2016 20:24″,”mobytes”:147410},”notices”:[{“code”:0,”type”:”success”,”class”:”Loco_error_Success”,”title”:”OK”,”message”:”PO file saved and MO file compiled”. Check console output for debugging information

    Could you help me ?
    Thanks

    Plugin Author Tim W

    (@timwhitlock)

    If – as you say – with a stock theme and no other plugins enabled you still get this error then you have something wrong with your system that I can’t diagnose. Nothing you’ve posted offers any clue as to what is wrong and I have no further suggestions.

    Fixing your problem is going to require developer-level debugging and I can’t do that for you. Sorry.

    Thread Starter netixel

    (@netixel)

    I solved this worry : Erreur: { “data”: { “locale”: “fr-FR”, “pobytes”: 428314, “poname”: “ambiance-fr_FR.po”, “modifié”: 1479929067, “datetime”: “23 \ / 11 \ / 2016 20h24 “,” mobytes “: 147410},” remarque “: [{” code “: 0,” type “:” succès “,” classe “:” Loco_error_Success “,” title “:” OK “,” message ”

    This came from the plugin of the caching.

    I get back to the same problem when I press the Save button: Error: Unknown

    I hope to find the solution

    Hello! Same here, when i press the save button the spinning wheel stays forever and nothing happends. Using Jupiter Theme. Thanks!

    Finally after a few minutes this error appear: Error: Not Allowed

    Plugin Author Tim W

    (@timwhitlock)

    @leowys
    I don’t see that your issue is the same, as you say. The issue reported in this topic is the display of an error message – not a hanging process. Please start a new thread for your problem. It’s extremely confusing trying to address two people’s separate issues in the same thread.

    @netixel
    If you really have a caching plugin that caches post requests you should not use it. Post request should never be cached – ever.

    I’m alarmed to see that your JSON response has its keys translated. My plugin does not do this, and in fact I don’t know how anything else can do it either. Do you know what is doing this? Do you have some other translation plugin installed? Translating the JSON keys WILL break my plugin.

    You’re right, sorry for that.
    Thanks!

    Thread Starter netixel

    (@netixel)

    No I have not an other translation plugin installed.
    My caching plugin is W3TotalCache

    Plugin Author Tim W

    (@timwhitlock)

    Then how has your JSON example become translated?

    Thread Starter netixel

    (@netixel)

    JSON was translated because I use Google translate for reply to you.

    My error message is :

    Error: {“data”:{“locale”:”fr-FR”,”pobytes”:10428,”poname”:”twentythirteen-fr_FR.po”,”modified”:1480591274,”datetime”:”01\/12\/2016 12:21″,”mobytes”:7004},”notices”:[{“code”:0,”type”:”success”,”class”:”Loco_error_Success”,”title”:”OK”,”message”:”PO file saved and MO file compiled”. Check console output for debugging information

    And I don’t understand if it appears because of me or your plugin ?

    Thanks for your job and this plugin because I like it, really !
    Regards

    Plugin Author Tim W

    (@timwhitlock)

    I’ve updated the development version to include some changes which might fix this issue.

    Feel free to try it out and let me know if it has any effect. If you’re not able to install the development version, you’ll have to wait until these changes make it into the next release.

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