php - JS Jobs Extension in Joomla 2.5 -


i new joomla, have installed js jobs extension in site

http://dotcomsourcing.com/lercorefinery/

extension installed, when clicked open it,shows following error

fatal error: class 'jcontrollerlegacy' not found in /home/dotcom/public_html/lercorefinery/administrator/components/com_jsjobs/controller.php on line 24 

help me figure out.. or tell other option

the jcontrollerlegacy class added in joomla 2.5.6. upgrade that, , you'll fine. if you're not able upgrade, define classes yourself, since shell extends jcontroller. however, recommended way upgrade @ least 2.5.6.

if these classes added joomla 2.5.0, classes can extend jcontrollerlegacy, jmodellegacy, , jviewlegacy. however, since these classes not available before 2.5.6, think need define temp class, :

if (version_compare(jversion, '3.0', 'ge')) { class legacycontroller extends jcontrollerlegacy { } } else { jimport( 'joomla.application.component.controller' ); class legacycontroller extends jcontroller { } } 

then controller class in extension extend legacycontroller. should work!

another simpler solution find/replace

jcontrollerlegacy, jmodellegacy, jviewlegacy

with

jcontroller, jmodel, jview

in plugin's folder using notepad++ or other ide of choice.

that's it..!! enjoy :)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -