VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: cat1910 on August 28, 2023, 14:50:42 PM

Title: Unable to change the status of an order
Post by: cat1910 on August 28, 2023, 14:50:42 PM
Hi,

I have an eshop migrated from J3 / VM3
Now J4.3.4 / VM 4.2

When I try to change the order status in the backoffice, I get this error :
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

For information, I modified the file /plugins/vmcustom/ordersave/ordersave.php a few days ago because there was on old IsAdmin command.

I replaced line 31 :
   if (!$app->isAdmin()){
by :
   if (!$app->isClient('admin')){

The error "isAdmin" is not there anymore, but now I get  :
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

Can you help ?
Thanks,
Catherine
Title: Re: Unable to change the status of an order
Post by: Jumbo! on August 28, 2023, 17:16:46 PM
plugins/vmcustom/ordersave/ordersave.php is a 3rd party plugin. It is not a part of the core VirtueMart component, and the plugin is incompatible with Joomla 4. Turn off this plugin and try again.
Title: Re: Unable to change the status of an order
Post by: cat1910 on August 28, 2023, 17:57:48 PM
Oh right! Thank you !
Catherine
Title: Re: Unable to change the status of an order
Post by: GJC Web Design on August 29, 2023, 10:41:04 AM
Hi Catherine, have sent the updated ordersave plugin to your email -

It will at least save your orders to the table in the mean time until I get the Reviews ext. updated.

Just install as normal

John