Fatal error: Call to undefined function libraries_load() in /home/xxxxx/public_html/xxxx.com/sites/all/modules/fbconnect/fbconnect.module on line 363
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | typo-1328452-22.patch | 303 bytes | Feet |
| #9 | fatal-error-1328452-9.patch | 323 bytes | JamesAn |
Comments
Comment #1
tastynuggets commentedAre you using the 7.x-1.0 version of Libraries?
I think the 7.x-2.0-alpha1 is required.
Comment #2
farnsworth commentedthanks that solved the fatal error problem but i am still getting
Facebook PHP sdk Not installed
2. Upload facebook-php-sdk library (http://github.com/facebook/php-sdk/) into the libraries
folder.
now is this the libraries folder in sites/all/libraries
or is this the libaries folder in sites/all/modules/libraries
because the libraries module needs to be installed for this to work.
further more what does it need to be called
the folder that unpacks from the zip that i downloaded is facebook-php-sdk-dafef11
1. does it stay in that folder
2. what should the folder be called.
Thanks again for any help you can provide.
I assumed it should go in sites/all/libraries but i have still not figured out what the folder should be called.
Edit: i am not getting any errors but http://drupal.org/node/1318296 says one line needs to be changed or to manually empty the tables any ideas.
Edit2: I am messing around with stuff now and after clearing the the table in cache_libraries i got Notice: Undefined offset: 1 in libraries_get_version() (line 723 of /home/earthman/public_html/fbc/sites/all/modules/libraries/libraries.module).
which i looked at the code for the patch and the only thing i could see that changed was
0 rather then one which i changed and that took care of the error but now i am left with the same error as before not finding the file.
Comment #3
tastynuggets commentedYes, the sites/all/libraries path is correct. The facebook.php should be located at:
sites/all/libraries/facebook-php-sdk/src/facebook.php
I had the same issue with the SDK not being found. After some digging I found that the libraries API actually had found the SDK, it just couldn't figure out the version: The version of the Facebook PHP SDK library could not be detected, even though the status report said Facebook PHP library not found. A bit misleading.
This fix seems to correct the version issue: http://drupal.org/node/1318946#comment-5169470
Comment #4
gberm commentedI am also having similar problems, but when I enable the module my /admin/config get an error 500 error when I try to access it.
Any suggestions?
Comment #5
farnsworth commentedif you can start with a fresh non cpanel / fantastico install for some reason it messes up the database a bit and these modules do not like that.
Follow the steps on updating the code before you install ( turn on ) the modules for the first time. If i have time tomorrow i will do a step by step on how I go it working.
Comment #6
ddhhz commentedI have the exact same problem as #4. 500 returned when trying to access configuration. When I disable fbconnect module, it all returns back to normal.
Comment #7
farnsworth commenteddid you run the patch? or change the code, if you look at what i posted which is actually in the wrong place ( i was working from 2 different posts ) when i solved the issue. search around i know i posted the solution here some place. If you can not find it I will do a clean install and resolve the issue with steps again for you. just post back.
Comment #8
JamesAn commentedI can confirm that this module does indeed require Libraries API 2.x. The PHP fatal error resulting in these 5xx error codes is that libraries_load() is only implemented in Libraries API 2.0-alpha1.
Note: when you upgrade Libraries API from 1.0 to 2.0-alpha1, you'll also need to run the update script on the database, otherwise you'll get a non-fatal PHP error on every page load.
Comment #9
JamesAn commentedHere's the one-liner patch. Drupal 7 introduced dependency version constraints to prevent situations just like this, where Facebook connects requires the latest Libraries API and does not work with the earlier versions.
Comment #10
JamesAn commentedOops. Can someone confirm that the patch works as advertised? Thanks!
Comment #11
JamesAn commentedIt's an unrelated bug, but what's described in #1328452-2: Facebook Connect depends on Libraries API 2.0-alpha1 or greater but doesn't check for it and #1328452-3: Facebook Connect depends on Libraries API 2.0-alpha1 or greater but doesn't check for it is fixed by #1318946-6: Notice: Undefined offset: 1 in libraries_get_version().
Comment #12
ondemandcommercials commentedTHIS was my problem.
Redid my install without fantastico and then my problems started to match what I've seen on the forums a bit more. [1] index problem etc.
Now it's at least basically functional for me.
Comment #13
Racerx55 commentedCan't load Configuration because of-
Fatal error: Call to undefined function libraries_load() in /home/content/r/a/c/racerx55/html/4wide/cms/sites/all/modules/fbconnect/fbconnect.module on line 363-
Using Libraries 7x-1.0, how do I update to Alpha? Won't install, says Libraries is already installed. Can't disable FB Connect or Libraries.
Comment #14
damien_vancouver commentedThe patch from #9 properly prevents me from enabling the module (although not in Drush, but that's a drush issue I think).
The dependencies list correctly shows Requires: Libraries (>=2.0-alpha1) (incompatible with version 7.x-1.0).
Marking Reviewed and Tested by the Community.
Note that installing the patch won't fix the error - you have to upgrade your Libraries for that. This patch just prevents you from enabling the module until you have the correct Libraries version.
Comment #15
jpmizell commentedI'm unclear here.
On a clean instal of D7 with Libraries 7.x-1.0
I install library package: facebook-php-sdk-v3.1.1-21-g5a88ed7
Upload to to: sites/al/libraries/
I remove the -g5a88ed7 from the directory name, ending up with: sites/all/libraries/facebook-php-sdk/src/facebook.php
In enable Fbconnect 7.x-2.x-dev
Blamo!
my_site/admin/config delivers:
"Fatal error: Call to undefined function libraries_load() in /home/user/my_site/sites/all/modules/fbconnect/fbconnect.module on line 363"
Is there something I'm missing in the notes here? Thanks.
Comment #16
jamesbenison commentedPlease add this to the README
Comment #17
jamesbenison commentedAnother piece of critical information...if you want this to work.
http://drupal.org/node/1318946
Comment #18
jcisio commentedA patch similar to #9 has been committed. Thanks!
Comment #19
xlyz commentedat the moment it's not possible to enable the module. it can't be:
dependencies[] = libraries (>= 2.0)
as libraries is still @ alpha2.
Comment #20
drdave17 commentedstrike!
Comment #21
jcisio commentedSorry I was testing with libraries 2.x-dev only. Fixed in beta2.
Comment #22
ashleyhazle commentedThe .info file has a typo:
oname = FbconnectSorry I don't know how to upload a patch, but shouldn't take you long ;)
Thanks for all your work jcisio :)
Comment #23
Feet commentedI put a patch together for this (spelling mistake 'oname')
This is my first patch so apologies if I've done it wrong, please inform if so.
Comment #24
jcisio commentedReally sorry! Beta3 has been released.