Internal Server Error during importing sliders
-
When I am using the following code then import works fine (without any errors):
$slider_array = array( get_template_directory()."/dummy/slider_1.zip" ); $slider = new RevSlider(); foreach($slider_array as $filepath) { $slider->importSliderFromPost(true,true,$filepath); }
but when adding one more correct slider to the array then during import using “One Click Demo Import” plugin there is showing “Error: Internal Server Error (500)”
$slider_array = array( get_template_directory()."/dummy/slider_1.zip", get_template_directory()."/dummy/slider_2.zip" ); $slider = new RevSlider(); foreach($slider_array as $filepath) { $slider->importSliderFromPost(true,true,$filepath); }
Do you know how to implement it in the best way to make it working with “One Click Demo Import”?
Code example based on:
https://www.themepunch.com/faq/theme-authors-auto-import-slider-demos/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Internal Server Error during importing sliders’ is closed to new replies.