Jump to content

Error in SQL database after ebay module update


secursystem

Recommended Posts

Hello,

 

    I have updated EBAY native prestashop module, I got this error:

 

Site is working but  when I click on "module" tab, I have this error. Anyone can help me in fixing it?

[PrestaShopDatabaseException]

Duplicate column name 'is_reference'
 

ALTER TABLE `ps_ebay_category_specific` ADD `is_reference` tinyint(1) NULL
at line 646 in file classes/db/Db.php

 

641.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
642.         }
643.         elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
644.         {
645.             if ($sql)
646.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
647.             throw new PrestaShopDatabaseException($this->getMsgError());
648.         }
649.     }
650.
651.     /**
Link to comment
Share on other sites

Thank you for your reply.

 

I have commented the file in ftp: /ebay/upgradeUpgrade-1.12.3.php and now I can show module list without error :)

 

But if I try to open ebay module, I have this error:

 

[PrestaShopDatabaseException]

Table 'Sql649258_1.ps_ebay_business_policies' doesn't exist
 

DELETE FROM `ps_ebay_business_policies`
WHERE `id_ebay_profile` = 1

at line 646 in file classes/db/Db.php

 

641.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
642.         }
643.         elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
644.         {
645.             if ($sql)
646.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
647.             throw new PrestaShopDatabaseException($this->getMsgError());
648.         }
649.     }
650.
651.     /**
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...