VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: honnibal on August 17, 2019, 22:55:41 PM

Title: Warning: Declaration of & CustomfieldsForAllFilter
Post by: honnibal 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
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design 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 )
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: honnibal on August 18, 2019, 00:56:53 AM
Quote from: GJC Web Design 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 )

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="ВиSPAMео"><i class="fa fa-video-camera"></i> ВиSPAMео</label>
   <?php } ?>
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design on August 18, 2019, 12:36:35 PM
try

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

Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: honnibal on August 20, 2019, 15:05:54 PM
thanks bug gone..

Quote from: GJC Web Design on August 18, 2019, 12:36:35 PM
try

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


Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: balai on August 21, 2019, 12:37:11 PM
Quote from: honnibal 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

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.
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: honnibal on August 21, 2019, 13:06:23 PM
Quote from: balai on August 21, 2019, 12:37:11 PM
Quote from: honnibal 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

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.
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design on August 21, 2019, 13:10:54 PM
Quotecan 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
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: honnibal 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 ) {
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: Studio 42 on August 23, 2019, 00:52:28 AM
Disable error reporting and wait for next release, this are only warnings. But thanks for report.
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: MySigma on February 04, 2020, 10:48:03 AM
Quote from: GJC Web Design 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 )

Hello!

Could you please explain how to upgrade/update "CustomfieldsForAllFilter". I didn't find any documentation about. The VM-installation of a customer is also creating a lot of warning messages within the logs.

Thank you and best regards,
Manfred
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design on February 04, 2020, 10:53:15 AM
Its commercial software .. ask at the correct forum please
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: MySigma on February 04, 2020, 12:05:03 PM
Quote from: GJC Web Design on February 04, 2020, 10:53:15 AM
Its commercial software .. ask at the correct forum please

Sorry, I'm new to VirtueMart and therefore I'm maybe asking dumb questions. What is a commercial software, "CustomfieldsForAllFilter"? What would be the correct forum for my question?

Thank you!
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design on February 04, 2020, 12:14:08 PM
https://lmgtfy.com/?q=CustomfieldsForAllFilter
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: MySigma on February 04, 2020, 12:24:19 PM
Just for clarification, I've already googled for "CustomfieldsForAllFilter" BEFORE asking here and you should know that your search results need not to be the same as mine.

Using your link brings up following links:
* Atlassian Support for Jira Software
* Live Search and Custom Fields - WordPress
* Excel Pivot tables
* some links to Microsoft
* to a website for Australian antiques
* ...

Using "my google-settings":
* FIRST position search result: this forum thread!!

What would you have done in this case? Just posting the link to the manufacturer of "CustomfieldsForAllFilter" isn't an option?

Best regards,
Manfred

Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: balai on February 04, 2020, 12:46:54 PM
There is no extension named CustomfieldsForAllFilter.

It is either Custom Fields For All
Or Custom Filters
https://breakdesigns.net/extensions
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: GJC Web Design on February 04, 2020, 12:47:31 PM
https://breakdesigns.net/extensions/joomla/custom-fields-for-all
Title: Re: Warning: Declaration of & CustomfieldsForAllFilter
Post by: MySigma on February 04, 2020, 12:53:21 PM
Thank you very much for the link!!

Best regards,
Manfred