Topic-icon [SOLVED] Model Class Error

Support Specialist
10 years 2 weeks ago #43682 by alzander
Replied by alzander on topic [SOLVED] Model Class Error
No problem. I'm glad to hear we could help. We're still looking into the Twitter channel posting issue, which I tinkered with a bit at the same time as this issue.. but wasn't able to come to a definitive answer, like with this one. Sorry for the delay on that.

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

None
10 years 1 week ago #43865 by fb_1065680347
Sorry to revist this one, but I received a response back from the programmers of the GAnalytics module:

Hello

A new comment was published on the case Error with GAnalytics plugin by the user Laoneo:

Sorry, it was a misunderstanding. I've interpreted your answer that it was resolved. What I wanted to say is that the JFBConnect guys are not loading their models correct. Believe me I know what I'm talking about. I was facing the same problem at the beginning of GAnalytics and fixed it at that time to load the models correct. What I wanted to say is that they need to load their models that way.

JModelLegacy::getInstance('Profile', 'GAnalyticsModel');

If the have the normal Joomla MVC setup then they need to define the loadModel function that way in their controller where they default the prefix parameter to their component (probably something like JFBConnectModel instead of GAnalyticsModel):

public function getModel($name = 'Profiles', $prefix = 'GAnalyticsModel') {
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}

You can give them our contact to resolve the problem from developer to developer, which will be faster. They can contact us trough the contact form joomla.digital-peak.com/question-formular.
The topic has been locked.
Support Specialist
10 years 1 week ago #43911 by alzander
Replied by alzander on topic [SOLVED] Model Class Error
I sent them an email through their Contact Form you linked to. The description you give above is accurate for how to load a model. The problem is that JFBConnect doesn't have a Profiles Model at all. JFBConnect simply has a view called "Profiles" and the GAnalytics plugin seems to be triggering off that.

Not sure what the cause is. We'll hopefully get some answers from the dev. From what I can see though, there are no functional issues with this problem, just an error message that shouldn't be shown in our profiles area.

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

None
10 years 2 days ago #44088 by fb_1065680347
Any word back from the developers of the GAnalytics component on this yet?
The topic has been locked.
Support Specialist
10 years 1 day ago #44118 by alzander
Replied by alzander on topic [SOLVED] Model Class Error
We've been in contact and described the situation further. This weekend, we sent the latest release of JFBConnect to them to investigate further on their end. I'm not sure when a response will come and, again, this isn't a fatal issue of any sort, so I'm not going to pressure them. If I hear anything though, I'll gladly let you know.

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

None
9 years 11 months ago #44425 by fb_1065680347
This has been fixed by the programmer of the GAnalytics component. Thank you for working with them.
The topic has been locked.
Support Specialist
9 years 11 months ago #44429 by alzander
Replied by alzander on topic [SOLVED] Model Class Error
Steven,
No problem for helping. We love working with other developers, and the guys at www.digital-peak.com/ seemed very responsive and wanting to help as well. We both had good ideas of a fix in either extension, but ultimately, the best option was a minor tweak to theirs.

As always though, should you run into anything else, just let me know.

Thanks,
Alex
The topic has been locked.