• I have a JSON file backup that I need to import into my new wordpress site. I have searched and searched and am at the end of my rope with this! I am not technical so this is difficult for me. I am trying to import using JSON Options but when I try importing I get the following errors. Please help!

    Warning: stripos() expects parameter 1 to be string, array given in /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php on line 594

    Warning: stripos() expects parameter 1 to be string, array given in /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php on line 594

    Warning: stripos() expects parameter 1 to be string, array given in /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php on line 594

    Warning: stripos() expects parameter 1 to be string, array given in /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php on line 594

    Warning: Cannot modify header information – headers already sent by (output started at /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php:594) in /home1/lifebigt/public_html/daisyspetplace.com/wp-includes/option.php on line 748

    Warning: Cannot modify header information – headers already sent by (output started at /home1/lifebigt/public_html/daisyspetplace.com/wp-content/plugins/json-options/json-options.php:594) in /home1/lifebigt/public_html/daisyspetplace.com/wp-includes/option.php on line 749

    https://www.ads-software.com/plugins/json-options/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Bradbury

    (@jeremyjanrain)

    Just some notes: this plugin hasn’t been updated in 20 months and hasn’t been tested beyond 3.5.2. This plugin’s original purpose was for embedding into other plugins for clean backup/restoring of that plugin’s settings to a text file. However, it did prove useful for whole/partial site options backups in older versions of WP.

    It looks like it’s possible your options have more depth than I originally accounted for in my code. I am not sure what WP version you are using but I think how the options are accessed and stored changed in WP 4.0.

    is there any way you can paste your JSON in the export file here (redacting anything sensitive of course API keys, passwords ect)? If you do, make sure to wrap the brackets in backticks so it’s formatted as code.

    That is literally the only way i can try to duplicate and fix this for you (and others).

    There are official ways to export and import WP sites and data (but not options)
    https://www.ads-software.com/plugins/wordpress-importer/
    https://codex.www.ads-software.com/Tools_Export_Screen

    There is more fully featured plugin that does the same thing as this (and then some), but it also looks like it isn’t tested compatible above WP 3.9.2
    https://www.ads-software.com/plugins/options-importer/

    if you’re comfortable enough with connecting to the database (and your host allows) you can do what most of us do: export the wp_options table (or entire site) to a .sql file and import it to the new site. Then update the “home” and “siteurl” values to the new url or else the admin panel (among other things) won’t work.

    But I expect you’d have already done that if you were (the note was mainly for other readers).

Viewing 1 replies (of 1 total)
  • The topic ‘JSON File Import’ is closed to new replies.