VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Margriet on May 11, 2023, 12:53:44 PM

Title: Install or if necessary update tables not working
Post by: Margriet on May 11, 2023, 12:53:44 PM
VM 4.0.20.10849
Joomla 4.3.1
Button Install or if necessary update tables throws error
Quote0 Call to a member function getPrefix() on null
Debug shows error in
QuoteJROOT\administrator\components\com_virtuemart\install\script.virtuemart.php:98
Tested on clean install with VM sample data.
Installed VM again, but that is not the solution
There is at least an error with currency table. When trying to edit a currency all fields are empty.
And with sub categories. When opening sub category parent category immediately changes to Top Level Category.
Title: Re: Install or if necessary update tables not working
Post by: rdcustom on May 11, 2023, 13:14:25 PM
same problem here
Title: Re: Install or if necessary update tables not working
Post by: PRO on May 11, 2023, 17:38:50 PM
ok, so atleast its not me
Title: Re: Install or if necessary update tables not working
Post by: Margriet on May 16, 2023, 11:23:07 AM
I hate to bump topics, but as this is (in my opinion) a real bug, I hope someone pays attention to this problem.
Title: Re: Install or if necessary update tables not working
Post by: Margriet on May 24, 2023, 17:17:00 PM
See attachments. List with currency is ok, so data is present in database. But when editing currency all fields are empty!
Title: Re: Install or if necessary update tables not working
Post by: pimo on May 26, 2023, 17:04:48 PM
I point to this error, it already happened in previous versions.
Title: Re: Install or if necessary update tables not working
Post by: Antidote on June 06, 2023, 07:58:55 AM
Found a temporary solution for this error. The developer removed the line $this->_db = JFactory::getDBO(); as it is deprecated for PHP8.2. Perhaps for PHP8.2 the developer's solution will work, but I have PHP8.05 installed and I returned this line back.

https://forum.virtuemart.net/index.php?topic=150077.msg536113#msg536113
Title: Re: Install or if necessary update tables not working
Post by: Margriet on June 06, 2023, 10:17:13 AM
Install or if necessary update tables is now working with your fix.
I'll create a new topic for my other problems.