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

Update Order Status Error - JForm::getInstance could not load file

Started by DivineMercy, October 25, 2016, 10:59:51 AM

Previous topic - Next topic

DivineMercy

Hi,

After upgrading Joomla to 3.6.3 a few days ago, we are getting an error message "JForm::getInstance could not load file" when we "update the order status".

The 'delete' button next to 'Update Order Status" works fine. We have Virtuemart 3.0.18, which is the current version.

Anyone else have this problem?

Appreciate any help, thanks

jenkinhill

JForm::getInstance could not load file  can be caused by many different things. Were you previously using Joomla 3.6.2?

Turn on VM debug to see if that helps.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

DivineMercy

Thanks Jenkinhill,

Yes, I was previously using Joomla 3.6.2 and I updated the joomla package last Friday to the latest version, Joomla 3.6.3.

I checked the logs, but there doesn't seem to be any information indicating the error.

How do you turn on the VM Debug?

Thanks


DivineMercy

Update: I found the debugging section in Virtuemart and enabled the debug messages.

I replicated the error by trying to "Update Order Status", but it just returned the original error message and the debug messages seemed to be bypassed and didn't report on this error. Not sure if that information helps.

I'm using: PHP 5.6.25  /  Joomla 3.6.3  / Virtuemart 3.0.18

Thanks

jenkinhill

OK so now try Joomla debug - set this on Joomla's Global Configuration/System tab
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

DivineMercy

Thanks, I ran the Joomla debug system and replicated the problem again and it returned this message, but I don't really understand what the error could be.

Thanks.

Call stack
#   Function   Location
1   JApplicationCms->execute()      
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/index.php:51

2   JApplicationAdministrator->doExecute()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/application/cms.php:261

3   JApplicationAdministrator->dispatch()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/application/administrator.php:152

4   JComponentHelper::renderComponent()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/application/administrator.php:98

5   JComponentHelper::executeComponent()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/component/helper.php:380

6   require_once()         
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/component/helper.php:405

7   JControllerLegacy->execute()      
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/virtuemart.php:78

8   VirtuemartControllerOrders->updatestatus()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/legacy/controller/legacy.php:702

9   VirtueMartModelOrders->updateOrderStatus()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/controllers/orders.php:190

10   VirtueMartModelOrders->updateStatusForOneOrder()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/models/orders.php:719

11   JPluginHelper::importPlugin()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/models/orders.php:777

12   JPluginHelper::import()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/plugin/helper.php:170

13   plgVmPaymentHeidelpay->__construct()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/libraries/cms/plugin/helper.php:255

14   vmPSPlugin->getVarsToPush()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/plugins/vmpayment/heidelpay/heidelpay.php:34

15   vmPlugin::getVarsToPushByXML()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/plugins/vmpsplugin.php:45

16   JForm::getInstance()   
   /var/www/vhosts/24/150460/webspace/httpdocs/j25.divinemercy.org/administrator/components/com_virtuemart/plugins/vmplugin.php:201



Milbo

Do you actually use heidelpay? If not, just unpublish it. I cant find any error here, but I did not test to update an order which used heidelpay.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

Yes, I have never seen the error - I always unpublish the payment plugins not required, including heidelpay.  There are odd reports of errors being introduced with "upgrading" to Joomla 3.6.3  - and today we have to update to J3.6.4 so I wonder if some of those errors will go away.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

DivineMercy

Hi Jenkinhill,

I unpublished the payment methods that we don't use and then the "Update Order Status" worked. Strange one!

I updated to Joomla 3.8.4 after that test and it continued to work.

Seems weird that the published, but unused, payment methods would cause such an error. But lesson learnt!

Just want to sincerely thank you for all your help. Your a gentleman!

Take care


Jörgen

Hello

This should actually not happen. Each payment plugin should check if the data used is actually for that plugin. This paymentplugin simply doesn´t have that check and has to be disabled. Disabling unused plugins is anyway a good thing to do. You actually stop extra code from running that is not needed.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.