Topic-icon Blank Page after installed JFBConnect

Active Subscriptions:

None
13 years 2 months ago #31927 by senwid
Hi,

I just installed JFB Connect for Joomla 2.5 and was configuring the Facebook App in the Autotune, because I was not sure about the NAMESPACE thing, I skipped went to Site Check or something, then it says to publish the Plugins, when i click the Plugin Manager, site went white blank. And now all the website became white blank page.. www.qozio.com

Update: I check error log and it shows this error
[20-Mar-2013 15:33:18] PHP Fatal error: Cannot make static method JModel::addIncludePath() non static in class K2Model in /home/qozio/public_html/administrator/components/com_k2/models/model.php on line 0

Update2: I found a similar problem in a post here as well, had to disable the JFBC System plugin in order to work, so any solution so I can use this FJBC along with the K2?

The K2 version is the latest one I just installed 2-3 days ago, and the site is brand new with 2.5.9 joomla version running. If you need a super admin access to take a look just let me know. Please help coz I need to make it work, my priority is the Facebook comment system in the K2 articles, that's what I'm really after.
The topic has been locked.
Support Specialist
13 years 2 months ago #31936 by alzander
Senpri,
I've been doing some research on this. The code that is throwing the error in K2 is reading the JVERSION variable, which is set by Joomla, and it's responding that your site is *not* 2.5 or higher. Because of that, the model.php file is doing something that's only meant for Joomla 1.5, and throwing the fatal error.

I'm not sure why that would be happening and we've only heard of it one other time, in relation to JFBConnect, back in January. There are many posts about this on various different extensions support areas though, so this isn't something specific to JFBConnect, it's related to K2. If you search Google for "Cannot make static method JModel::addIncludePath() non static in class K2Model in ", you'll see what I mean.

Can you let me know if this site was ever a Joomla 1.5 site?
Can you try re-ordering the K2 System and JFBCSystem Plugins to swap the order they load, and see if that helps?
If not, can you try to help narrow down which plugin caused the error to appear? That will greatly help us try to provide a solution, if possible on our side.

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

None
13 years 2 months ago #31939 by senwid
Hi, thanks for the reply, i was getting desperate.

1. I have tried swapping the order of JBConnect System with the K2 System but didnt help.
2. I don;t know how to track which plugins are causing the error, but whenever I disable System - JFBCSystem , the site is normal.
The topic has been locked.
Support Specialist
13 years 2 months ago #31942 by alzander
Senpri,
Can you private message us admin credentials for your site? We'd like to look into the matter more to see what could be causing the problem. Before we test anything though, please let me know the last two questions:
* Can you let me know if this site was ever a Joomla 1.5 site?
* When the site gets a white-screen, is it just the front-end, ro does that happen in the admin area too? If it's the admin area too, that will make things more difficult to debug as you'd need to be available to disable it in case we take down the site. If it's just the front-end, that will make things much easier to dig into.

You can Private Message me by clicking the arrow under my avatar (<----) and hitting the mail icon.

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

None
13 years 2 months ago #31953 by senwid
1. I don't think its ever been 1.5, I installed it from the RocketLauncher version of Joomla 2.5 from RocketTheme.
2. Both, front end and back end.
3. I sent u the credentials, you can do whatever you want on that site, its a new installation so it doesnt matter.
The topic has been locked.
Support Specialist
13 years 2 months ago #31990 by alzander
Thanks for the credentials. I killed it. I was trying to narrow down the problem with some echo statements in the administrator/components/com_k2/models/model.php file. I thought I commented out the 'problem' code and enabled the JFBCSystem plugin, but it still crashed.

Can you re-disable the JFBCSystem plugin? If you're up for a quick edit to code, can you also edit the same file and simply past this whole code block into it:
defined('_JEXEC') or die ;

jimport('joomla.application.component.model');
/*
if (version_compare(JVERSION, '3.0', 'ge'))
{
    class K2Model extends JModelLegacy
    {
        public static function addIncludePath($path = '', $prefix = '')
        {
            return parent::addIncludePath($path, $prefix);
        }
    }
}
else if (version_compare(JVERSION, '2.5', 'ge'))
{
    class K2Model extends JModel
    {
        public static function addIncludePath($path = '', $prefix = '')
        {
            return parent::addIncludePath($path, $prefix);
        }
    }
}
else
{
    class K2Model extends JModel
    {
        public function addIncludePath($path = '', $prefix = '')
        {
            return parent::addIncludePath($path);
        }
    }
}*/
There's an extra /* and */ in there that should basically disable that whole file. Once done, re-enable the JFBCSystem plugin and see what happens.

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

None
13 years 2 months ago #31993 by senwid
Did all above, but when I enable the JFBC System plugin again, still blank page again. Now i already disabled it.
The topic has been locked.
Support Specialist
13 years 2 months ago #32034 by alzander
Senpri,
It's difficult to diagnose since once we make a change, the page can go down and there's no way to recover it.

Is it possible to provide us with FTP access to your site? That will allow us to make, and undo changes, to bring the site back up and really dig into the issue. The Joomla admin interface becomes very limited in cases like this.

If not, we understand. We are working on the issue, but since it's K2-specific, and not a widespread issue, it does have a lower priority. That doesn't mean we think it should take weeks to get an answer, but it may take a few days.

Thanks,
Alex
The topic has been locked.