Error Message with 1.0 update
-
I updated to 1.0 and the content of my entire page did not display — just the error message “Carousel with ID has already been shown.” I have only one carousel and only one instance of that carousel on the page.
When I rolled back to the beta (.91) everything was fine again, as it has been with all earlier versions of the plugin.
-
To create the carousels WP Carousel needs to asign a specific ID to the div that contains the carousel so as to indicate to StepCarousel (or jCarousel) which div is the carousel’s div.
When you add a carousel twice or more, there are multiple divs with the same ID, which is not good. StepCarousel and jCarousel should work but they simply don’t. To fix this, I added an internal counter which stores the number of times you’ve shown each carousel. If you show more than once a carousel, instead of showing it another time and breaking StepCarousel and jCarousel, WP Carousel shows an error message.
When you call wp_carousel(), this counter is set up. I think you are calling WP Carousel without showing the carousel so you don’t see any carousel, but WP Carousel thinks that you have already shown it.
You have two ways to solve it: creating a new carousel and disabling the counter.
WP Carousel 1.0 brings by default an Extra called Internal Carousel. With this Extra you can add to a carousel exactly the same content that is in other carousel. Then simply show your new carousel instead of the old one.
To disable the counter, open wp-carousel.php and go to line 874. You’ll see the following code:
$_SESSION[WP_CAROUSEL_SESSION_VARIABLE_NAME_FOR_CAROUSELS_SHOWN][] = $id;
Comment it or delete the line.
@sumolari Hello My wp-carousel will not pull external images.
I have it set up to pull images from my shopping cart. I also had the Counter error but I fixed that only by commenting out some of your code.here is my site… https://www.crooksncastles.com/testing123 the carousel is on the lower right just above the footer is is marked featured products.
thank you in advance@resonant705 I’ve replied you in other topic.
Please, if you want help, just open a new topic and I’ll try to solve your problem, but do not reply to other topics that are not related with your problem.
Updated to version 1.0 and the whole page disappears.
https://www.trimode-malaysia.com.myHELP!
@kazwan: Check this topic.
I’ve seen that topic and tried to resolve it but still no good. I even tried disabling the plug-in but still doesn’t show the page. All disappeared. Can you give me a link to download the previous version so that I can use the old version one for now? (Version 0.51)++
I’m getting the same error (the one this thread is supposed to be about); however, I’ve only displayed the carousel once using the widget (using dynamic widgets to isolated the places it appears). Commented out the code above, then deleted the carousel… when I go to Add, the carousel reappears. If I click either uninstall link, nothing happens either… the page reloads. I had this working perfectly, came back to the site to test a form and noticed the error message.
Will try uninstalling, deleting associated databases (if left behind), and will reinstall. This time commenting out the counter to begin with. If that doesn’t work, I’ll try an older version.
This seems to be the best plugin available for this function, so I hope that this error gets resolved. Thanks for the contribution to the community.
I started this thread weeks ago when an entire page disappeared when I updated to WP Carousel 1.0. Today I updated to 1.0.1 on a different site that also uses WP Carousel and again the entire site disappeared because, like with the first site, I have a carousel on the homepage.
In the first case, I have only one carousel on the entire site: on the homepage. With the site I updated today I have one carousel on the homepage and one on an internal page, and both pages have disappeared.
I rolled back to version 0.5.3 on the first site and now may do the same thing for the second site.
Any definitive answer as to how to address this and prevent it from happening again in the future?
Thanks.
Unfortunately rolling back to 0.5.3 didn’t work for me either this time. When I activate the plugin the entire page disappears. So my carousels are gone.
@dking64 Where you using a custom WP Carousel Theme?
I’m not sure about this because I haven’t checked it, but I think that WordPress update system just replaces the entire folder of the plugin with the newest version.
I removed some themes in WP Carousel 1.0 because I merged them into others (just check the Default theme – it can be configured to look exactly equal to the theme ?Default – Kubrick?). If you were using one of the removed themes, WP Carousel will try to load them, as it thinks they exist, but they don’t, and you should get a PHP error like:
Error near line XXX in file NNN [bla bla bla] file /wp-carousel/themes/your-theme/index.php can't be loaded
(It is not exactly the error message, but if you read the message you’ll notice that WP Carousel can’t load a file, and that that file is a file of an old theme).
To fix it you have two solutions:
1) Just change the theme of the carousel that uses a theme that doesn’t exist.
2) Just upload again the theme.If you were using one of the WP Carousel 0.x default themes, you can download a previous release and upload the theme.
But o.x themes won’t work as expected in 1.x because I made a some changes in the theme API and they might fail, so the best thing you can do is upload the old theme and then change the theme to one of the newest themes.
If you don’t get any error, you probably have disabled PHP error reporting. If you enable it you’ll find the error.
I might be other problem, but I think the problem is WP-Carousel-theme-related.
I did make some modifications to theme files on both sites that I was referring to so the problem may relate to that.
At this point I think I need to delete WP Carousel altogether from the second site and then re-install it and try to get back to where I was in terms of theming. Even I create a new carousel in the second site, add test images, and apply ANY theme in 1.0.1, 1.0, or 0.5.3 the page the carousel is added to disappears. I need to wipe the slate clean and start all over again.
Should I manually drop these tables from the database before reinstalling or will deleting the plugin take care of this?:
wp_carousel_backup
widget_wp_carousel_widget
wp_carousel
wp_carousel_configWP Carousel 1.0.x includes a link in the menu that allows you to remove all the content generated by the plugin.
WP Carousel doesn’t use new tables in the database: it uses WordPress options to store the content, so it is easier to uninstall the plugin through the Uninstall menu.
You can also change the name of the WordPress options where WP Carousel stores its content, so a solution could be changing the name of the option where WP Carousel stores the configuration of each carousel (by default
wp_carousel_config
). Just open wp-carousel.php with a text editor and look forwp_carousel_config
. You’ll find a line like:define('WP_CAROUSEL_CONFIG_TABLE', 'wp_carousel_config');
Note that when you update to a newer version, this modification should be performed again.
Thanks for the info. I uninstalled the plugin and re-installed 1.0.1 with the plan to use and customize a new theme.
I haven’t done the theme work yet, but I re-created my slideshow with 16 slides and have ordered them four times, saving many times along the way, yet the order of the slides changes when I start changing the theme settings. Any way to stop this from happening?
I appreciate your work but I’m getting exhausted working with this.
- The topic ‘Error Message with 1.0 update’ is closed to new replies.