News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Install or if necessary update tables not working

Started by Margriet, May 11, 2023, 12:53:44 PM

Previous topic - Next topic

Margriet

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.


PRO


Margriet

I hate to bump topics, but as this is (in my opinion) a real bug, I hope someone pays attention to this problem.

Margriet

See attachments. List with currency is ok, so data is present in database. But when editing currency all fields are empty!

pimo

I point to this error, it already happened in previous versions.

Antidote

#6
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

Margriet

Install or if necessary update tables is now working with your fix.
I'll create a new topic for my other problems.