Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting "An error has occurred while trying to create this slider" but not seeing anything wrong or seeing any log errors. What would cause this and where can I get more info on the exact nature of the error??
Comments
Comment #1
Mark Theunissen CreditAttribution: Mark Theunissen commentedThat message is displayed when the Slider has no attached nodes. Either that, or you've named the nodereference field incorrectly. Check to see if you've followed the instructions.
Comment #2
jshubow CreditAttribution: jshubow commentedHmmm. I *think* I followed everthing correctly. I'm getting the message on all nodes, even ones that have nothing to do with the slider.. Slider has 3 stories works fine with images or stories
here is what I have in the manage fields page for the content type:
Slider _add_new_group field_slider_content Node reference Configure Remove
Any help would be appreciated.
Also will this work with a block?
Comment #3
jshubow CreditAttribution: jshubow commentedAlso when trying to get it to show up on the homepage I get the info about the slider, not the slider.
Featured Slider
February 19, 2009 - 2:53pm — Jonathan Shubow Slider:
Culmination of a lifetime of work
South Shore Inaugural Ball
Teen voices from the Obama inauguration
Comment #4
Mark Theunissen CreditAttribution: Mark Theunissen commentedYou can't display a Slider as a teaser, so that's what your second issue is.
As for the first, I simply don't know. As long as you have a field_slider_content that is a nodereference, you shouldn't get the error.
Comment #5
Mark Theunissen CreditAttribution: Mark Theunissen commentedNever mind, think I've found the problem!
I fixed it in today's -dev tarball, can you confirm it's working please?
Comment #6
jshubow CreditAttribution: jshubow commentedNope, sorry.
Downloaded, installed, updated, cleared cache.... getting it on all nodes, no matter if slider enabled or not... new drupal installation.
I'm happy to give you access. I sent you my email address.
Comment #7
Mark Theunissen CreditAttribution: Mark Theunissen commentedAre you still getting the same error message? Or has it changed?
Comment #8
Mark Theunissen CreditAttribution: Mark Theunissen commentedWait, I think I know what may be causing this. If you go to admin/settings/slider, which node types are ticked?
You should only have the *slider* node type selected. You shouldn't select page, story, or any others (ie. the ones that you want to appear as slides within the slider). Because then the system will attempt to turn them into sliders, which will fail.
However, thinking about it, the module shouldn't let you anyway.
Comment #9
Mark Theunissen CreditAttribution: Mark Theunissen commentedDue to PHP's in_array() function not behaving sanely (i.e. returning true when comparing integer 0 to any string), the following line breaks if you have more than 1 slider node type:
if (in_array($node->type, $slider_types)) {
You actually need to force "strict mode" and thus the line becomes:
if (in_array($node->type, $slider_types, TRUE)) {
http://venutip.com/content/assumptions-and-errata-two-quick-tips
Will be in the 1.3 release.
Comment #11
wallbay1 CreditAttribution: wallbay1 commentedI have the latest release but I still have the same problem
and also for some reason the slider keeps showing up above my content, is there a way to put the slider below the content?
I am not talking about the tab but the whole slider
this is what I did. I putted slider field on Product (ubercart)
node that can be referenced : Page, product, listing
Label Related
I think i did everything asked but why am i still seeing this error : An error has occurred while trying to create this slider.
also why is it that the slider keep showing above the content ?