Jump to content

Recommended Posts

Posted

Hi, I try to move my website. I already moved the database, changed the config.php content, but I get:

Parse error: syntax error, unexpected T_VARIABLE in www/v3/index.php on line 106

the line 106 contains:

$config->paths = clone $config->urls;

What did I miss?

Posted

That suggest to me that 105 is maybe missing a semi-colon at the end of it. But I am sure you haven't edited that file. What happens if you replace it with an original version of the index.php file?

Posted

What version of PW are you running?

Are you sure all files copied across fully?

Perhaps it would be worth installing a fresh copy of PW on that new server and see if you get any problems, then copy in your existing site folder.

Posted

Ok I tried a fresh install of ProcessWire and the problem was the same. Then I realised my host PHP version was really old!

Problem solved by upgrading PHP to 5.4! Thank you adrian.

  • Like 1

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...