VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: redneckws on May 15, 2015, 22:25:55 PM

Title: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 15, 2015, 22:25:55 PM
I haven't added anything to my website - no extensions, no nothing. I tried to add VirtueMart and now I get this error on admin side
Fatal error: Call to undefined method JHtml::getJSObject() in .../public_html/newsite/libraries/cms/html/bootstrap.php on line 476
Any ideas? I've even wiped everything cleaned and tried again and same thing happens
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 16, 2015, 00:17:32 AM
That error is not from VirtueMart. What are the Joomla/VM versions? Is this a new Joomla site or an update of an older one?

http://forum.virtuemart.net/index.php?topic=79799.0

Title: Re: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 19, 2015, 18:46:48 PM
This is a brand new site. Joomla 3.4.1 and VirtueMart 3.0.9
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 19, 2015, 20:35:51 PM
The only time this error has been reported for VM is https://forum.virtuemart.net/index.php?topic=124736.0

Lets get this straight. You did a brand new vanilla install of Joomla 3.4.1 - manually with the download from Joomla.org or using an automated install on your server or a Joomla quickstart package (in which case which one)?

Then you installed VM3.0.9 using the two components from a com_virtuemart.3.0.9_extract_first.zip package, first the main component followed by the aio component?

Did you install VM sample data , and did you also install the TCPDF component, com_tcpdf_1.0.0.zip 
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 20, 2015, 17:31:55 PM
I used Quick Install from CPanel to install Joomla. Then I installed the VirtueMart package (latest stable one) from the website. That was the only package I installed with absolutely no other extensions or anything. I didn't touch Joomla before I installed VirtueMart, just installed Joomla, logged in, installed VirtueMart, then the error came up, not able to get into admin anymore.
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 20, 2015, 19:57:06 PM
OK, could be a problem with the quick installer.  You should install Joomla the manual way (I only ever do this) and then install VM.
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 21, 2015, 19:30:56 PM
So I did the manual installation, but I can't even get to admin, I get this error Fatal error: Call to a member function set() on a non-object in .....administrator/components/com_login/controller.php on line 36
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 21, 2015, 23:00:10 PM
You can't even install Joomla? What sort of server is this?
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 25, 2015, 17:21:59 PM
That was with installing Joomla manually. I'm with HostGator. Any other ideas?
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 25, 2015, 17:59:17 PM
This is a Joomla problem, not related to VM. Seems this is not a rare error.  Here are two possible solutions.

http://www.inmotionhosting.com/support/community-support/joomla-25/fatal-error-call-to-a-member-function-set-on-a-nonobject-in-homebradle26publichtmladministratorcomponentscomlogincontrollerphp-on-line-38

And specifically for hostgator:  https://www.akeebabackup.com/support/akeeba-backup-3x/21857-site-blank-page.html#p121199
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: redneckws on May 25, 2015, 18:58:14 PM
I deleted everything and tried again and it worked. Now I'm back to the original error when I install VirtueMart. Is there something with Joomla 3.4.1 and the latest VirtueMart?
Fatal error: Call to undefined method JHtml::getJSObject() in ....libraries/cms/html/bootstrap.php on line 476
Title: Re: New VirtueMart on new Joomla Site with errors
Post by: jenkinhill on May 25, 2015, 20:47:11 PM
Nope. You are the only one to have reported this here. 

I have seen this error reported with VM just once elsewhere, and the problem there was that somebody was trying to install a VirtueMart 2 version onto Joomla 3 instead of using VirtueMart 3. Elsewhere it has been reported as a problem with some joomla templates.