Jump to content

Joomla 1.5 error with Event Table Edit component


camyden

Recommended Posts

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();

    }

 

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.