awesomemotive / one-click-demo-import

One Click Demo Import plugin
https://www.awesomemotive.com/
195 stars 83 forks source link

import demo data error (0) #252

Closed Peatechen closed 3 years ago

Peatechen commented 3 years ago

I tried to import demo data using this option. But there is an error become.

This is the request data when i clicked "Continue & Import"

curl 'http://example.com/wp-admin/admin-ajax.php' \
  -H 'Accept: */*' \
  -H 'Referer: ' \
  -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundarykXzVDmW5br0E806l' \
  --data-raw $'------WebKitFormBoundarykXzVDmW5br0E806l\r\nContent-Disposition: form-data; name="action"\r\n\r\nocdi_import_demo_data\r\n------WebKitFormBoundarykXzVDmW5br0E806l\r\nContent-Disposition: form-data; name="security"\r\n\r\nc749329168\r\n------WebKitFormBoundarykXzVDmW5br0E806l\r\nContent-Disposition: form-data; name="selected"\r\n\r\n0\r\n------WebKitFormBoundarykXzVDmW5br0E806l--\r\n' \
  --compressed

Other requests using the https protocol but this a http request

Peatechen commented 3 years ago

The problem is solved!