Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Fatal error: Cannot redeclare class TableExtension
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Fatal error: Cannot redeclare class TableExtension

Re:Fatal error: Cannot redeclare class TableExtens 14 years, 11 months ago #9735

david wrote:
Hello,

There shouldn't be any TableExtension class in the reported file. Could you please send me your /administrator/components/com_sef/tables/sefurl.php file packed to ZIP to This e-mail address is being protected from spambots. You need JavaScript enabled to view it ? Thank you.

Best regards,
ARTIO Support Team


<?php

/**

* SEF component for Joomla! 1.5

*

* @author ARTIO s.r.o.

* @copyright ARTIO s.r.o., www.artio.cz

* @package JoomSEF

* @version 3.1.0

*/



// no direct access

defined('_JEXEC') or die('Restricted access');





class TableExtension extends JTable

{

var $id;

var $file;

var $title;

var $filters;

var $params;



/**

* Constructor

*

* @param object Database connector object

*/

function TableExtension(& $db) {

parent::__construct('#__sefexts', 'file', $db);

}



function store( $updateNulls = false ) {

$k = $this->_tbl_key;



$query = "SELECT `id` FROM `#__sefexts` WHERE `file` = '{$this->$k}'";

$this->_db->setQuery($query);

$this->id = $this->_db->loadResult();



if( $this->id ) {

$ret = $this->_db->updateObject( $this->_tbl, $this, $this->_tbl_key, $updateNulls );

} else {

$ret = $this->_db->insertObject( $this->_tbl, $this, $this->_tbl_key );

}

if( !$ret ) {

$this->setError(get_class( $this ).'::store failed - '.$this->_db->getErrorMsg());

return false;

} else {

return true;

}

}



}

?>
The topic has been locked.

Re:Fatal error: Cannot redeclare class TableExtens 14 years, 11 months ago #9740

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

I'm sorry for the inconvenience, we've found the problem in our last upgrade. This will be fixed in a few days with version 3.5.4. Thank you for your reports.

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:Fatal error: Cannot redeclare class TableExtens 14 years, 11 months ago #9743

should we roll back to the older version for the time being ? because rewrite does not work and we can not change any url
The topic has been locked.

Re:Fatal error: Cannot redeclare class TableExtens 14 years, 11 months ago #9744

  • dajo
  • OFFLINE
  • Posts: 5069
The problem is only with upgrade from 3.5.2 to 3.5.3, so a reinstall of 3.5.3 or clean fresh install should work ok. You can also use the file attached in ZIP archive to overwrite the /administrator/components/com_sef/tables/sefurl.php file on your server, that should fix it.
Of course having a recent backup of your site is recommended before any changes.

Attachment sefurl.zip not found



Best regards,
ARTIO Support Team
Attachments:
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty