Author Topic: Error: Class 'vRequest' not found  (Read 3356 times)

peter.forensys

  • Beginner
  • *
  • Posts: 13
  • A beginner
Error: Class 'vRequest' not found
« on: November 14, 2019, 14:15:32 pm »
Hi,

I need some help. I updated Virtuemart from 3.4.2 to the latest 3.6.8.
Now If I go to the Components ->  VirtueMart AIO menu item in Joomla, I get this error:

"An error has occurred.
0 Class 'vRequest' not found
/web/salibafiligree/dev/administrator/components/com_virtuemart_allinone/virtuemart_allinone.php:35"

And below that there is a call stack table. I attached photo about it.

I also tried to update by installing the latest version which I downloaded from virtuemart.net, but no change.


System information:

Joomla version: 3.9.13
PHP Version: 7.3.6

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Error: Class 'vRequest' not found
« Reply #1 on: November 14, 2019, 16:41:11 pm »
Explained so many times

there IS NOTHING @ the VirtueMart AIO menu item - it is just there to make the updater work
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

peter.forensys

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Error: Class 'vRequest' not found
« Reply #2 on: November 15, 2019, 09:18:06 am »
Hi.

Thanks for answer. So the error message is normal. But before updating, with the VM 3.4.2 the menu item is working, and shows a table of installed plugins, and there is a button "Update VM plugin tables".  Altough if I press this button, I get the same error.  :)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Error: Class 'vRequest' not found
« Reply #3 on: November 15, 2019, 09:50:20 am »
Quote
shows a table of installed plugins

Hmmm - so do I  - so sorry  - no idea how long that has been there .. I never click that menu

But I don't get the error either on

VirtueMart 3.6.8 10197

try reinstalling the VM core and AIO again
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Error: Class 'vRequest' not found
« Reply #4 on: November 15, 2019, 11:38:38 am »
It is there since many years, GJC.

I dont get the error. Did you update the aio also?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

peter.forensys

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Error: Class 'vRequest' not found
« Reply #5 on: November 19, 2019, 14:36:56 pm »
If I update only Virtuemart component, I get the error too.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Error: Class 'vRequest' not found
« Reply #6 on: November 19, 2019, 15:33:30 pm »
why do u ONLY update the core?

the core and AIO are required to be updated together
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

razor7

  • Jr. Member
  • **
  • Posts: 355
    • MGSCreativa - Professional VM!
Re: Error: Class 'vRequest' not found
« Reply #7 on: November 22, 2019, 14:33:19 pm »
Same error here VM 3.6.8 j! 3.9.13 Upgraded from really old version j! 3.6.5 and VM 3.0.14. Solved it by installing new AIO, then uninstalling it, and then installing it again, after that, the AIO admin menu works!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

peter.forensys

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Error: Class 'vRequest' not found
« Reply #8 on: November 28, 2019, 10:23:21 am »
why do u ONLY update the core?

the core and AIO are required to be updated together

I updated AIO too.

peter.forensys

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Error: Class 'vRequest' not found
« Reply #9 on: November 28, 2019, 10:25:44 am »
Same error here VM 3.6.8 j! 3.9.13 Upgraded from really old version j! 3.6.5 and VM 3.0.14. Solved it by installing new AIO, then uninstalling it, and then installing it again, after that, the AIO admin menu works!

Hmm, this is great. But is it safe to delete AIO?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Error: Class 'vRequest' not found
« Reply #10 on: November 28, 2019, 11:02:13 am »
Removing the AIO compoonent do not remove the plugin and modules.
So you can remove and install, but i think that a simple update using the zip file should work too.
I had many time similar problem(with aio or virtuemart) and install + update after have solve it.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Error: Class 'vRequest' not found
« Reply #11 on: November 28, 2019, 17:18:00 pm »
I worked on that part, that is the reason.

Why all the trouble? It started with tiny changes.

The old vmconfig.php file loaded the vmconfig itself. This was not good. It was not possible to include the config, witout loading it. This leaded to the problem that 3rd party plugins just included the file, but did not executed the loadConfig (despite the manual, btw).

Later I added an extra class, which just registers all VM classes and an extra class initialises the vm language system.

The complex shit started then. It is not possible to set the right language before the router. So system plugins should load the config without initialising the language.

On the other hand, we used a lot ourself the construction, that we included the config only, when the config is not already included. Now we check if the language got set to decide if we must load the language. So in vm3.6.10 it should work again.

So first we had problems with plugins using the vm classes, but did not execute the vmloadConfig.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/