Jump to content

[Solved]Can't upgrade to 1.3 final version


Guest Steven_king

Recommended Posts

When upgrading, error comes and the page is blank with the following information:


Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in

/home/jansh0/public_html/install/classes/ToolsInstall.php on line 4

Anybody knows why?

<?php
class ToolsInstall
{
public static function checkDB ($srv, $login, $password, $name, $posted = true)
{
include_once(INSTALL_PATH.'/../classes/Validate.php');
include_once(INSTALL_PATH.'/../classes/Db.php');
include_once(INSTALL_PATH.'/../classes/MySQL.php');

if($posted)
{
// Check POST data...
$data_check = array(
!isset($_GET['server']) OR empty($_GET['server']),
!Validate::isMailName($_GET['server']),
!isset($_GET['type']) OR empty($_GET['type']),
!Validate::isMailName($_GET['type']),
!isset($_GET['name']) OR empty($_GET['name']),
!Validate::isMailName($_GET['name']),
!isset($_GET['login']) OR empty($_GET['login']),
!Validate::isMailName($_GET['login']),
!isset($_GET['password'])
);
foreach ($data_check AS $data)
if ($data)
return 8;
}
Link to comment
Share on other sites

That error to very similar to the one that appears when you are using PHP4. Are you sure PHP5 is activated? Did you have a line in your .htaccess file to enable PHP5 that was inadvertently deleted when you upgraded?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...