I have a custom made slideshow module which worked perfectly on 5.7 but since I upgraded to 5.8 it doesn't work.

The problem appears to be that drupal_add_js and drupal_add_css don't seem to work at all. The content (text and images) is still being displayed but the JS that manipulates the content isn't being loaded.

Comments

WorldFallz’s picture

If you use jquery update to update the version of jquery used by d5, you will need to repeat the jquery_update steps for updating the files in /misc. You'll need to do this each time you update drupal.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

jamestombs’s picture

Thanks for your reply, but I did copy over the jquery.js from jquery_update but I don't think that is the problem.

I haven't got any cacheing of any sort so I can see all the CSS and JS files that are loaded and the CSS and JS for my module isn't in the head like it should be.

I have tried uninstalling and installing the module again with no luck.

Have there been any changes to the hooks or something like that which would cause this?

James T
Action Medical Research - www.action.org.uk

James T
Action Medical Research - www.action.org.uk

kls010’s picture

I am having the exact same problem. I have just upgraded 2 sites, both with similar content and both have views slideshow. No problems with one site, but the other is terrible.

I have upgraded every thing possible, cleared views cache and am now trying to create a new slideshow (edited to add it didnt work...). I also noticed that some of the taxonomy terms disappeared in the views display which I know has been reported elsewhere under an old, seperate issue.

I have another 18 sites to go yet and really dont want issues with all of them...

jamestombs’s picture

For a quick fix until a proper patch is out, I have copied the Blocks module from the 5.7 installation over to the 5.8 Blocks module and the slideshow is now working.

So it is most likely a bug in the Block module.

James T
Action Medical Research - www.action.org.uk

James T
Action Medical Research - www.action.org.uk

kls010’s picture

Thanks for that, it worked for me. I have upgraded 4 sites now, all with views slideshow and that is the only one (so far) with an issue. I wonder what else could be affecting it.

kirie’s picture

It has also been reported in #281026: block module from 5.8 breaks css and js (reverting to 5.7 block.module fixes problem) (contains temp fix) - as well as in a couple of other places.

johnalbin’s picture