Topic-icon Getting "Class 'SocialProfilePlugin' not found" - Site is down!

Active Subscriptions:

None
Hi; hoping for urgent assistance.  Attempted to upgrade to latest version of JFBConnect.  After "completion", the page refreshed to an error message "Getting "Class 'SocialProfilePlugin' not found".  Entire site is now down, with all pages (including admin) displaying this message.  Please assist to resolve.
The topic has been locked.
Support Specialist
Well, that's obviously not good.

First, to get you back up as soon as possible, let's try the widest approach to fixing the issue. To do so, edit the 'index.php' file in the root of your Joomla installation. At the very bottom is a line like:
$app->execute();

Directly above that, insert another line so together, the look like:
require_once(JPATH_SITE . '/libraries/sourcecoast/plugins/socialprofile.php');
$app->execute();

That should guarantee that Joomla can find the proper file for the class it's balking about.

Next, assuming you can get in the admin area:
* Disable all Social Profile plugins
* Re-install JFBConnect v9 again
* Try removing that line from the index.php file.

If it blows up again, re-add it and let us know. At least you should be at a 'working' point while we investigate what could be causing the error. This isn't something we've seen or heard of, but obviously want to get fixed ASAP.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 2 months ago - 3 years 2 months ago #67025 by scochi
Thanks for the rapid response. Added the line as indicated above and now getting the following:

Warning: require_once(/home2/farragu2/public_html/libraries/sourcecoast/plugins/socialprofile.php): failed to open stream: No such file or directory in /home2/farragu2/public_html/index.php on line 49

Fatal error: require_once(): Failed opening required '/home2/farragu2/public_html/libraries/sourcecoast/plugins/socialprofile.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home2/farragu2/public_html/index.php on line 49

Unable to access site or admin area.

What are next steps?
Last edit: 3 years 2 months ago by scochi.
The topic has been locked.
Support Specialist
Ok.. something really strange happened with the installation in general as some required files are missing.

Let's get those replaced by doing the following:
* Unzip the JFBConnect_v9.0.zip file you downloaded
* In there, unzip packages/libraries/sourcecoast.zip
* Upload all the files from that sourcecoast.zip file to:
YOUR_SITE/libraries/sourcecoast

When done, you should have a directory and files that look like this on your site:
/libraries/sourcecoast/adminHelper.php
/libraries/sourcecoast/articleContent.php
/libraries/sourcecoast/openGraph.php
/libraries/sourcecoast/openGraphPlugin.php
/libraries/sourcecoast/sourcecoast.xml
/libraries/sourcecoast/articleContent.php
/libraries/sourcecoast/plugins/jfbconnectPlugin.php
/libraries/sourcecoast/plugins/providerPlugin.php
/libraries/sourcecoast/plugins/socialprofile.php

Thanks!
The topic has been locked.
Active Subscriptions:

None
I did as requested (used jfbconnect 8.4.6, not 9.0) and now am getting the following error:

Call to undefined method plgOpenGraphContent::addSupportedAction()

Main site and admin are both inaccessible.

Thanks again for your help.
The topic has been locked.
Support Specialist
You'll need to use the library files from JFBConnect 9.0. The ones in 8.6.4 don't support all the calls in JFBConnect v9 which will just lead to more errors.

Once the 9.0 library is unzipped into the correct folder, I'm assuming you're still going to have the error above. It seems like a lot of JFBConnect was not updated during the installat/upgrade process, including the Open Graph plugins.

If the same error persists, you'll need to make an edit to disable those plugins by editing:
/libraries/sourcecoast/openGraphPlugin.php
Around line 42 is the __construct function. Add 'return' after that, so it looks like:
function __construct(&$subject, $config)
    {
         return;
That should disable the OpenGraph plugins and hopefully get your site up. If not, let us know the next error and we'll work through it.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
THANK YOU!

Site and admin are back up. Once everything was working, I installed the 9.0.33 beta release and it appears to be functioning as intended. Continuing to test and will let you know of further issues.

Again, really appreciate your fast response here!
The topic has been locked.
Support Specialist
That makes us so happy to hear!
Re-installing JFBConnect v9 was the right step to hopefully clean up any of the changes you made. Please remove the line from the index.php file though as that should not remain there.

With that said, we're a bit flummoxed as to what possibly could have happened during the installation to cause this. Could you let us know about that initial installation so we can try to investigate further:
* Do you know what version of JFBConnect you were using beforehand? From your Autotune history, the last I see is v7.2.4. While that is a quite old version, our installer should still handle it. We'd love to know if you may have been using a more recent version though so we can test appropriately.
* When you installed, was there any PHP or server error messages or did it just dump you to the PHP error you started this thread with?

Any details are helpful. We definitely want to fix this up so others don't have the same issue and we greatly appreciate your patience in getting you going!

Thanks,
Alex
The topic has been locked.