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

TOPIC: Error Notice in Joomla 2.5.22

Error Notice in Joomla 2.5.22 9 years 9 months ago #10313

We are using CleanMart in VM 2.6.6 and Joomla 2.5.22.
We are getting the following:

[08-Jul-2014 22:06:25 America/Denver] PHP Notice: Undefined property: stdClass::$customfieldsCart in /home/provetlo/public_html/templates/rt_stratos/html/com_virtuemart/category/default.php on line 674

What is causing this?

Thank you.
The administrator has disabled public write access.

Error Notice in Joomla 2.5.22 9 years 9 months ago #10327

Hi,

It was a silly mistake we have made, open this PHP fiole:
/templates/rt_stratos/html/com_virtuemart/category/default.php

and look at the 674th line.

you will see this:
<?php if ($product->customfieldsCart || empty($product->prices['salesPrice']) || (($product->product_in_stock - $product->product_ordered) < 1)) {	 ?>

replace it with this:
<?php if (!empty($product->customfieldsCart) || empty($product->prices['salesPrice']) || (($product->product_in_stock - $product->product_ordered) < 1)) {	 ?>

if the issue continues, then replace that with this:
 <?php if (empty($product->prices['salesPrice']) || (($product->product_in_stock - $product->product_ordered) < 1)) {	 ?>

you won't see that error message again.

Regards,
Support
Last Edit: 9 years 9 months ago by Support.
The administrator has disabled public write access.

Error Notice in Joomla 2.5.22 9 years 9 months ago #10394

Thank you for trying. Unfortunately, neither code resolved the issue.

We are now getting the following:

[16-Jul-2014 18:02:31 America/Denver] PHP Notice: Undefined variable: style in /home/provetlo/public_html/modules/mod_flexible_cart/mod_flexible_cart.php on line 112
[16-Jul-2014 18:02:39 America/Denver] PHP Notice: Undefined index: virtuemart_country_id in /home/provetlo/public_html/plugins/vmshipment/istraxx_ups/istraxx_ups.php on line 729
[16-Jul-2014 18:02:39 America/Denver] PHP Notice: Undefined index: virtuemart_country_id in /home/provetlo/public_html/plugins/vmshipment/istraxx_ups/istraxx_ups.php on line 730
[16-Jul-2014 18:02:39 America/Denver] PHP Notice: Undefined variable: response in /home/provetlo/public_html/templates/rt_stratos/html/com_virtuemart/cart/default.php on line 18

Please offer a suggestion.
The administrator has disabled public write access.

Error Notice in Joomla 2.5.22 9 years 9 months ago #10405

Hi,

As you can see from the PHP file paths, 2 of those undefined variable notices aren't caused by our template.

First of all, they are not error messages, they are notifications for the developer (reminder) PHP tells you: "Heey! you forgot to define those variables, are you aware of that?".

The easiest way to get rid of them all is to change the "Error Reporting" from "Development" to "None" (through Joomla Global Configuration).

But if you want to define variables to eliminate the notice messages,
open these 2 PHP files:

/home/provetlo/public_html/modules/mod_flexible_cart/mod_flexible_cart.php
/home/provetlo/public_html/templates/rt_stratos/html/com_virtuemart/cart/default.php


To the top (after <?PHP tag), add these lines
$response = ' ';
$style = ' ';

So, actually you are defining those variables (as blank) and the error messages should be gone.

For more ways to disable error reporting&logging, see these:
siliconstation.com/how-fix-php-notice-undefined-index/
php.net/manual/en/function.error-reporting.php

Regards,
Support
Last Edit: 9 years 9 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.251 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