Trying to port some of the custom components that work well in Joomla 2.5.14 to Joomla 3.1.5, but get some errors, such as: 404 components not found in Joomla Backend and other errors in the interface
Is there any guide on migrating from Jooma 2.5 to 3x series, what changes need to be done in custom components
Front of the site 1st error
Notice: Use of undefined constant DS - assumed 'DS' in forms.php
Second mistake
Warning: require_once(com_formsDScontroller.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in forms.php
Third mistake
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'com_formsDScontroller.php' (include_path='.;C:\php\pear') in forms.php
There were all errors showing forms.php, this
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); require_once( JPATH_COMPONENT.DS.'controller.php' ); if ($controller = JRequest::getWord('controller')) { $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php'; if (file_exists($path)) { require_once $path; } else { $controller = ''; } } $classname = 'FormsController'.$controller; $controller = new $classname(); $controller->execute( JRequest::getVar( 'layout' ) ); $controller->redirect(); ?>
source share