I'm on D7.12, I tried updating Video 7.x-2.2 to the latest dev, however in the process encountered php errors. So I uninstalled the entire module set, and started from scratch. Sadly I'm still getting the errors. In particular I found in the PHP log:
PHP Fatal error: Call to undefined function libraries_detect() in /Applications/MAMP/htdocs/public_html/drupal-7.12/sites/all/modules/video/modules/zencoderapi/zencoderapi.module on line 39
When I check that file the line looks fine:
$lib = libraries_detect('zencoder');
In my libraries folder I created a folder called zencoder which hosts the latest API (2.0.2). But still no success I get errors or blank pages on almost any admin page.
Please help.
Thanks

Comments

Jorrit’s picture

Status: Active » Closed (works as designed)

One of the changes since 7.x-2.x is that the libraries module is required when you use Zencoder. You can read about it here: http://drupal.org/node/1468008 . I hope this solves your problem, if not, please reopen the issue.

bluestarstudios’s picture

Status: Closed (works as designed) » Active

Actually I do have the libraries module installed and working. In fact it's fully functional for a couple other modules. So this is not the reason for this error.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Then my guess is that you have libraries v1 installed, is that the case? I'll look into adding a version check.

bluestarstudios’s picture

Yes. v 7.x-1.0. Is that not the version to install? Also noticed that the Video Module version is called: 7.x-2.4+57-dev

Jorrit’s picture

7.x-2.4+57 means: 7.x-2.4 with 57 additional changes.

The Zencoder module (and the AWS SDK module as well) needs Libraries v2. I use Libraries 2.0-alpha2 without any problems.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

If you have any more issues after installing Libraries 2, please reopen this issue.

rypit’s picture

Status: Closed (works as designed) » Active

Having the same issue, although it disappears after cache clear. This is with Libraries 7.x-2.0-alpha2 and video 7.x-2.5.

Jorrit’s picture

Status: Active » Closed (works as designed)

If it disappears after a cache clear, I don't consider it an issue.

jantoine’s picture

Title: PHP Fatal error: Call to undefined function libraries_detect() » The Zencoder API module can be installed with the Libraries 1.x module as a dependency, when 2.x is required
Component: Code » Zencoder
Status: Closed (works as designed) » Needs review
StatusFileSize
new446 bytes

This is indeed a bug. The module can successfully be installed with the Libraries 1.x module as a dependency which cause the site to WSOD. This is an easy fix as Drupal provides a way to specify dependency versions: http://drupal.org/node/542202#dependencies. It looks like this was attempted but implemented improperly. A patch is attached that should fix this issue.

Jorrit’s picture

Status: Needs review » Fixed

Committed to 7.x-2.x-dev, thanks for spotting this problem!

off’s picture

Thanx

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.