Jump to content

Presta 1.4.0.9 deleting error in subCMS Category in CMS Category "Home"


Recommended Posts

After installing clean presta 1.4.0.9 in tools -> cms I add new subcms category is present in BO but not show in FO. I use blockcms to show in FO cms pages but subcms page show only name and empty decription, category home show names and descriptions of pages properly.

I use define('_PS_DEBUG_SQL_', true); $start_time = microtime(true); in config.inc.php and try delete subcms category now in BO presta show:

Unknown column 'id_category' in 'where clause'

SELECT `id_cms_category`

FROM `ps_cms_category`

WHERE `id_parent` = 2 AND `id_parent` != `id_category`

 

Can anybody help ?

Edited by Radi (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

I've had the same error last week!

In file 'CMSCategory.php' from '/classes/CMSCategory.php' at line 230, replace:

!= 'id_category',by !='id_cms_category'.

Here is tested that the category you are trying to delete is not the root category.

I don't know if this bug is already fixed but it's quiet complicated not to be able to delete a cms category ...

post-276404-0-37840300-1347883183_thumb.jpg

Link to comment
Share on other sites

  • 4 weeks later...

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