News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[fixed]VM 2.0.21g: Category id 0 not published

Started by z-analysts, June 26, 2013, 23:06:14 PM

Previous topic - Next topic

alicacasaligi

Quote from: Milbo on June 29, 2013, 17:39:02 PM
you can also just remove the info message and the return. The fix works 100%. Franzpeter got a new version and has not anylonger the problem.

if(!$category->published){
vmInfo('COM_VIRTUEMART_CAT_NOT_PUBL',$category->category_name,$categoryId);
return false;
}

just remove this in your view.html.php.



Hi Milbo,

I try all things which you suggest but nothing work & see error  "Category id 0 not published". Now tell me how to fix it... Please :(.


Milbo

This is fixed in the new versions, please update or check yourself the view.html.php of hte category view in the FE.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

evephoto

Quote from: Milbo on June 29, 2013, 17:39:02 PM
you can also just remove the info message and the return. The fix works 100%. Franzpeter got a new version and has not anylonger the problem.

if(!$category->published){
vmInfo('COM_VIRTUEMART_CAT_NOT_PUBL',$category->category_name,$categoryId);
return false;
}

just remove this in your view.html.php.

Worked for me too ! Thanks !

StefanSTS

Hello,

I just updated Virtuemart to 2.0.24c from 2.0.20b with com_virtuemart.2.0.24c_extract_first.targz and got the same Category id 0 not published.
I fixed that one or two month ago on the test installation of the site, when another update came, so I could just use the view.html.php file for categories, since nothing else was changed.

But it would be really helpful, if the updates would include the fixed file.

So long
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

Also written in the news. your error is very likely coming from the categories view, which is obsolete, please read here http://forum.virtuemart.net/index.php?topic=120433.0
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/