Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Product category page fails if no products in it

Product category page fails if no products in it 11 years 2 months ago #2270

Hi,

Problem : If a category contains no products, I just get a white blank page displayed when viewing the category page.
Viewing the html source, it shows no html was returned at all.

Up until now I've been using just a single level of categories and it's been working great as they all contained products.

But now I want to move to 2 levels of categories. ie. categories with child categories such as :

- construction-blocks
- deplo
- lego
- nanoblock

So in this case, the category "construction-blocks" contains no products but only child categories. But I found when I did this, I just get a blank white page displayed.

Please see this url for the broken category :
www.shopoftoys.com.au/construction-blocks

Where as if the category contains any products than it works fine :
www.shopoftoys.com.au/construction-blocks/lego

Seems to drop out somewhere in the code in the // DUMP LINES FOR DOMAIN VALIDATION part of the script in category/flexv2.php.

Any ideas or hoping someone else has already encountered this ?
The topic has been locked.

Product category page fails if no products in it 11 years 2 months ago #2278

Since it is a complete white blank page (without PHP error line) i can't be sure what the reason is.
Did you try to check your error_log file to see what is going on behind the scene?

I tried this situation (I create new a parent-category without any products but with some child-categories) and it doesn't behaves the same as yours. Everything looks okay in my screen. It works just fine in our DEMO server and in my local machine.

Please check your error_log ---OR--- try to activate the PHP error reporting (usually it is activated through your hosting control panel) then it will give an error instead of white blank page. Once i see the error code, i will figure out the failure and help you to resolve it.

Regards.
The topic has been locked.

Product category page fails if no products in it 11 years 2 months ago #2279

Also make sure to enabled the "Show Children Category" in the VM Configuration.

See the screenshot:

Attachment Pasted_Image_2_4_13_11_37_PM.gif not found




Regards,
Forum Support.
The topic has been locked.

Product category page fails if no products in it 11 years 2 months ago #2290

Thanks for your reply.

Found the following error in the error log when testing on my local pc :

[05-Feb-2013 22:44:00] PHP Fatal error: Class 'JParameter' not found in C:\Program Files (x86)\Apache Software Foundation\Apache2.2.1\htdocs\templates\loltoys-shoplab\html\com_virtuemart\category\flexv2.php on line 25

For now, have added the following line to flexv2.php and seems to work okay but will need to test more thoroughly on the weekend :

jimport( 'joomla.html.parameter' );

On weekend I might also try a clean install on a local pc, maybe a file change to another file has caused this error some how.

Software versions are :
Joomla! 2.5.8
Virtuemart 2.0.14
Puremart template 3.2

Thanks.
The topic has been locked.

Product category page fails if no products in it 11 years 2 months ago #2298

Hi,

I am glad you found the solution by yourself. We have used jParameter to make the PureMart compatible both with both J1.5 and j2.5.

This jParameter issue has been discussed in this forum before and the solution has been provided. Also this is not an issue in the new versions of PureMArt (the patch was applied, i believe it has been fixed in PureMart v3.3)

It happens in some joomla templates; but as you have found out, can be fixed as easy as by adding this line:
jimport( 'joomla.html.parameter' );

at the top of PHP file that gives the error.
(At the top of the PHP file; after defined('_JEXEC') or die('Restricted access'); )

Case solved. Topic is closed for clearance.

Regards.
Forum Support.
Last Edit: 11 years 2 months ago by Support.
The topic has been locked.
Time to create page: 0.078 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo