Keep getting the error message "No Fancybox plugin found in sites/all/libraries/fancybox. Install the Fancybox plugin and go to the Fancybox settings page for the files to be found." According to the Fancybox plugin it's installed correctly. Not sure if I need to edit part of the code, I'm pretty new to this.

CommentFileSizeAuthor
#1 yarg.jpg184.75 KBaugenbrauezug
yarg.jpg184.75 KBaugenbrauezug

Comments

augenbrauezug’s picture

StatusFileSize
new184.75 KB

Meant to include this picture.

xenophyle’s picture

So just to clarify, you have
sites/all/libraries/fancybox/jquery.fancybox-1.3.4.js
and
sites/all/libraries/fancybox/jquery.fancybox-1.3.4.css, right?

augenbrauezug’s picture

Yes. I managed to get it working, I copied all the files from the fancybox folder that is within the other and placed them in the first file. Now no problems. Thanks for quick reply.

xenophyle’s picture

Status: Active » Closed (works as designed)

Oh I'm so glad. I'm going to close this ticket.

Sanna Long’s picture

Status: Closed (works as designed) » Active

Reopened issue. I can't get the plugin to work. I've got jquery.fancybox-1.3.4.css & jquery.fancybox-1.3.4.js (everything from the fancybox folder) in G:\web\PHPDev\sites\all\libraries\fancybox. The module won't enable; it still says the libraries are missing.

ezra’s picture

Sorry this isn't working Sanna. It's hard to say why based on your description. Perhaps you can double check the location of the library files and the permissions on those files to be sure that your web server can read them?

In any case, if you can't get this work and you need a timetrade button on your site asap, it may be quicker to use their generic button builder code than to debug your Drupal installation. The generic button builder will create code that you can cut and paste into a drupal block or content element. You can see it here:

http://www.timetrade.com/click-schedule-button-builder

uxicorp’s picture

I am having this same problem. Uploaded libraries to fancybox directory in libraries and it say "The version of the fancyBox library could not be detected. Please make sure the library is installed correctly."

ezra’s picture

Uxicorp, maybe you can try some of the solutions on the following thread:

https://drupal.org/node/1145418

elvis2’s picture

Issue summary: View changes

The click_to_schedule_set_files function is using an OR which is responsible for throwing the error, plus the fancybox library path is not correct..

if (empty($files['js']) || empty($files['css']))

The $files['css'] will be empty. To fix you can change the click_to_schedule_detect_fancybox_files function to:

function click_to_schedule_detect_fancybox_files() {
  $path = libraries_get_path('fancybox') . '/source';

  $js_files = glob(getcwd() . '/' . $path . '/jquery.fancybox*.js');
  $css_files = glob(getcwd() . '/' . $path . '/jquery.fancybox*.css');

  $files = array(
    'js' => basename(array_shift($js_files)),
    'css' => basename(array_shift($css_files)),
  );

  return $files;
}
Anonymous’s picture

#9 worked for me ... and then I found that click_to_schedule apparently needs a paid subscription.