Author Topic: Warning: Declaration of & CustomfieldsForAllFilter  (Read 386 times)

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
Warning: Declaration of & CustomfieldsForAllFilter
« on: August 17, 2019, 22:55:41 pm »
Welcome. Tell me what could be the problem after the update to version 3.9.8 joomla version of VirtueMart 3.4.2 has become such an error, tell me how to fix this situation and what is the problem?!

Warning: Declaration of & CustomfieldsForAllFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) should be compatible with & Joomla\CMS\Filter\InputFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1, $stripUSC = -1) in /home/q/q999/vkuz.rf/public_html/plugins/vmcustom/customfieldsforall/helpers/filter.php on line 0

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9025
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #1 on: August 17, 2019, 23:28:10 pm »
CustomfieldsForAllFilter needs an update/updating to be compatible with  J3.9.8 Joomla\CMS\Filter\InputFilter ( extra parameter )
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

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #2 on: August 18, 2019, 00:56:53 am »
CustomfieldsForAllFilter needs an update/updating to be compatible with  J3.9.8 Joomla\CMS\Filter\InputFilter ( extra parameter )

thank you very much for the answer, did as said and the error is gone... But there is another, could you tell me that me here need to do?
Notice: Undefined index: video in /home/q/q999/vkuz.rf/public_html/templates/gorod/html/com_virtuemart/productdetails/default.php on line 136 Notice: Trying to get property of non-object in /home/q/q999/vkuz.rf/public_html/templates/gorod/html/com_virtuemart/productdetails/default.php on line 136

<?php if($this->product->customfieldsSorted['video'][0]->display) { ?>
    <input id="tab4" type="radio" name="tabs">
    <label for="tab4" title="Видео"><i class="fa fa-video-camera"></i> Видео</label>
   <?php } ?>

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9025
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #3 on: August 18, 2019, 12:36:35 pm »
try

<?php if(isset($this->product->customfieldsSorted['video'][0]->display) ){ ?>

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

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #4 on: August 20, 2019, 15:05:54 pm »
thanks bug gone..

try

<?php if(isset($this->product->customfieldsSorted['video'][0]->display) ){ ?>



balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1375
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #5 on: August 21, 2019, 12:37:11 pm »
Welcome. Tell me what could be the problem after the update to version 3.9.8 joomla version of VirtueMart 3.4.2 has become such an error, tell me how to fix this situation and what is the problem?!

Warning: Declaration of & CustomfieldsForAllFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) should be compatible with & Joomla\CMS\Filter\InputFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1, $stripUSC = -1) in /home/q/q999/vkuz.rf/public_html/plugins/vmcustom/customfieldsforall/helpers/filter.php on line 0

Your version of Custom Fields For All is very old. This was fixed ages ago.

Kind request to the forum members. This is a commercial plugin and the support is offered by it's developers.
By supporting people outside the official channels, you are promoting software piracy that lead to the termination of software development.

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #6 on: August 21, 2019, 13:06:23 pm »
Welcome. Tell me what could be the problem after the update to version 3.9.8 joomla version of VirtueMart 3.4.2 has become such an error, tell me how to fix this situation and what is the problem?!

Warning: Declaration of & CustomfieldsForAllFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) should be compatible with & Joomla\CMS\Filter\InputFilter::getInstance($tagsArray = Array, $attrArray = Array, $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1, $stripUSC = -1) in /home/q/q999/vkuz.rf/public_html/plugins/vmcustom/customfieldsforall/helpers/filter.php on line 0

Your version of Custom Fields For All is very old. This was fixed ages ago.

Kind request to the forum members. This is a commercial plugin and the support is offered by it's developers.
By supporting people outside the official channels, you are promoting software piracy that lead to the termination of software development.
all understood, thank you for the answer.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9025
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #7 on: August 21, 2019, 13:10:54 pm »
Quote
can I ask off topic there are two errors I can't solve them there are masters of their craft tell me how you can solve fix...

as u say -- off topic .. these are nothing to do with VM .. this is a VM forum .. not basic php forum...

the solutions are in the warning and notice
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

honnibal

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #8 on: August 22, 2019, 23:08:32 pm »
Welcome. Prompt in what there was a problem how to correct?

Warning: array_reverse() expects parameter 1 to be array, boolean given in /home/q/q999/vkuz.rf/public_html/administrator/components/com_virtuemart/models/category.php on line 705 Warning: Invalid argument supplied for foreach() in /home/q/q999/vkuz.rf/public_html/administrator/components/com_virtuemart/models/category.php on line 719

   $parents_id = array_reverse($this->getCategoryRecurse($virtuemart_category_id,$menuCatid)); ----line 705


      //$useFb = vmLanguage::getUseLangFallback();
      //$useFb2 = vmLanguage::getUseLangFallbackSecondary();

      $langFields = array('virtuemart_category_id','category_name');

      $select = 'SELECT '.implode(', ',self::joinLangSelectFields($langFields)).', published';
      $joins = 'FROM `#__virtuemart_categories` as c '.implode(' ',self::joinLangTables('#__virtuemart_categories','c','virtuemart_category_id'));

      $where = 'WHERE '.implode(', ',self::joinLangSelectFields(array('virtuemart_category_id'),false)).' = ';
      $q = $select.' '.$joins.' '.$where;

      foreach ($parents_id as $id ) { ------line 719


Warning: Invalid argument supplied for foreach() in /home/q/q999/vkuz.rf/public_html/components/com_virtuemart/router.php on line 969 Warning: Invalid argument supplied for foreach() in /home/q/q999/vkuz.rf/public_html/components/com_virtuemart/router.php on line 1011

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

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3973
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Warning: Declaration of & CustomfieldsForAllFilter
« Reply #9 on: August 23, 2019, 00:52:28 am »
Disable error reporting and wait for next release, this are only warnings. But thanks for report.