Author Topic: VM3.2.1: Loads of Warning & Notices showing although error reporting off  (Read 2384 times)

nordmograph

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 164
    • Nordmograph
  • VirtueMart Version: 3 on Joomla3
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7514
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

welrachid

  • Jr. Member
  • **
  • Posts: 166
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7514
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Quote
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

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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9313
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Heavens, GJC, please use vm

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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9313
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
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

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

Code: [Select]
if(is_array($product_price){

to

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

Uglystick

  • Beginner
  • *
  • Posts: 6
  • A beginner
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7514
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Uglystick

  • Beginner
  • *
  • Posts: 6
  • A beginner
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7514
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9313
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Uglystick

  • Beginner
  • *
  • Posts: 6
  • A beginner
Awesome. Thanks for your help! :D

nordmograph

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 164
    • Nordmograph
  • VirtueMart Version: 3 on Joomla3
Thanks Milbo

Tentaurus

  • Beginner
  • *
  • Posts: 48
...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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7514
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
if they are the same errors find what is calling  ->  JHtml::stylesheet ()
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation