• Resolved melan129

    (@melan129)


    Hi, I can’t import the demo content of my theme… I contacted my host and the author of the theme, and they couldn’t help me. Here are the logs I get:

    PHP Fatal error: Uncaught TypeError: str_starts_with(): Argument #1 ($haystack) must be of type string, array given in /home/waleedh1/hinspiration.fr/wp-includes/kses.php:1709 
    Stack trace: 
    #0 /home/waleedh1/hinspiration.fr/wp-includes/kses.php(1709): str_starts_with(Array, 'https://') 
    #1 /home/waleedh1/hinspiration.fr/wp-includes/class-wp-http.php(269): wp_kses_bad_protocol(Array, Array) 
    #2 /home/waleedh1/hinspiration.fr/wp-includes/class-wp-http.php(637): WP_Http->request(Array, Array) 
    #3 /home/waleedh1/hinspiration.fr/wp-includes/http.php(168): WP_Http->get(Array, Array) 
    #4 /home/waleedh1/hinspiration.fr/wp-content/plugins/one-click-demo-import/inc/Downloader.php(65): wp_remote_get(Array, Array) 
    #5 /home/waleedh1/hinspiration.fr/wp-content/plugins/one-click-demo-import/inc/Downloader.php(36): OCDI\Downloader->get_content_from_url(Array) 
    #6 /home/waleedh1/hinspiration.fr/wp-content/plugins/one-click-demo-import/inc/Helpers.php(84): OCDI\Downloader->download_file(Array, 'demo-content-im...') 
    #7 /home/waleedh1/hinspiration.fr/wp-content/plugins/one-click-demo-import/inc/OneClickDemoImport.php(330): OCDI\Helpers::download_import_files(Array) 
    #8 /home/waleedh1/hinspiration.fr/wp-includes/class-wp-hook.php(324): OCDI\OneClickDemoImport->import_demo_data_ajax_callback('') 
    #9 /home/waleedh1/hinspiration.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) 
    #10 /home/waleedh1/hinspiration.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 /home/waleedh1/hinspiration.fr/wp-admin/admin-ajax.php(192): do_action('wp_ajax_ocdi_im...') 
    #12 {main} thrown in /home/waleedh1/hinspiration.fr/wp-includes/kses.php on line 1709

    I tried to build a new site locally just in case, it doesn’t work either. Hope someone can help me, thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support David

    (@dpinson)

    Hi there @melan129,

    Thanks for reaching out, and I do apologize for the delay in our response. I’m checking in with our development team to see if they may have some insight into why you’re seeing this error.

    In the meantime, in case it helps, you can double-check our integration guide here to make sure your import is set up correctly: https://ocdi.com/quick-integration-guide/

    I’ll let you know what I find out from our developers. Thanks!

    Plugin Support David

    (@dpinson)

    Hi there @melan129,

    Based on the error, it seems that the theme’s OCDI filter?ocdi/import_files?code might configured incorrectly. There may be a parameter that should be a string instead of coded as an array. You may need to contact your theme author about the issue.

    If you can let us know which theme you’re using and possibly provide the ocdi/import_files?filter hook code, we can take a quick look to see if we can spot the problem.

    I hope that helps! Have a great day!

    Thread Starter melan129

    (@melan129)

    Hi there,

    Thank you for your help! Unfortunatly, I searched desperately for the filter hook code you asked for, but didn’t find it… I use the photography theme “novo” from Themeforest. I already contacted them, but I try again!

    Thanks again, have a great day =)

    Plugin Support David

    (@dpinson)

    Hi there @melan129,

    Thanks for the response and for letting us know. Hopefully the theme developer will be able to help you get this sorted soon.

    Have a great day!

    Thread Starter melan129

    (@melan129)

    Hi!
    Well, I got an answer from the author of my theme….. And the theme does not use the ocdi plugin… When this plugin is activated, the option to import the demo in the theme dashboard disappears, and nothing tells you to deactivate the plugin. And when you try an import, everthing looks nice (except my 500 error). And on the doc they call the theme page to import “One Click Demo Import” -_-
    Anyways, the issue is solved and I apologize for making you lose time :'( Thanks a lot for having help me anyways!!
    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.