Download & Extend

After migrating my new site from a sub-directory up one level to public_html, jcarousel cannot find content

Project:jCarousel
Version:7.x-2.6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

I love jcarousel. Took me a while to get it right but once done its awesome!

However I've just bumped my new site up one directory level to public_html, and jcarousel collapses.
It can't find the content, but reports jquery file error which I believe to be spurious. I've given a full explanation here...
http://drupal.org/node/1052372#comment-5461764

I would certainly appreciate any comments you can make about the problem. Specifically does the jcarousel write the working directory path into a BLOB field somewhere? Or any ideas you may have.

Regards, and thanks,
John W

Comments

#1

Even from your verbose description, you didn't mention how the file paths were actually wrong, or which files were missing. Are you saying that only your images are missing? Is the jCarousel still written to the page, including all the necessary JavaScript files? My guess is that this particular problem you're having is probably around displaying the images, rather than a problem specifically about jCarousel.

In Drupal 7, you can freely move your entire site around however you like. Many developers choose to run Drupal in a subdirectory on their own computers but then run the real site on a top-level domain (similar to your setup), and move regularly between the two.

Not sure about the missing JS file (misc/jquery.cookie.js), that sounds very strange.

#2

There are three carousels on the site. None of them show any content after the move.

One carousel should contain a thumbnail and a price field per frame, another should show just a thumbnail, and the third is an automatic timed carousel slider that should show a large image plus some content fields. Each carousel is therefore constructed as a View, containing Panel fields, and then appears as 'content' in a designated Page.

When the site (the drupal sub-folder) was moved up public_html, none of the carousels showed any content - though everything else worked including jquery.ui.accordion in Views-accordion. Instead the two non-automated versions showed the carousel skin and frames and controls, but a whirling dervish (twirl icon) where there should be content. Whilst the automated one showed nothing because it had no content to kick off the 'slide' process.

As the number of frames in the carousel is a function of how many images it expects to fill, (is it not?) I would have not expected to see a carousel at all if the js file could not actually be found - as the error message suggested. So I still feel that this is some function of the change of path but I cannot find any place where a fixed path is given. The public & private paths in config -> media -> file system remain as before, relative to the site address...

sites/default/files/repository and
sites/SITENAME/repository/images

and of course the files were still in them!

I emphasize that all this worked perfectly before I moved the structure up one level.
Have you any other suggestions for me to follow up please?

Regards,
John W

#3

Hm, I'm at a loss here. I move sites around all the time and haven't experienced something like this.