VM3.2.1: Loads of Warning & Notices showing although error reporting off

Started by nordmograph, April 26, 2017, 11:45:50 AM

Previous topic - Next topic

nordmograph

Hello

Is there a new error reporting switch I missed ??
On product details page, when product is free I get
Notice: Undefined index: salesPriceTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: priceWithoutTaxTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: discountAmountTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: taxAmountTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267


Also on order details (Frontend)

Warning: Illegal string offset 'relative' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 620
Warning: Illegal string offset 'pathOnly' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 621
Warning: Illegal string offset 'detectBrowser' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 622
Warning: Illegal string offset 'detectDebug' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 623
Warning: Illegal string offset 'relative' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'detectBrowser' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'detectDebug' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'pathOnly' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 629

Is there a new switch I miseed ?

I need these off quick !

Thanks for your help

Joomla 3.7 - VM3.2.1 - PHP7

GJC Web Design

try
error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );

in the Joomla root index.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

welrachid

That wont help. Tried it - no luck.
unfortunately i was only able to remove these erros by doing as described here:
https://forum.virtuemart.net/index.php?topic=137361.0

i hate to hack core files, but this i had to until VM somehow fixes the error.
Best regards,
Wel

GJC Web Design

QuoteWarning: Illegal string offset 'relative' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 620
Warning: Illegal string offset 'pathOnly' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 621
Warning: Illegal string offset 'detectBrowser' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 622
Warning: Illegal string offset 'detectDebug' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 623
Warning: Illegal string offset 'relative' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'detectBrowser' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'detectDebug' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 626
Warning: Illegal string offset 'pathOnly' in /home/xxx/public_html/extensions/libraries/cms/html/html.php on line 629

these come from VM template files that use JHtml::stylesheet ()

e.g. in components\com_virtuemart\views\user\tmpl\edit_address.php  line 23

e.g.  JHtml::stylesheet ('vmpanels.css', JURI::root () . 'components/com_virtuemart/assets/css/');

replace with

$url= JURI::root () . 'components/com_virtuemart/assets/css/vmpanels.css';
      $document = JFactory::getDocument();
   $document->addStyleSheet($url);
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

Heavens, GJC, please use vm

vmJsApi::css('vmpanels');
So the answer is just to remove the old shit and use our standard stuff
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Quote from: nordmograph on April 26, 2017, 11:45:50 AM
Notice: Undefined index: salesPriceTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: priceWithoutTaxTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: discountAmountTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267
Notice: Undefined index: taxAmountTt in /home/xxx/public_html/extensions/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 267

Another one has

Quote from: welrachid on April 28, 2017, 11:55:12 AM
And my error logs show this:
PHP Notice:  Undefined index: priceWithoutTaxTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: discountAmountTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: taxAmountTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: salesPriceTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323

I changed now in line 321


if(is_array($product_price){


to


if(is_array($product_price)){
if(isset($product_price[$name])){
$price = $product_price[$name] ;
} else {
return '';
}
} else {
$price = $product_price;
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Uglystick

Hi, I have the same error, and shows in my invoices...

Warning: Illegal string offset 'relative' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php on line
620
Warning: Illegal string offset 'pathOnly' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php on
line 621
Warning: Illegal string offset 'detectBrowser' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php
on line 622
Warning: Illegal string offset 'detectDebug' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php
on line 623
Warning: Illegal string offset 'relative' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php on line
626
Warning: Illegal string offset 'detectBrowser' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php
on line 626
Warning: Illegal string offset 'detectDebug' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php
on line 626
Warning: Illegal string offset 'pathOnly' in /home/xxxx/public_html/ebonyoutlet.co.nz/libraries/cms/html/html.php on
line 629

I have no hard hacks, this has only appeared after installing com_virtuemart.3.2.1_ext_aio file  :'(


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Uglystick

Ok, sorry I'm still learning,

So I replace the whole of Line 23 in components\com_virtuemart\views\user\tmpl\edit_address.php?

JHtml::stylesheet ('vmpanels.css', JURI::root () . 'components/com_virtuemart/assets/css/');

with

$url= JURI::root () . 'components/com_virtuemart/assets/css/vmpanels.css';
      $document = JFactory::getDocument();
   $document->addStyleSheet($url);

Or just from the JURI::root () like below?

JHtml::stylesheet ('vmpanels.css', JURI::root () . 'components/com_virtuemart/assets/css/vmpanels.css';
      $document = JFactory::getDocument();
   $document->addStyleSheet($url);

GJC Web Design

just replace

JHtml::stylesheet ('vmpanels.css', JURI::root () . 'components/com_virtuemart/assets/css/');

with

vmJsApi::css('vmpanels');
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Uglystick



Tentaurus

...I get these warnings not in the FE but in the BE of a component (Wawi connector)!
In this case the VM template can't be the issue?!

Warnings disappears when I switch off error reporting!
PHP settings are display_errors = On

Thanks for a hint!
Matthias


GJC Web Design

if they are the same errors find what is calling  ->  JHtml::stylesheet ()
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation