Import CSV - SyntaxError: Unexpected token ( in JSON at position 1

By zip222 - October 16, 2018

I am getting an error when attempting to import a CSV file using the CSV import plugin. 

  • "Status: Error: There was an error sending the request! (200 OK) parsererror - SyntaxError: Unexpected token ( in JSON at position 1"
  • CMSB 3.14
  • CSV Import 1.11
  • It works totally fine on the dev server, but errors out on the live server.

By daniel - October 16, 2018

Hi,

To help troubleshoot this issue, I have a few questions:

  • At what point in the CSV import process do you see this error?
  • Do any errors show up in the Developer Log (under Admin Menu in CMSB) when you attempt the import?

Thanks,

Daniel
Technical Lead
interactivetools.com

By daniel - October 16, 2018

Hello,

It looks likely that there's a difference in PHP version between your dev and live servers; that error shows up only in PHP 7.2+, so I'd guess that your live server is running a newer version. The latest version of the CSV Import plugin (https://www.interactivetools.com/add-ons/csv-import/) has been updated to fix the error - my recommendation would be to update the plugin.

Let me know any other questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By zip222 - October 16, 2018

That solved it. Thanks!