• Resolved Imageflorinb1

    (@aventurescu)


    Hi Aakash,

    I want to do a shortcodes import into a new wordpress 4.9 install and this is the error I keep getting.

    “Failed to decode JSON in imported data. Error code: 4”

    I get the same error in WordPress 4.8.3, if that helps troubleshooting somehow.

    My current setup:
    Wordpress 4.9
    Shortcoder 4.1.3

    Thanks a lot for the help!
    Florin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Imagevaakash

    (@vaakash)

    @aventurescu Error 4 means, there is a syntax error with the exported data.

    Can you please copy the contents of the exported shortcodes, paste it in this site (JSON lint) and check the errors it is showing ?

    I guess there is a “0” at the end if the file ?
    Can you please check and inform me ?

    Or please upload the file somewhere and give me the link, I’ll check.

    Thanks,
    Aakash

    Thread Starter Imageflorinb1

    (@aventurescu)

    Hi Aakash,

    That did the trick. There was a “0” at the end of the .txt output file. Removing the 0 at the end of the file fixed it.

    Thanks a lot,
    Florin

    I just had exactly the same issue. Also removing 0 at the end worked. This must be a general bug. I have the latest version at the moment.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Failed to decode JSON in imported data. Error code: 4’ is closed to new replies.