VM invoice gives warnings but no warnings on frontend

Started by welrachid, May 01, 2017, 11:28:13 AM

Previous topic - Next topic

welrachid

Joomla set not to show warnings, but when i click invoice i get a lot of warnings.
any ideas how to make that disabled aswell?


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


J!3.7
VM3.2.1
PHP5.6.24
Best regards,
Wel

welrachid

Okay.. very weird.
Somehow these errors are caused by the "2nd" parameter to the jhtml::stylesheet method which is getting a STRING when expected an array
I got a
http://example.dk/components/com_virtuemart/assets/css/

where i should have had an array.

I made a core-hack fix, until i know why this is happening..
I've replaced libraries/cms/html/html.php line 617
BEFORE:
}
AFTER:
      }elseif(!is_array($options)){$options = array('relative' => false, 'pathOnly' => false,'detectBrowser' => true, 'detectDebug'=>true);}


Im not sure if its a template-thing or not..
but i've been using vmbeez5 as basis.
Best regards,
Wel

Milbo

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

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

mickey3k

Are there more lines in some files where we have to replace with vmJsApi? I replaced line 23 in edit_address.php but the error messages are still showing.

Only with welrachid's core hack can I get rid of them, but every Joomla Update resets this line.

GJC Web Design

Not in vm3.2.2 but there could easily be in your over rides
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