VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Levis on November 21, 2013, 01:43:58 AM

Title: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Levis on November 21, 2013, 01:43:58 AM
Hi

After updating Virtuemart to the version 2.0.24b, I get a blank page with the following message.

Fatal error: Class 'shopfunctionsF' not found in /home/myuser/public_html/components/com_virtuemart/views/virtuemart/view.html.php on line 158

I tryed different Menu Item Type but with no success.  Do you know what could cause this fatal error?
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Milbo on November 21, 2013, 11:59:27 AM
No, the shopfunctionsF is loaded in the virtuemart main controller. If it is not there it seems that you access the virtuemart view without option=com_virtuemart, very strange.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 21, 2013, 13:37:52 PM
I have a similar problem, it's a capitalisation (capitalization) thing! shopFunctionF is not the same as shopfunctionF. Is there a PHP directive to allow this?
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Milbo on November 21, 2013, 14:24:40 PM
oh damn, yes, maybe that is the reason, which php version do you use?
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 21, 2013, 14:40:28 PM
PHP version 5.3.10
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Milbo on November 21, 2013, 14:42:58 PM
omg, not again this version. This version is doing trouble all the time. Please update your php to 5.3 latest.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 21, 2013, 14:53:06 PM
I'll have a go at updating the PHP version (and might go quiet for a few days!).

By the way, the capitalisation might have been a red herring. I hacked shopfunctionsF to shopFunctionsF and sill got the Fatal error: Class 'shopFunctionsF' not found in /var/www/vhosts/*****.com/httpdocs/components/com_virtuemart/views/virtuemart/view.html.php on line 158.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Levis on November 21, 2013, 16:06:41 PM
This website is on PHP Version 5.2.17

For now I have revert back to the previous version 2.0.24a until this issue is found and solved. 


Best Regards,
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 21, 2013, 16:08:38 PM
More information - another VM site of mine works fine on 2.0.22c and PHP 5.3.10 so maybe the version of PHP was a red herring...
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 21, 2013, 16:21:03 PM
I added ...
if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); //dont remove that file it is actually in every view

to the top of view.html.php and **without an exhaustive test** all seems ok.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: j37h3r on November 22, 2013, 19:50:32 PM
This also effects 2.0.24c  :'( :'( :'( :'( :'( :'( :'(
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: biolog on November 24, 2013, 23:59:20 PM
I'm using php 5.3.3-7+squeeze17 and I have the same blank page with VM 2.0.24c....
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: GJC Web Design on November 25, 2013, 10:39:31 AM
You have to find WHAT that fatal error is - logs, ask your host etc etc - all errors will be logged somewhere - then your 80% towards finding the problem..
Just report a white page (500 error) and no one can help you..
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 26, 2013, 10:35:59 AM
GJC Web Design, a few posts before yours I reported that I still got the Fatal error: Class 'shopFunctionsF' not found in /var/www/vhosts/*****.com/httpdocs/components/com_virtuemart/views/virtuemart/view.html.php on line 158. Does that help you identify the fatal error?
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: GJC Web Design on November 26, 2013, 10:47:48 AM
but didn't you fix it?

QuoteI added ...
Code: [Select]
if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); //dont remove that file it is actually in every view
to the top of view.html.php and **without an exhaustive test** all seems ok.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: BenClay on November 26, 2013, 15:48:09 PM
GJC, I was trying to make the point that we knew the error; I presumed biolog was merely confirming the same effect without too much repetitive detail and you hadn't read the complete story - but then who knows, it's just my presumption. Anyway. all the best to you.

Oh, yes - more testing and the site seems ok so I suppose that did fix it.
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: GJC Web Design on November 26, 2013, 15:55:25 PM
Excellent..

cheers
Title: Re: Front End Fatal Error after updating to Virtuemart 2.0.24b
Post by: Milbo on November 26, 2013, 16:32:34 PM
I just wonder how it happens, looks like some 3rd party extension. But no big deal, we can add it there,.. .the pattern we use in vm is using almost no time. No problem to call it 10 times for nothing it is below any measureable time.