Powered by EverLive.net
Welcome, Guest
Username: Password: Remember me

TOPIC: Fatal error: Class 'JModel' not found in

Fatal error: Class 'JModel' not found in 12 years 1 month ago #37

  • thetrecker
  • thetrecker's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 3
  • Karma: 0
getting this error but i am tiring to get this to work on joomla 2.5

Fatal error: Class 'JModel' not found in /home/b/o/bournemouthmusic/public_html/administrator/components/com_eventmanagement/eventmanagement.php on line 54
The administrator has disabled public write access.

Fatal error: Class 'JModel' not found in 12 years 1 month ago #38

  • sweta
  • sweta's Avatar
  • Offline
  • Administrator
  • Posts: 111
  • Thank you received: 6
  • Karma: 0
thetrecker wrote:
getting this error but i am tiring to get this to work on joomla 2.5

Fatal error: Class 'JModel' not found in /home/b/o/bournemouthmusic/public_html/administrator/components/com_eventmanagement/eventmanagement.php on line 54

Good effort and please let me know if its working fine. You just need to add this line:
jimport('joomla.application.component.model');
before
class EventsModel extends JModel {};
in the file site->components->com_eventmanagement->eventmanagement.php. YOu can open it with notepad++ or any text editor.
The code starts at line 42 and should look like this:
if(!class_exists('EventsModel')) {
   if(version_compare(JVERSION,'3.0.0','ge')) {
      class EventsModel extends JModelLegacy {
      };
   } else {
	  jimport('joomla.application.component.model');
      class EventsModel extends JModel {};
   }
}
Regards
Sweta
Joomla Extensions Directory Listings

extensions.joomla.org/profile/profile/details/176905
The administrator has disabled public write access.

Fatal error: Class 'JModel' not found in 12 years 1 month ago #39

  • thetrecker
  • thetrecker's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 3
  • Karma: 0
hi still getting same problem
Fatal error: Class 'JModel' not found in /home/b/o/bournemouthmusic/public_html/administrator/components/com_eventmanagement/eventmanagement.php on line 54

if(!class_exists('EventsModel')) {
if(version_compare(JVERSION,'3.0.0','ge')) {
class EventsModel extends JModelLegacy {
};
} else {
jimport('joomla.application.component.model');
class EventsModel extends JModel {};
}
}
The administrator has disabled public write access.

Fatal error: Class 'JModel' not found in 12 years 1 month ago #40

  • sweta
  • sweta's Avatar
  • Offline
  • Administrator
  • Posts: 111
  • Thank you received: 6
  • Karma: 0
thetrecker wrote:
hi still getting same problem
Fatal error: Class 'JModel' not found in /home/b/o/bournemouthmusic/public_html/administrator/components/com_eventmanagement/eventmanagement.php on line 54

if(!class_exists('EventsModel')) {
if(version_compare(JVERSION,'3.0.0','ge')) {
class EventsModel extends JModelLegacy {
};
} else {
jimport('joomla.application.component.model');
class EventsModel extends JModel {};
}
}

That error is for the admin side so you need to change the admin side of component
in the file administrator->components->com_eventmanagement->eventmanagement.php. YOu can open it with notepad++ or any text editor.
Change the following code
if(!class_exists('EventsModel')) {
   if(version_compare(JVERSION,'3.0.0','ge')) {
      class EventsModel extends JModelLegacy {
      };
   } else {
      class EventsModel extends JModel {};
   }
To
if(!class_exists('EventsModel')) {
   if(version_compare(JVERSION,'3.0.0','ge')) {
      class EventsModel extends JModelLegacy {
      };
   } else {
   jimport('joomla.application.component.model');
      class EventsModel extends JModel {};
   }
Joomla Extensions Directory Listings

extensions.joomla.org/profile/profile/details/176905
The administrator has disabled public write access.
Time to create page: 0.068 seconds
Powered by Kunena Forum