Topic-icon Upgrade to J4 has crashed site

2 years 5 months ago - 2 years 5 months ago #67612 by grahan
Howdy folks. 

I just updated to J4 and now my site has gone belly up. 
How do I disable the plugin and get the site working?

Fatal error: Declaration of JFBConnectJoomlaHttpTransportCurl::request($method, JUri $uri, $data = NULL, ?array $headers = NULL, $timeout = NULL, $userAgent = NULL) must be compatible with Joomla\CMS\Http\Transport\CurlTransport::request($method, Joomla\Uri\UriInterface $uri, $data = NULL, array $headers = Array, $timeout = NULL, $userAgent = NULL) in /home/mysite/public_html/components/com_jfbconnect/libraries/joomla/http/transport/curl.php on line 3
Last edit: 2 years 5 months ago by grahan.
The topic has been locked.
Support Specialist
2 years 5 months ago #67613 by alzander
You'd need to disable the JFBCSystem plugin to disable most functionality of JFBConnect. The simplest way would be to edit the following file:
/plugins/system/jfbcsystem/jfbcsystem.php
Around line 34, you'll see:
function __construct(& $subject, $config)
    {
        parent::__construct($subject, $config);
Update it like the following:
    function __construct(& $subject, $config)
    {
        return;
        parent::__construct($subject, $config);
The "return;" statement will prevent the plugin from running. Once you do that, you should be able to access the admin area again.

As for your issue, that shouldn't happen with JFBConnect v9. Can you let us know what version of JFBConnect you have installed and any other details that may help us localize the issue? We have not heard of similar problems with the latest release but will do whatever we can to help get you going!

Thanks,
Alex
The topic has been locked.