• Resolved jqz

    (@jqz)


    Uncaught SyntaxError: JSON.parse: expected property name or '}' at line 1 column column 2 of the JSON data

    I exported a file from localhost and tried to import it into a staging site on a subdomain. The file does not include plugins, themes or uploads. On import, it stalls at 2.12% and there is an error message in the console: “Uncaught SyntaxError: JSON.parse: expected property name or ‘}’ at line 1 column 2 of the JSON data”.

    Both sites are running WordPress 7.0. The localhost site is on Windows. The staging site is on Linux. If I import the exported file back into the localhost site, it seems to be parsed fine, though I have not clicked the button to actually import it (I don’t want to lose work).

    I would happily attach the export file, but there doesn’t seem to be an option to do that here :/


    • This topic was modified 1 day, 19 hours ago by jqz.
Viewing 1 replies (of 1 total)
  • Thread Starter jqz

    (@jqz)

    Solved it. I had LimitRequestBody set to 2Mb in .htaccess. This crept in from the main bulk of the file being copied from another (much older) project where the setting had been put in to increase the limit (but nowadays results in imposing a very low limit).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.