No Code Attached Yet Information Required bug
avatar PhocaCz
PhocaCz
10 Jul 2022

Steps to reproduce the issue

When using advanced search and filter, searching something with filter enabled (for example set language to all - see screenshot)

bug

will produce this warning:

Warning: Array to string conversion in modules/mod_finder/src/Helper/FinderHelper.php on line 48

Following foreach gets array instead of string in $v variable.

foreach ($uri->getQuery(true) as $n => $v)
		{
			$fields[] = '<input type="hidden" name="' . $n . '" value="' . $v . '">';
		}

Expected result

  • no warning, managing the value in array, not the string

Actual result

  • Warning: Array to string conversion in modules/mod_finder/src/Helper/FinderHelper.php on line 48

System information (as much as possible)

Joomla 4.1.5
PHP 8.1.6

avatar PhocaCz PhocaCz - open - 10 Jul 2022
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jul 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Jul 2022
avatar Fedik
Fedik - comment - 11 Jul 2022

how did you get language filter there? I do not have :)
However I tried with other fields: Type, Author, and did not get such error

avatar PhocaCz
PhocaCz - comment - 11 Jul 2022

how did you get language filter there? I do not have :)

When some of finder plugin has this rule:

$item->addTaxonomy('Language', $item->language);
avatar andrescmhz
andrescmhz - comment - 30 Jul 2022

I have the same problem

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar Hackwar
Hackwar - comment - 27 Feb 2023

Is this still an issue? The line referenced here is now an empty line and I did fix some issuers there some time ago.

avatar Quy Quy - change - 27 Feb 2023
Labels Added: Information Required
avatar Quy Quy - labeled - 27 Feb 2023
avatar Hackwar
Hackwar - comment - 9 Mar 2023

Closing since there has been no response in the last 10 days. I'm rather certain that the bug has been fixed in the past already.

avatar Hackwar Hackwar - close - 9 Mar 2023
avatar Hackwar Hackwar - change - 9 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-09 11:30:56
Closed_By Hackwar

Add a Comment

Login with GitHub to post a comment