News:

Support the VirtueMart project and become a member

Main Menu

Error: com_virtuemart/productdetails/default.php on line 117

Started by Iryn3l, December 11, 2019, 13:05:23 PM

Previous topic - Next topic

Iryn3l

Can anyone help me with this error?

Notice: Array to string conversion in /home/domain/templates/template name/html/com_virtuemart/productdetails/default.php on line 117
Array


And this
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/domain/templates/template name/html/com_virtuemart/category/default.php on line 190

Joomla! 3.9.13 Stable  5-November-2019 15:00 GMT
virtuemart.3.4.5.10040

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

Iryn3l

line 117 :                  echo $productDisplayShipment . '<br />';
            }


Code 115-119 :

         if (is_array($this->productDisplayShipments)) {
            foreach ($this->productDisplayShipments as $productDisplayShipment) {
               echo $productDisplayShipment . '<br />';
            }
         }


(category/default.php on line 190)
this is solved when I change the php variant from 7.3 or 7.2 to 7.1

GJC Web Design

we need to see what the line 117 is on your template php

php version: of course .. its a compatibility warning
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

Iryn3l


GJC Web Design

if u don't use the display of shipping in the product details just comment this stuff out

otherwise look at the latest VM  install prod details template and copy the code
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/