Fatal error today...

14 years 4 weeks ago #127458 by Johnnydement
Fatal error today... was created by Johnnydement
I got this fatal error today when loading frontpage: Fatal error: Cannot redeclare class FacebookRestClientException in /home/domain/www/www/components/com_comprofiler/plugin/user/plug_cbfacebookconnect/facebook-client/facebookapi_php5_restlib.php on line 3429

Worked normally after a refresh...

But that can't happen to a normal user, means a lost visitor...

Your feedback on the JED helps us improve Kunena. ;)

Please Log in to join the conversation.

14 years 4 weeks ago #127507 by krileon
Replied by krileon on topic Re:Fatal error today...
Please check that you do not have any other plugin installed that is loading the same PHP library as it will conflict. CB users its own API based import feature to prevent double, etc.. importing so it would need to be an outside source also importing the library for it to conflict.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 11 months ago #131258 by iconcy.de
Replied by iconcy.de on topic Re:Fatal error today...
I have the same problem.

This is a conflict with the Facebook REST library, when 2 extensions includes it from seperate places. Of course it is normal that other extensions may use this library to and not CB only.

I suggest you at CB team have to implement a check (like other extensions do) when you use 3rd party librarys:

[code:1]if (!class_exists('FacebookRestClientException') && !class_exists('FacebookRestClient')) {
require_once ('facebook/facebook.php');
}[/code:1]

What do you think? Any other suggestions or ideas?

Please Log in to join the conversation.

13 years 11 months ago #131381 by krileon
Replied by krileon on topic Re:Fatal error today...
The problem with doing that is the 3rd party extensions library could be out of date, contain modifications, or vulnerabilities. We do not want to load a bad API to be executed and passing sensitive data. We've also some bug fixes in Facebooks API it self as well as a 3rd API call method by way of Snoopy so users without cURL can use FBC. We recommend adding the check to the 3rd party extensions for time being until we find a suitable solution.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.204 seconds

Facebook Twitter LinkedIn