VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: axsoft on March 15, 2012, 17:58:00 PM

Title: Error installing on script.virtuemart.php
Post by: axsoft on March 15, 2012, 17:58:00 PM
Hi! I have an error while installing any version (2.0.0 / 2.0.2),
this is the error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /member/MYDOMAIN/administrator/components/com_virtuemart/install/script.virtuemart.php on line 36

I have tryed on more domain, the same error with another line is in the  ext_io.

Have you any solution please?

Thank You
Title: Re: Error installing on script.virtuemart.php
Post by: jenkinhill on March 16, 2012, 10:27:37 AM
Which PHP version?
Title: Re: Error installing on script.virtuemart.php
Post by: axsoft on March 16, 2012, 15:38:07 PM
PHP Version 5.3.10
Joomla 1.5.25
Title: Re: Error installing on script.virtuemart.php
Post by: jenkinhill on March 16, 2012, 23:27:10 PM
Something strange happening. Note you are the only person to report seeing this. There is no text string in that part of script.virtuemart.php

Code should be like this

public function loadVm() {
// $this->path = JInstaller::getInstance()->getPath('extension_administrator');

if(empty($this->path)){
$this->path = JPATH_VM_ADMINISTRATOR;
}
require_once($this->path.DS.'helpers'.DS.'config.php');
JTable::addIncludePath($this->path.DS.'tables');
JModel::addIncludePath($this->path.DS.'models');

}


Some file corruption somewhere of I wonder if there is a bug in PHP 5.3.10  (I use 5.3.8)
Title: Re: Error installing on script.virtuemart.php
Post by: axsoft on March 17, 2012, 11:36:45 AM
In fact I read it, I downloaded the package again both 2.0.0 and 2.0.2 and I get the same error on 2 different domains!
Somebody else has?
I checked the php version of the other domain. is: PHP 4.4.9

Is there a minimum requirement for installing it?

I want to clarify that a third domain, the 2.0 version of virtuemart I work almost seamlessly.
Title: Re: Error installing on script.virtuemart.php
Post by: jenkinhill on March 17, 2012, 14:08:53 PM
Minimum PHP version is 5.2.4 - preferable 5.3+ 

PHP4.4.9 is way too old and can give the T-STRING error.
Title: Re: Error installing on script.virtuemart.php
Post by: axsoft on March 20, 2012, 16:19:09 PM
nothing, on the server with php 5.3 any solution .. see if someone can use this version of php <5.3>and has no problems? thanks