Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-08-16 09:32:22

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

parse error

hi,

after upgrade from very old version to 4.5.5 this error appeared

Parse error: syntax error, unexpected '=', expecting ')' in /data01/virt13730/domeenid/www.vanamaja.ee/htdocs/textpattern/lib/txplib_misc.php on line 875

the txplib_misc.php line 875:

function callback_event_ref($event, $step='', $pre=0, &$data=null, &$options=null)

what i need to do?

Offline

#2 2014-08-16 09:57:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: parse error

Which PHP version?

Offline

#3 2014-08-16 14:20:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: parse error

Gallex, could you post the diagnostics?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2014-08-17 08:16:54

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Offline

#5 2014-08-18 07:52:26

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: parse error

ruud wrote #282962:

Which PHP version?

php 5.4 said the host

Offline

#6 2014-08-18 07:55:59

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: parse error

colak wrote #282966:

Gallex, could you post the diagnostics?

i can’t login. ;)

Offline

#7 2014-08-18 08:07:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: parse error

Gallex wrote #283002:

php 5.4 said the host

Try adding this to .htaccess to force it – there may be multiple versions installed on the same server:

SetEnv PHP_VER 5_4

Offline

#8 2014-08-18 08:55:25

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: parse error

gaekwad wrote #283005:

Try adding this to .htaccess to force it – there may be multiple versions installed on the same server:

SetEnv PHP_VER 5_4...

added it as a last line, but nothing changed

Offline

#9 2014-08-18 08:58:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: parse error

Hi gallex,

I guess it is obvious but did you try re-uploading all textpattern files again? There might have been a problem with the initial upload.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2014-08-18 10:11:59

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: parse error

colak wrote #283008:

Hi gallex,

I guess it is obvious but did you try re-uploading all textpattern files again? There might have been a problem with the initial upload.

re-uploaded twice more, no errors appeared during upload, but still parse error :(

Offline

#11 2014-08-18 11:05:40

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: parse error

OK, here’s something to try: run phpinfo to confirm the version of PHP via the browser. That is to say, see what’s actually used rather than what a control panel is reporting. Get this into a .php file, upload it and run it from your browser:

<?php phpinfo();?>

Are you still seeing PHP 5.4?

Offline

#12 2014-08-18 11:37:36

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: parse error

first line of that file:

PHP Version 4.4.9 :)

so, i need to ask host to update php?

Offline

Board footer

Powered by FluxBB