VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: honnibal on September 12, 2019, 23:16:58 PM

Title: 3.4.2 VirtueMart for updates 3.6.0 errors
Post by: honnibal on September 12, 2019, 23:16:58 PM
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
Title: Re: 3.4.2 VirtueMart for updates 3.6.0 errors
Post by: honnibal on September 14, 2019, 20:26:25 PM
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
Title: Re: 3.4.2 VirtueMart for updates 3.6.0 errors
Post by: GJC Web Design on September 14, 2019, 20:30:51 PM
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