awesomemotive / one-click-demo-import

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

Trying to Fix 500 internal error (PHP version) #174

Closed chafikgharbi closed 4 years ago

chafikgharbi commented 5 years ago

When I import demo data (Widgets data) I get 500 internal error, I figured out that this problem is due to php version I don't know if someone tested it in PHP7.2

What did to fix that:

I added this line before line 250 /inc/Widgetimporter.php file $sidebars_widgets = !empty($sidebars_widgets) ? $sidebars_widgets : array();

We can't put data in an empty string variables: $sidebars_widgets[ $use_sidebar_id ][] = $new_instance_id;

yoganow commented 5 years ago

I'm having this same issue. Can I pay you to fix this for me?

chafikgharbi commented 5 years ago

@yoganow If you have the same issue then I will fix it for you without any charge, Send me more details.

bishoyroufael commented 4 years ago

I am facing the same error while importing demos. any solutions regarding this?

capuderg commented 4 years ago

Hi all,

this issue was fixed in the plugin code and will be available in the next plugin update.

Thanks for reporting it and have a nice day!