Jump to content

1 click upgrade module installation problem


Recommended Posts

regard language is italian .

 

with dev true see this:

 

 

Unknown column 'hide_host_mode' in 'field list'
 

INSERT INTO `ps_tab` (`id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`) VALUES ('17', '9', 'autoupgrade', 'AdminSelfUpgrade', '1', '0')
at line 635 in file classes/db/Db.php

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630.         }
631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632.         {
633.             if ($sql)
634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635.             throw new PrestaShopDatabaseException($this->getMsgError());
636.         }
637.     }
638.
639.     /**
Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...

Hi i have about the same problem in a Presta Shop. When i try to install the OneClick Update module, i get this error

 

[PrestaShopDatabaseException]

Duplicate entry '0' for key 'PRIMARY'
 

INSERT INTO `ps_tab` (`id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`) VALUES ('17', '11', 'autoupgrade', 'AdminSelfUpgrade', '1', '0')
at line 635 in file classes/db/Db.php

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630.         }
631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632.         {
633.             if ($sql)
634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635.             throw new PrestaShopDatabaseException($this->getMsgError());
636.         }
637.     }
638.
639.     /**

I also try to manage the blog module (Smart Blog) and i get this error

 

 

[PrestaShopException]

Admin tab AdminAboutUsController is not a module tab
at line 45 in file classes/controller/ModuleAdminController.php

39.         
40.         parent::__construct();
41.
42.         $tab = new Tab($this->id);
43.         if (!$tab->module)
44.             throw new PrestaShopException('Admin tab '.get_class($this).' is not a module tab');
45.
46.         $this->module = Module::getInstanceByName($tab->module);
47.         if (!$this->module->id)
48.             throw new PrestaShopException("Module {$tab->module} not found");
49.     }

 

I have recently move my Prestahop to a new host, but i cant have support, they say its not any permission, or a server error,

Link to comment
Share on other sites

Nothing happens, i still got the same errors.......this is so strange. i removed the database, uploaded an older one, i delete the module, resinstall it, now i can see the blog page in my theme and the control panel also the module is fine, i can see the blog admin in my admin page, but.

1. I cant add a new article, i got the error " An error has occurred: Can't save the current object "

 

2. im navigating through modules, i find the smart blog module, clicking to configure the module and i get this:

 

[PrestaShopException]

Admin tab AdminAboutUsController is not a module tab
at line 45 in file classes/controller/ModuleAdminController.php

 

 

3. I m trying to add discounts, not working, again..........................................  and all the  previous discounts not anymore...

(it was the same thing with the other database, nothing changed.......) im getting a little mad with this situation, i cant figure out what is going on..

Link to comment
Share on other sites

  • 2 months later...

Hello everyone - I have a problem after upgrading with 1click module - i reload the sql database and get this error - can anyone help me? 

 

[PrestaShopDatabaseException]

Unknown column 'last_connection_date' in 'where clause'
 

            UPDATE `ps16_employee`
            SET `last_connection_date` = CURRENT_DATE()
            WHERE `id_employee` = 0 AND `last_connection_date`< CURRENT_DATE()
        

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

 

786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
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...