• Resolved alexis888

    (@alexis888)


    Hello.
    On some websites I’m working on a local environment (Wamp on Pc) where I have UpdraftPlus installed I’m randomly getting Jasvacript alert box / pop up with the text localhost says : unexpected answer and in the console I’m getting the messages UpdraftPlus: Exception when trying to parse JSON (1) - will attempt to fix/re-parse based upon first/last curly brackets and UpdraftPlus: could not parse the JSON .

    This happens only when I’m opening the UpdraftPlus dashboard “save/restore” page and only on local / wamp. I seem to be able to save and send to my online storage (Dropbox) without problem though. I’ve tried to restore 15+ days old save and it didn’t work though. I only tried on one of the 3 websites I’m currently having the issue because I can’t afford to mess with the other 2 at the moment.

    When I migrate these sites online I don’t have this issue anymore though so I assume it’s really linked to being on a local environment.

    Any idea why this is happening and a possible fix ?
    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    There seems to be a conflict with UpdraftPlus and other plugins or themes you are using. Can you try to temporarily deactivate the other plugins or switch theme and see if you still get the same issue?

    Regards,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    Hey @bcrodua , thanks for your answer but it doesn’t seem to be what you suggest.
    I’ve tried to deactivate all plugins, then delete them to keep only updraftPlus, and also switch theme (from OceanWP to twenty twenty or Storefront) but issue is still here.

    I tried deleting all the backups I add and bulk delete didn’t seem to work so I deleted them manually one by one and got the same message / everytime after the backup was deleted.

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you try using a different browser?

    Could you run the following test with your browser’s developer tools?

    – In your browser, open your Developer Tools (instructions on how to do this for each major browser can be found here)
    – Open the ‘Console’ tab if it is not already open
    – Reload the page

    Do you see any errors appear in the developer console? Could you send me a copy of screenshot of those errors?

    Best Wishes,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    Hey
    I tried on Firefox and Edge (I was on Chrome when I reported the issue).

    On Firefox, when I loaded the page the first time I did get the alert box with the same message and these error messages in the console :
    https://ibb.co/PQ39T33
    https://ibb.co/DpMjRFQ

    Then when I reloaded the page I didn’t get the alert message box but still the same messages in the console :
    https://ibb.co/q9tTJ5y

    I tried to log out, log in again and load the page and no alert box either.

    On Edge, no issue.

    Eventually I tried to replicate the same process I did yesterday and until today on Chrome and didn’t get any error.

    So I don’t get it :/ It’s been doing that for weeks on 3 websites on local and now it doesn’t do it anymore.

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Please can you try to upgrade to the latest version and see if that fixes the issue?

    Regards,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    Hello,
    so I’ve run an extensive test before / after updating to the last version on 4 websites I have on localhost with UpdraftPlus and where I had the same issue.

    Website 1 : Updraft is the only plugin I have installed on.
    Before updating : the issue happens when loading the page or deleting a backup
    After updating : the issue sometimes happens when loading the page or deleting a backup but not every time

    Website 2 : I didn’t disable / uninstal any plugins
    Before updating : the issue happens when loading the page or deleting a backup
    After updating : the issue doesn’t happens anymore when loading the page or deleting a backup

    Website 3 : I didn’t disable / uninstal any plugins
    Before updating : the issue happens when loading the page or deleting a backup
    After updating : the issue sometimes happens when loading the page or deleting a backup but not every time

    Website 4 : I did the update two days ago when it was released
    Before updating : I don’t remember the exact behavior
    After updating : It doesn’t happen anymore

    When thing I noticed is when the alert message and console message UpdraftPlus: could not parse the JSON are not appearing, there is this message instead on the console UpdraftPlus: web_server_disk_space is empty

    Screenshot : https://ibb.co/dr2r2NQ
    Is this the normal behavior ?

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    “UpdraftPlus: web_server_disk_space is empty”
    > This could be because UpdraftPlus is not able to read/write on the “updraft” folder? Can you try checking on that please?

    Regards,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    Hey,
    I tried on a website on localhost where it says “UpdraftPlus: web_server_disk_space is empty” when loading the page. The backup is uploaded to my Dropbox account online and then synced to my Dropbox folder on my computer, no problem with that.
    When this is done I get the “unexpected answer” alert box issue though.

    Here is a screenshot of the console :
    https://ibb.co/NxCtjnM

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Apologies for the late reply.

    I just want to confirm that you are using the latest version 1.16.25?

    Regards,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    yup I am

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    I could not replicate the issue on my end.
    I will ask our developers to keep track on this.

    Thanks,
    Bryle

    Thread Starter alexis888

    (@alexis888)

    Alright you keep me posted if you find anything
    thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Localhost issue] UpdraftPlus: could not parse the JSON’ is closed to new replies.