we must had adjusted:
\components\com_virtuemart\views\category\view.html.php
original code:
- Code: Select all
//No redirect here, for category id = 0 means show ALL categories! note by Max Milbers
if ((!empty($this->categoryId) and $this->categoryId!==-1 ) and (empty($category->slug) or !$category->published)) {
$this->handle404();
}
with:
- Code: Select all
//No redirect here, for category id = 0 means show ALL categories! note by Max Milbers
if ((!empty($this->categoryId) and $this->categoryId!==-1 ) and (empty($category->slug) or !$category->published)) {
static $wasHere;
if (empty($wasHere)) {
$wasHere = true;
$this->handle404();
}
}
now the page simply says:
Category not found
which is better then waisting all available RAM of the server due to this.
best regards, stan