Author Topic: [fixed]VM 2.0.21g: Category id 0 not published  (Read 19464 times)

alicacasaligi

  • Beginner
  • *
  • Posts: 1
Re: VM 2.0.21g: Category id 0 not published
« Reply #30 on: October 22, 2013, 14:38:40 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.
Code: [Select]
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9744
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [fixed]VM 2.0.21g: Category id 0 not published
« Reply #31 on: October 23, 2013, 11:47:27 am »
This is fixed in the new versions, please update or check yourself the view.html.php of hte category view in the FE.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

evephoto

  • Beginner
  • *
  • Posts: 8
Re: VM 2.0.21g: Category id 0 not published
« Reply #32 on: November 15, 2013, 10:48:23 am »
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.
Code: [Select]
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

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 225
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: [fixed]VM 2.0.21g: Category id 0 not published
« Reply #33 on: December 02, 2013, 07:10:30 am »
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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9744
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [fixed]VM 2.0.21g: Category id 0 not published
« Reply #34 on: December 02, 2013, 11:25:41 am »
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/