|
Welcome,
Guest
|
|
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.
|
|
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');class EventsModel extends JModel {};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 {};
}
}Sweta |
|
The administrator has disabled public write access.
|
|
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.
|
|
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 {};
}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.
|
|
kontera Ads
Price $0.00 |
|
Best Answers
Price $0.00 |
|
Code Seller
Price $0.00 |
|
Stop User Edit
Price $0.00 |
|
Event management
Price $0.00 |
Tweets by @scriptplaza
