News:

Support the VirtueMart project and become a member

Main Menu

3.4.2 VirtueMart for updates 3.6.0 errors

Started by honnibal, September 12, 2019, 23:16:58 PM

Previous topic - Next topic

honnibal

Welcome. After upgrading to version 3.6.0 errors appeared

Warning: count(): Parameter must be an array or an object that implements Countable in /home/q/q99rp/vku.do/public_html/components/com_virtuemart/helpers/cart.php on line 260 Warning: count(): Parameter must be an array or an object that implements Countable in /home/q/q99rp/vku.do/public_html/components/com_virtuemart/helpers/cart.php on line 262 Warning: count(): Parameter must be an array or an object that implements Countable in /home/q/q99rp/vku.do/public_html/components/com_virtuemart/helpers/cart.php on line 268

Quotevmdebug('my setupAddressFieldsForCart $countBT $this->byDefaultBT',(int)$countBT, (int) count($this->byDefaultBT)); ----260 line
         //Check if the address is already loaded
         if( (count($this->BT) - count($this->cartfields)) > count($this->byDefaultBT) ){ ----262 line
            $loadBT = false;
         }

         $loadST = true;
         $selected_shipto = vRequest::getVar('shipto', $this->selected_shipto);
         if( $selected_shipto==$this->selected_shipto and count($this->ST) > count($this->byDefaultST) ){ ----268 line

Warning: Declaration of VirtueMartViewCart::prepareContinueLink() should be compatible with VmView::prepareContinueLink($product = false) in /home/q/q99rp/vku.do/public_html/components/com_onepage/overrides/virtuemart.cart.view.html.php on line 77

Quoteclass VirtueMartViewCart extends VmView {


Warning: Invalid argument supplied for foreach() in /home/q/q99rp/vku.do/public_html/components/com_virtuemart/router.php on line 986 Warning: Invalid argument supplied for foreach() in /home/q/q99rp/vku.do/public_html/components/com_virtuemart/router.php on line 1028

   
Quoteforeach ($CatParentIds as $CatParentId) {
   foreach ($parent_ids as $id ) {

Warning: array_reverse() expects parameter 1 to be array, boolean given in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/models/category.php on line 710 Warning: Invalid argument supplied for foreach() in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/models/category.php on line 724 Warning: Invalid argument supplied for foreach() in

Quote$parents_id = array_reverse($this->getCategoryRecurse($virtuemart_category_id,$menuCatid));
foreach ($parents_id as $id ) {

help with errors how to fix them up version 3.4.2 everything worked without errors. php version 7.2

honnibal

did updating to version 3.6.1.10144 some errors went away but remained in that format.
http://dev.virtuemart.net/attachments/1181/com_virtuemart.3.6.1.10144_package_or_extract.zip

QuoteWarning: explode() expects parameter 2 to be string, array given in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/helpers/vmtable.php on line 569 Warning: Invalid argument supplied for foreach() in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/helpers/vmtable.php on line 570
$params = explode('|', $obj->$xParams);
            foreach ($params as $item) {

QuoteNotice: Undefined variable: title in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/views/product/tmpl/product_edit_custom.php on line 117
'.$title.' '.$text.' - 117 line

QuoteWarning: Declaration of VirtueMartViewCart::prepareContinueLink() should be compatible with VmView::prepareContinueLink($product = false) in /home/q/q99rp/vku.do/public_html/components/com_onepage/overrides/virtuemart.cart.view.html.php on line 77

QuoteWarning: array_reverse() expects parameter 1 to be array, boolean given in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/models/category.php on line 710 Warning: Invalid argument supplied for foreach() in /home/q/q99rp/vku.do/public_html/administrator/components/com_virtuemart/models/category.php on line 724

GJC Web Design

QuoteWarning: Declaration of VirtueMartViewCart::prepareContinueLink() should be compatible with VmView::prepareContinueLink($product = false) in /home/q/q99rp/vku.do/public_html/components/com_onepage/overrides/virtuemart.cart.view.html.php on line 77

this is from your Rupostel OPC

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