Jump to content

Prbolem with CMS : "category cannot be loaded "


Recommended Posts

Hello everybody,

 

I have an issue with my CMS pages, they do not dipslay in the front office (404 error) and when I try to access the cms in the back office, I have the following message : category cannot be loaded 

 

Could anyone help me ?

 

Thanks guys ! :)

 

By the way, this is the message I get with full explanation :

[PrestaShopDatabaseException]

Unknown column 'b.id_shop' in 'where clause'
 

SELECT *
FROM `ps_cms` a
LEFT JOIN `ps_cms_lang` `b` ON a.id_cms = b.id_cms AND b.id_lang = 1
LEFT JOIN `ps_cms_shop` `c` ON a.id_cms = c.id_cms AND c.id_shop = 1
WHERE (a.id_cms = 7) AND (b.id_shop = 1) LIMIT 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

  • 3 weeks later...

Hi!

 

I have the same problem. I got "not found page" at the front-end and this error at the back-end when I enter at the CMS.

[PrestaShopDatabaseException]

Table 'db561183755.ps_cms_category_shop' doesn't exist
 

SELECT *
FROM `ps_cms_category` a
LEFT JOIN `ps_cms_category_shop` `c` ON a.id_cms_category = c.id_cms_category AND c.id_shop = 1
WHERE (a.id_cms_category = 1) LIMIT 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

Hi,

 

I am not a tech by any means, but I guess I am following this topic and saw your dilemma and think I can help you a little bit.

 

I read through and if I read it correctly you are able to see the CMS pages you created, but they are empty and or missing when you try to load them.

 

My solution was fixed by doing the following..

 

If you are able to access PhpMyAdmin..

  • Check to make sure your ps_cms_lang  has the field id_shop
  • Check to make sure your ps_cms_category_language  has the field id_shop

If one or both don't have those fields you will need to add them.

 

As far as if you need help adding those fields, it wouldn't be a good idea for me to help. I just barely make it by when it comes to queries and those sort of things.

 

I hope I was able to help you.

 

Tina

www.climaticmoments.com

Link to comment
Share on other sites

  • 1 year later...

Hi can you send me the screen shoot of your database ?

Hi,

 

I am not a tech by any means, but I guess I am following this topic and saw your dilemma and think I can help you a little bit.

 

I read through and if I read it correctly you are able to see the CMS pages you created, but they are empty and or missing when you try to load them.

 

My solution was fixed by doing the following..

 

If you are able to access PhpMyAdmin..

  • Check to make sure your ps_cms_lang  has the field id_shop
  • Check to make sure your ps_cms_category_language  has the field id_shop
If one or both don't have those fields you will need to add them.

 

As far as if you need help adding those fields, it wouldn't be a good idea for me to help. I just barely make it by when it comes to queries and those sort of things.

 

I hope I was able to help you.

 

Tina

www.climaticmoments.com

 

Link to comment
Share on other sites

×
×
  • Create New...