Author Topic: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()  (Read 5553 times)

kess

  • Beginner
  • *
  • Posts: 12
  • Currently using VM3.8.4.10 on Joomla3.9.22 PHP 7.2
I'm testing vm2.9.9.2 with Joomla 3.3.6 on a local installation with xampp.

when I go to see the details of an order from the back end I get this:

Fatal error: Call to undefined method VmView::getVmSubLayoutPath() in C:\xampp\htdocs\j3vm299\components\com_virtuemart\helpers\shopfunctionsf.php on line 430

the same with vm 2.9.9.2 with Joomla 2.5.26

thanks



razor7

  • Jr. Member
  • **
  • Posts: 355
    • MGSCreativa - Professional VM!
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #1 on: October 27, 2014, 16:51:27 pm »
The same to me, when accessing order details I get this fatal error Call to undefined method VmView::getVmSubLayoutPath() in components/com_virtuemart/helpers/shopfunctionsf.php on line 430

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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #2 on: October 27, 2014, 18:03:13 pm »
Thank you.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

anderh

  • Beginner
  • *
  • Posts: 4
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #3 on: October 29, 2014, 04:14:18 am »
I have the same problem. Joomla 3.3 with VM 2.9.9.2.
Has anyone ever found a solution?
Grateful.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #4 on: October 29, 2014, 09:49:35 am »
Milbo's thank you is his [shortcode] speak for "am looking - will fix"... assume fixed in the next release
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

robertotaiko

  • Beginner
  • *
  • Posts: 10
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #5 on: October 29, 2014, 16:04:47 pm »
I Solved it, I replace in file /components/com_virtuemart/helpers/shopfunctionsf.php the line 430:          

$lPath = VmView::getVmSubLayoutPath ($name);

For:
      if($name != 'tos'){
         $lPath = VmView::getVmSubLayoutPath ($name);
      }



anderh

  • Beginner
  • *
  • Posts: 4
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #6 on: October 29, 2014, 18:39:11 pm »
GREAT robertotaiko !

subarupr

  • Beginner
  • *
  • Posts: 1
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #7 on: November 04, 2014, 04:06:51 am »
I resolved the problem with the
Fatal error: Call to undefined method VmView::getVmSubLayoutPath() in C:\xampp\htdocs\j3vm299\components\com_virtuemart\helpers\shopfunctionsf.php on line 430

but now i get the error with the terms of service....

what other options i got?  Virtuemart 2.9.9.2

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #8 on: November 04, 2014, 23:01:24 pm »
UPdate!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mooseman

  • Beginner
  • *
  • Posts: 7
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #9 on: October 19, 2015, 20:55:01 pm »
Hi,

this also worked for me but now I get an error on the order screen:

Notice: Undefined variable: lPath in /var/www/clients/client7/web2/web/components/com_virtuemart/helpers/shopfunctionsf.php on line 438

which references:

Code: [Select]
               if($lPath){
                        ob_start ();
                        include ($lPath);
                        return ob_get_clean();
                } else {
                        vmdebug('renderVmSubLayout layout not found '.$name);
                }

any ideas?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
« Reply #10 on: October 19, 2015, 23:49:12 pm »
only a notice but perhaps try

if(isset($lPath)) {
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