Author Topic: 3.4.2 VirtueMart for updates 3.6.0 errors  (Read 623 times)

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
3.4.2 VirtueMart for updates 3.6.0 errors
« 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

Quote
vmdebug('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

Quote
class 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

   
Quote
foreach ($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

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: 3.4.2 VirtueMart for updates 3.6.0 errors
« Reply #1 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

Quote
Warning: 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) {

Quote
Notice: 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

Quote
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

Quote
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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9742
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: 3.4.2 VirtueMart for updates 3.6.0 errors
« Reply #2 on: September 14, 2019, 20:30:51 pm »
Quote
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

this is from your Rupostel OPC

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