camyden Posted September 10, 2007 Share Posted September 10, 2007 This is my first post on this forum so if this is the wrong place to ask sorry. I'm trying to use a Joomla 1.5 component Event Table Edit. I'm getting this error Fatal error: Call to a member function on a non-object in /home/taggz/public_html/components/com_event_table_edit/event_table_edit.php on line 17 Which I think has something to do with instantiating something but have no idea how to go about it. Any help to a complete Noob would be appreciated. <?php /** * @version $Id: event_table_edit.php 63 2007-08-15 * Event Table Edit Component * @Copyright © 2007 Manuel Kaspar All rights reserved * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://eventtable.249054.vserver.de/ * @author Manuel Kaspar **/ defined( '_VALID_MOS' ) or die( 'Direct Access to this script is not allowed'); global $mosConfig_live_site, $mosConfig_absolute_path, $params; include ('includes/helper.php'); $number = $params->get('choose', '1'); $pathLang = $mosConfig_absolute_path . '/components/com_event_table_edit/language/'; if( file_exists( $pathLang . mosMainFrame::getCfg('lang') . '.php' )){ include_once( $pathLang . mosMainFrame::getCfg('lang') . '.php' ); } elseif ( file_exists( $pathLang . mosMainFrame::getCfg('lang') . 'f.php' )) { include_once ( $pathLang . mosMainFrame::getCfg('lang') . 'f.php' ); } else { include_once( $pathLang . 'english.php'); } global $mosConfig_absolute_path, $mosConfig_admin_template, $mosConfig_live_site; $_CONFIG->SITEPATH=$mosConfig_absolute_path; $configfile=$_CONFIG->SITEPATH . "/administrator/components/com_event_table_edit/event_table_config.php"; include($configfile); $cssHTML = '<link href="' . $mosConfig_live_site . '/components/com_event_table_edit/template/css/event_table_css.css" rel="stylesheet" type="text/css" />' . "\n"; if (isset($mainframe)) $mainframe->addCustomHeadTag( $cssHTML ); else mosMainFrame::addCustomHeadTag( $cssHTML ); class mosEvent_table_edit extends mosDBTable { var $id = null; var $ordering = null; var $locktab = null; function mosEvent_table_edit( &$db ) { $this->mosDBTable('jos_event_table_edit_' . $number, 'id', $db); } } switch( $task ) { case 'frontendEdit': frontendEdit(); break; case 'frontendCreate': frontendCreate(); break; case 'frontendDeleteBest': frontendDeleteBest(); break; case 'frontendDelete': frontendDelete(); break; case 'save': frontendSave(); break; case 'saveOrder': saveOrder(); break; case 'frontendCancel': frontendCancel(); break; case 'changeTable': changeTable(); break; default: checkTable(); } Quote Link to comment https://forums.phpfreaks.com/topic/68658-joomla-15-error-with-event-table-edit-component/ Share on other sites More sharing options...
web_design_sydney Posted October 5, 2007 Share Posted October 5, 2007 Your best bet is to search the Joomla forums - http://forum.joomla.org/ Try searching for the error message there. If you downloaded this as a component, try installing an earlier version of the component. Quote Link to comment https://forums.phpfreaks.com/topic/68658-joomla-15-error-with-event-table-edit-component/#findComment-362230 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.