awesomemotive / one-click-demo-import

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

Cloudflare will cause one click demo import Error (0) #296

Open Jerrynh770 opened 4 months ago

Jerrynh770 commented 4 months ago

If i set SSL/TLS encryption mode to off and always use https to false in cloudflare it will work, but if not it will always show Error (0).

Edit : If i use SSL/TLS encryption mode to Full it also works ! but not working with Flexible mode,also I need to set Opportunistic Encryption to false too.

capuderg commented 4 months ago

Hey @Jerrynh770 thanks for the report.

Were you able to see the reasoning why the import fails, any specific response from Cloudflare, or do you maybe have any reports in the Cloudflare dashboard as to why the requests were blocked?

Also, are you maybe importing content from a site that is not using HTTPS in its URLs? For example images and other media files... do those use HTTP in their URLs in the XML import file?

Any details would be very helpful.

Jerrynh770 commented 4 months ago

It didn't show any log in WordPress (wp-content/uploads/yyyy/mm). But the WordPress site_url and home is set as http://mydomain.com since https will cause ERR_TOO_MANY_REDIRECTS with cloudflare SSL/TLS Encryption flexible mode. I think that may be the reason why OCDI always run failed.