VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: niosme on December 06, 2022, 09:37:05 AM

Title: Search Administration Error
Post by: niosme on December 06, 2022, 09:37:05 AM
->First
In administration when we select manufacturer from filter and then we try to search something from the search input
e.g. we first select a Manufacturer from the list in products and then we try to search a product by typing some characters it throws this error.

Error
vmError: exeSortSearchListQuery Unknown column '#__virtuemart_product_manufacturers.virtuemart_manufacturer_id' in 'where clause'

->Second
Also when we search something we found it we click the product do whatever we want and then save and close the product the search resets and shows all products again but the search still have the query we searched.

In joomla 3.10.11 with virtuemart 4.0.8 10748 but same with Joomla 4.2.5.
Title: Re: Search Administration Error
Post by: Milbo on December 06, 2022, 22:03:02 PM
hmm "virtuemart_manufacturer_id" should be removed. I wonder the vm config should be updated by the installer. But just to be sure. Go to the vm config and just store it one time. the search for manufacturer name should be removed and it should work.
But maybe I did an error and I did not consider the case with manufactuere and keyword correctly. So if it works if you store the vm config once, there is not really something todo.
Title: Re: Search Administration Error
Post by: niosme on December 07, 2022, 13:01:38 PM
I go to the configuration and saved it. Retry and same error shows up.
Is only the search combination with manufacturer and keyword in which something is happening there.
Title: Re: Search Administration Error
Post by: Milbo on December 08, 2022, 23:11:42 PM
Thank you, damn I did the release and forgot about this error. Grmbl :-) But we found so many, next time. But I take a look, at least for a "forum patch" or so.
Title: Re: Search Administration Error
Post by: Milbo on December 09, 2022, 00:03:55 AM
product model in /administrator/components/com_virtuemart/models/product.php
line 920

replace

if ( ($joinMf == TRUE or $joinMfLang) and $keyword == false) {


against


if ( ($joinMf == TRUE or $joinMfLang) ) {
Title: Re: Search Administration Error
Post by: niosme on December 12, 2022, 07:41:58 AM
Yes. The problem is solved like this but the problem still exists in 4.0.10.10767 ! Thanks a lot!
Title: Re: Search Administration Error
Post by: niosme on January 26, 2023, 08:29:26 AM
Hey. This problem exists again in 4.0.12 :'(

Also as we speaking for search if we search something and we click a product,then save and close,then we got all the results like we have no filters but filters stay on top.
Title: Re: Search Administration Error
Post by: hazael on January 27, 2023, 11:10:48 AM
Make sure the manufacturer's name is written for each language version.
The easiest way is to compare the number of manufacturer's names in the Greek version and in the English version. You should have the same.

---------
PS.
Milbo - I think you went too far with the number of posts. - I see that the forum has run out of new badges for you  ;D
Title: Re: Search Administration Error
Post by: niosme on February 09, 2023, 12:13:50 PM
It looks like it works fine! Maybe it was an outdated file tha caused the problem from older version.
Thanks