VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Zoi on May 17, 2022, 17:44:48 PM

Title: An error has occurred. 0 Call to undefined method TableProducts::setDateFields()
Post by: Zoi on May 17, 2022, 17:44:48 PM
Hello Virtuemart Forum

VirtueMart 4.0.2 10661
Joomla version, 3.10.9
Php version 7.4

We are facing an issue with a clients e-shop

The issue in the following steps:
log in to the administration area of virtuemart
--> Products (all products are shown)
--> We choose category filter (category products are shown)
-->We choose in category filter "Select product category" where all products previously shown
--> We no longer see all products but just a few

We tested the website in our previously backed up versions and we found the following error:
An error has occurred.
0 Call to undefined method TableProducts::setDateFields()

We noticed that the issue happened after to Virtuemart 4.0 update

We need help fixing this error
Title: Re: An error has occurred. 0 Call to undefined method TableProducts::setDateFields()
Post by: GJC Web Design on May 17, 2022, 18:34:43 PM
post the full trace

http://forum.virtuemart.net/index.php?topic=117042.0
Title: Re: An error has occurred. 0 Call to undefined method TableProducts::setDateFields()
Post by: jjk on June 03, 2022, 19:10:22 PM
I would suggest to try the button 'Install or if necessary update tables' in the 'Tools & Migration' view and from the top menu use 'System' > 'Clear Cache' > 'Delete all'.
I followed your steps, but can't reproduce your problem in my installations.
Title: Re: An error has occurred. 0 Call to undefined method TableProducts::setDateFields()
Post by: GJC Web Design on June 03, 2022, 21:36:10 PM
see-> https://forum.virtuemart.net/index.php?topic=148335.msg529300#msg529300

this should fix it...
Title: Re: An error has occurred. 0 Call to undefined method TableProducts::setDateFields()
Post by: Milbo on June 17, 2022, 10:50:32 AM
Quote from: Zoi on May 17, 2022, 17:44:48 PM
We tested the website in our previously backed up versions and we found the following error:
An error has occurred.
0 Call to undefined method TableProducts::setDateFields()

When does this happen?