• Resolved wpsoul

    (@wpsoul)


    Sometimes, plugin fails to import demo.

    In log files, I see next error

    Error: Widget import data could not be read. Please try a different file.

    When I open file from logs

    Widget file = /var/www/wptbox/wp-content/uploads/2020/04/demo-widgets-import-file_2020-04-15__16-04-13.json

    I see that it’s empty and has only next line

    <html><meta http-equiv="refresh" content="0;/.well-known/captcha/"></meta></head></html>

    In the same time, when I use Widget Import/Export plugin, it’s working and widgets are imported. The same is for XML for posts. File which I see in logs is empty, but when I use regular WordPress importer, it’s working.

    What can be the reason?

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @wpsoul,

    sorry for the late reply.

    If this is still relevant to you…

    Are you trying to import a theme predefined demo data?

    What I think is happening is the predefined demo files are downloaded, but they fail to save properly, that’s why they are empty with that line in them.

    When our plugin wants to import that file it can’t read it, since the file does not have the correct content, so it fails.

    I googled the line you get in the file and I found this result:
    https://stackoverflow.com/questions/52076581/wordpress-ajax-call-response-with-well-known-captcha

    Are you maybe hosting on SiteGround?

    It looks like something is preventing the file saving or/and AJAX calls on your server.

    Take care!

Viewing 1 replies (of 1 total)
  • The topic ‘Widget import fails but it’s working in Widget Importer plugin’ is closed to new replies.