Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Re: parse error
Which PHP version?
Offline
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
Re: parse error
Offline
#5 2014-08-18 07:52:26
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,289
Re: parse error
Offline
#6 2014-08-18 07:55:59
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,289
Offline
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
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
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