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.
If Views Slideshow Galleria is already enabled and I enable Video module's Zencoder I receive this error:
Warning: Invalid argument supplied for foreach() in libraries_info() (line 340 of /Users/me/Sites/acquia-drupal/sites/all/modules/libraries/libraries.module)
I posted it in the Libraries API before finding this out. http://drupal.org/node/1529248
I have Galleria working great and love it. Can you suggest I do anything different with my settings? I'm confused who to consult at this point.
Comment | File | Size | Author |
---|---|---|---|
#7 | views_slideshow_galleria-1529288-7.patch | 715 bytes | sgabe |
#4 | librariesinfo-1529288-4.patch | 314 bytes | Jorrit |
Comments
Comment #1
sgabe CreditAttribution: sgabe commentedWhat is this argument's value exactly when the error occurs?
Comment #2
calefilm CreditAttribution: calefilm commentedI'm sorry. Explain to a dummy what you mean...
The url is at http://localhost:8082/admin/config/media/video/transcoders
and the code snippet it was referring to is:
Libraries API (7.x-2.0-alpha2)
foreach (module_invoke($module, 'libraries_info') as $machine_name => $properties) {
Quick Note: I'm not going to be using this module - I actually prefer to use Views Slideshow for the purposes I need. Not to say I wouldn't use this module but I just don't need it at this time :) So if I can be of assistance I will help. Otherwise, I don't need any patches or fixes at this time.
Comment #3
calefilm CreditAttribution: calefilm commentedYou may also reference progress made over here (Video module): http://drupal.org/node/1529224
Comment #4
Jorrit CreditAttribution: Jorrit commentedviews_slideshow_galleria_libraries_info()
is missing a return statement. Add the following code at the end ofviews_slideshow_galleria_libraries_info() { ... }
in views_slideshow_galleria.module to fix this problem:return $libraries;
Patch attached.
Comment #5
sgabe CreditAttribution: sgabe commentedAs I see this will need more work. The implementation of hook_libraries_info() in the 6.x branch seems unnecessary since the Libraries 2.x API is only available on Drupal 7, on the other hand in the 7.x branch the implementation seems to be deficient (at least) according to libraries.api.php.
Comment #6
Jorrit CreditAttribution: Jorrit commentedI have not investigated that, I just looked at what I had to add to make the error go away.
Comment #7
sgabe CreditAttribution: sgabe commentedLet's just simply remove this hook for now. We can add Libraries API 2.x support later when it's stable. Change committed to both branches.
Comment #8
Jorrit CreditAttribution: Jorrit commentedThanks for your quick responses.