Top Menu

Welcome, Guest

TOPIC: Exporter for VirtueMart error: Undefined Property

Exporter for VirtueMart error: Undefined Property 30 Nov 2017 19:55 #2786

Hi, lately I've been getting the following notice on my feeds generated from this plugin. (path shortened for readability)
Notice: Undefined property: calculationHelper::$sg in */virtuemart_xml_csv_html_json_exporter.php on line 83

Here is that section on the php script.
public function fillProductPrices(&$pr,$quantity = 0){
		if(!$this->INSTANCE->sg && $quantity <= 1){
			$pr->prices = $this->INSTANCE->getProductPrices($pr,0,1);
			
		}else{
			
			if(!isset($this->prod_prices[$pr->virtuemart_product_id])){
				
				$this->prod_prices[$pr->virtuemart_product_id] = array();
				
				if(!$this->db){
					$this->db = JFactory::getDBO();
				}

Any idea on why this would be thrown now?
The administrator has disabled public write access.

Exporter for VirtueMart error: Undefined Property 01 Dec 2017 18:42 #2788

Really, if the notice could just not be inserted into the feed (which breaks it), then that would work for now.

Here is a sample of the output xml. The products all show up, but the notices in between are what is preventing this from working.
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
<title>Utility Tri-State, Inc Online Catalog</title>
<link rel="self" href="https://utilitytristate.com/"/>
<entry>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<br/>
<b>Notice</b>
: Undefined property: calculationHelper::$sg in
<b>
/var/www/utilitytristate.com/plugins/system/virtuemart_xml_csv_html_json_exporter/virtuemart_xml_csv_html_json_exporter.php
</b>
on line
<b>83</b>
<br/>
<id>12133</id>
<title>TR10403</title>
<brand>2014 Utility</brand>
<image_link>
https://utilitytristate.com/images/stories/virtuemart/product/TR10403 (1).jpg
</image_link>
<price>40,950.00</price>
<link>
https://utilitytristate.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=12133&virtuemart_category_id=14
</link>
<availability>in stock</availability>
<condition>used</condition>
<description>
For more information and pictures, please visit our website - <ul><li>Air-Ride</li><li>Smart Truck</li><li>PSI tire inflation system</li><li>Tire protection plates</li><li>16 in. scuff</li><li>Stainless front corners</li><li>Corrugated sides</li><li>2-5-5-5 light package</li><li>4 STT</li><li>22.5LP on Aluminum wheels</li></ul>
<b>-- Trailer location: North Little Rock</b>
</description>
<br/>
The administrator has disabled public write access.

Exporter for VirtueMart error: Undefined Property 04 Dec 2017 13:29 #2795

Answer is same as for other question:

You should turn error reporting to normal. This is just a notice.
We also did react and made new build without this notice you can download fresh version from your download url.
The administrator has disabled public write access.

Exporter for VirtueMart error: Undefined Property 04 Dec 2017 16:06 #2796

Do you mean error reporting in the plugin? Because error reporting on the site has been set to "none" for quite some time.
The administrator has disabled public write access.

Exporter for VirtueMart error: Undefined Property 04 Dec 2017 17:31 #2797

There is joomla setting for that and system setting. Check effective value.
If you got this morning version 1.0.10 you should not see notices.
The administrator has disabled public write access.
Time to create page: 0.037 seconds