VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: kess on October 26, 2014, 20:49:36 PM

Title: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: kess on October 26, 2014, 20:49:36 PM
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


Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: razor7 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

Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: Milbo on October 27, 2014, 18:03:13 PM
Thank you.
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: anderh 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.
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: GJC Web Design 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
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: robertotaiko 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);
      }


Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: anderh on October 29, 2014, 18:39:11 PM
GREAT robertotaiko !
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: subarupr 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
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: Milbo on November 04, 2014, 23:01:24 PM
UPdate!
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: mooseman 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:

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


any ideas?
Title: Re: Fatal error: Call to undefined method VmView::getVmSubLayoutPath()
Post by: GJC Web Design on October 19, 2015, 23:49:12 PM
only a notice but perhaps try

if(isset($lPath)) {