Fatal error: Class 'JModel' not found

13 years 2 months ago #154750 by vbuilder
Fatal error: Class 'JModel' not found was created by vbuilder
I am on Joomla 1.6 and CB 1.4. I built a Members Menu with Login and Registration sub-menus linking to Menu Item Types from CB comprofiler. It was working fine for awhile, but now I am getting the following error message:

Fatal error: Class 'JModel' not found in /home/virtualg/public_html/modules/mod_weblinks/helper.php on line 14.

This happens on calls to any of the menu Item Types in the comprofiler. Can someone tell me how to correct this issue? I am a newby and the website I am learning Joomla with is virtualgate.com. Your help will be greatly appreciated.

Please Log in to join the conversation.

13 years 2 months ago #154963 by tommy0698
Replied by tommy0698 on topic Re: Fatal error: Class 'JModel' not found
I have the same problem with a new install of CB 1.4 and Joomla 1.6, any advice would be appreciated

Please Log in to join the conversation.

13 years 2 months ago #155436 by raymiester
Replied by raymiester on topic Re: Fatal error: Class 'JModel' not found
Having the same problem here and I am hoping I could get an answer sooner than later. If by some luck i figure it out i will get back to the forum.
The following user(s) said Thank You: biju

Please Log in to join the conversation.

13 years 2 months ago #155440 by raymiester
Replied by raymiester on topic Re: Fatal error: Class 'JModel' not found
In your sites root folder(public_html), navigate to modules/mod_weblinks/helper.php
Edit the helper.php file and insert the following code at the top of the code. I preferred to put it after the comments.

jimport('joomla.application.component.model');

I hope this works for you as it did for me. Enjoy the application.
The following user(s) said Thank You: giemme, biju

Please Log in to join the conversation.

13 years 2 months ago #155467 by vbuilder
Replied by vbuilder on topic Re: Fatal error: Class 'JModel' not found
Great! It works. Thanks Raymiester.

Please Log in to join the conversation.

12 years 7 months ago #175477 by biju
Thanks you very much for your post. It does really work.

By the way do you know how this error comes all of sudden. The site was working fine since last 2 years and just yesterday I got this problem. I have not changed anything.

Thank you once again for you great help.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.311 seconds

Facebook Twitter LinkedIn