PHP errors
-
Hello,
I noticed a PHP error when clicking on “about” page inside wp-admin:
Fatal error: Cannot redeclare _wp_menu_output() (previously declared in wp-admin\menu-header.php:68) in wp-admin\menu-header.php on line 240Another error: I have a problem when migrating a website from localhost to live version: all sliders are empty, no images are found and this is the message:
Warning: Invalid argument supplied for foreach() in wp-content/plugins/rolo-slider/core/shortcode.php on line 127
-
Hi,
It is working just fine, but import / export option is integrated in Rolo Slider itself, it will not work with WordPress importer. We decided for that approach because of lot of custom options. See screenshots below:
There is one slider on domain 1 https://www.screencast.com/t/sY9k0WjRy
By going to Export you can export all sliders or to click one which you want to be exported https://www.screencast.com/t/ynasfx8207
Since I clicked that slider xml file is downloaded rolo_slide_home-page-slider.xml
And then on 2nd domain, navigate to Rolo Slider > Import https://www.screencast.com/t/oROevnvw
Choose previously exported file https://www.screencast.com/t/W1D6XWA7
And it will be imported with all its options https://www.screencast.com/t/y0HpOO2XO
Like in most sliders, images will still point to imported domain https://www.screencast.com/t/rQpYRtvuzBA because images may be copyrighted, and end users shouldn’t use them, but this is not the case with our demos sliders and it is defiantly not the case when users import their own sliders, but functionality will like that since it is most legit way. At the end you can just replace images with ones located inside current installation media library.
Also, like with WordPress importer, if exported file is from some domain which do not exist, import may fail, especially for images.
Best Regards!
First of all, thanks a lot for your support!
On my side, everything worked except last step: sliders are there but images are not.
After reading your last line
if exported file is from some domain which do not exist, import may fail, especially for images.
that might be the reason since I was exporting from localhost, can you confirm that?
Thanks again and best regards π
-
This reply was modified 9 years, 3 months ago by
baga.
You’re welcome π ,
Yes, that’s definitely it. With all options in place, you will just have to set images again from live installation media library.
All the Best!
Ok that was it.
To be honest when publishing a website from localhost to live version it takes quite a lot of time if there are several sliders in it.
Other sliders plugin do not present this kind of weakness…
Thanks anywayYou’re welcome,
We didn’t notice any kind of slowness when importing, but we will surely check this, and if something needs to be improved, we will certainly do it.
Best Regards!
Sorry I probably didn’t write in a clear english, I meant it takes quite a lot of time to manually re-add all the images to every single slider since the export/import function does re-create the slider but doesnt’ re-add the images when going from localhost to live environment.
Thanks for explaining this further,
Yes, slider is using Import / Export functionality like native WordPress importer, adjusted for slider custom post type. Key focus here, because of a lot of slider options was to add functionality for importing these options, which is now possible, and importing images will work in same way like in WordPress importer – if exported xml file if from localhost, it will not import images – so importing file which can access images from live website will populate image fields.
Setting slider images after import may require some time, but comparing to manually setting each slide options, it is really not too much time consuming. Having export in maybe in .zip format with all the images inside is excellent suggestion, and I will add this to our feature requests list, but I can’t promise integration at this point, but if more users suggest same thing we will consider extending import in nearer future.
Again, thank you for the suggestion, and thanks for using our Rolo Slider.
Best Regards!The steps that I usually follow when publishing from localhost to live version is:
– exporting and uploading local wp-content folder;
– exporting the database;
– find/replace ULRs in database (e.g. http://localhost/example.com/ to http://www.example.com/)
– importing the database.Normally everything works out of the box, tried with many different sliders and other plugins. This requires no further steps.
Apart from this, I think your plugin is awesome, especially the recent releases which improved a lot of things, so thanks for your effort!
Hi again,
Yes, that is correct, but slider contain a lot of custom option fields so it was convenient to add custom Import / export functionality especially for being able to offer users to Import demo content, and to export / import exisitng sliders. Focus was on migrating slider options, and images upon import will point to domain from which you are importing, and they needs to be set again upon import. This is fine because images may be copyrighted, but since users are responsible for their content, I guess that we can change this for some future release. This is not a bug, just different functionality. I can’t promise you right now when we are going to change this because we have a lot of things to do regarding upcoming theme release, so for now, you will have to set sliders images upon import, and we will certainly change this at some point.
Best Regards!
Excellent thanks again!
-
This reply was modified 9 years, 3 months ago by
The topic ‘PHP errors’ is closed to new replies.