Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

URGENT: I get Facebook class not found on production site

10 years 2 weeks ago
  • Julián's Avatar
    Topic Author
  • Julián
  • Offline
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY:
We move our site working fine in APACHE 2, PHP 5.4, MYSQL 5.5 with akeeba backup to our production server with: NGINX, PHP 5.6, MYSQL 5.5. Everything looks fine while restoring the site, but when we try to go frontend, i get the error:

Fatal error: Class 'Facebook' not found in /home/www/todoboda.com/components/com_community/libraries/facebook.php on line 56

I check the file and it is there and has proper permissions.

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

10 years 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Julian,

It can be caused by your nginx server, or can you try to use apache server and use php 5.6, for testing it, please?

thank you!

10 years 2 weeks ago
  • Julián's Avatar
    Topic Author
  • Julián
  • Offline
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi, I find a solution. You are using a really deprecated facebook sdk library. Indeed, your are using version 3.2.2 (current version is 5). So, i tried to update to last v3 (3.2.3) and everything works again... just replacing the files on folder /libraries/facebook.

IMHO you must update that library asap.

Regards,
JM

10 years 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Julián,

Thank you for your update, would you mind give us your facebook lib package into this forum, please? it will be very usefull for us and for another forum members.

thank you!

10 years 2 weeks ago
  • Julián's Avatar
    Topic Author
  • Julián
  • Offline
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Yes, sure.

I downloaded from here: github.com/facebookarchive/facebook-php-sdk/tree/v3.2.3

Do you think that this will be updated in future versions of JS?

Regards,
JM

10 years 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Julián,

Thank you very much, I will follow up this issue.

cheers!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW