VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: DivineMercy on October 25, 2016, 10:59:51 AM

Title: Update Order Status Error - JForm::getInstance could not load file
Post by: DivineMercy on October 25, 2016, 10:59:51 AM
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
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: jenkinhill on October 25, 2016, 12:31:19 PM
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.
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: DivineMercy on October 25, 2016, 13:28:11 PM
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

Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: DivineMercy on October 25, 2016, 13:51:06 PM
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
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: jenkinhill on October 25, 2016, 14:51:02 PM
OK so now try Joomla debug - set this on Joomla's Global Configuration/System tab
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: DivineMercy on October 25, 2016, 16:51:33 PM
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


Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: Milbo on October 25, 2016, 21:40:16 PM
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.
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: jenkinhill on October 25, 2016, 23:10:30 PM
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.
Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: DivineMercy on October 26, 2016, 10:20:07 AM
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

Title: Re: Update Order Status Error - JForm::getInstance could not load file
Post by: Jörgen on October 26, 2016, 10:54:53 AM
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