VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: rnp4814 on August 28, 2011, 09:06:58 AM

Title: Installation error virtuemart.1.9.8e
Post by: rnp4814 on August 28, 2011, 09:06:58 AM
We face the following error with installing com_virtuemart.1.9.8e.zip file

Notice: Undefined variable: app in C:\wamp\www\ja_edenite\tmp\install_4e59e7c47b62b\install\script.virtuemart.php on line 219
( ! ) Fatal error: Call to a member function getApplication() on a non-object in C:\wamp\www\ja_edenite\tmp\install_4e59e7c47b62b\install\script.virtuemart.php on line 219
Title: Re: Installation error virtuemart.1.9.8e
Post by: Milbo on August 28, 2011, 13:07:55 PM
Fixed the typo, but it shows another problem (the reason we didnt noticed the typo). Oh find that error. thanks
Title: Re: Installation error virtuemart.1.9.8e
Post by: kbrookes on August 29, 2011, 01:47:20 AM
I'm getting the same with the same file, downloaded this morning.

Fatal error: Call to a member function getApplication() on a non-object in /home/brandche/public_html/tmp/install_4e5ad33ab6b2d/install/script.virtuemart.php on line 219
Title: Re: Installation error virtuemart.1.9.8e
Post by: KuboBubo on August 29, 2011, 20:02:39 PM
Open the downloaded file (com_virtuemart.1.9.8e.zip), open file install->script.virtuemart.php.
Change line 219 to
$app = JFactory::getApplication();

Save, update file in the archive and try to install again.
Worked for me, though I got a bunch of warnings after installation and had to do shop Configuration all over again.
Title: Re: Installation error virtuemart.1.9.8e
Post by: Milbo on August 30, 2011, 10:14:02 AM
Yes, this and some other small glitches are fixed here
http://dev.virtuemart.net/attachments/download/320/virtuemart1.9.8.RC2F_extract_first.zip