Jump to content

Trouble with Database Table


Kwash

Recommended Posts

Hi Guys,

I am having problems with this error which keeps showing up on my prestashop.I have also attached the picture please help guys. Can someone assist me with the script I have to run to restore the database tablet correctly,also I am not sure if this also has to do with my host please help in deep trouble. 

 

[PrestaShopDatabaseException]

Table 'ngahcom_vic2015.ps_smarty_lazy_cache' doesn't exist

 

SELECT UNIX_TIMESTAMP(last_update) as last_update, filepath FROM `ps_smarty_lazy_cache`

                            WHERE `template_hash`='a46fdbfdb7978bc10fca01be27f9a288' AND cache_id="" AND compile_id="" LIMIT 1

 

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. }

 

 

Please assist guys I am now just lost. 

post-1251863-0-30791400-1463815185_thumb.png

Link to comment
Share on other sites

This is a table that was only recently (1.6.1.0???) introduced. So it would be very interesting to know which version you are using and whether there is some mixeup of versions in your shop.

I am using 1.6.1.3. I am just so lost its confusing, I am basically aguy who just knew how to install the prestashop and change and upload have never had database issues before. 

Link to comment
Share on other sites

Check if the table exists. If yes than you should repair it with phpmyAdmin (or ask your provider to repair  it).

 

If table is not available on database, you should add it manually, like Nemo1 told you. How to add tables on database with phpmyAdmin: http://support.hostgator.com/articles/specialized-help/technical/phpmyadmin/adding-a-column-to-a-database-table-in-phpmyadmin

 

If you are not able to add it by yourself, please ask your provider.

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...