Parse error: syntax error
pieter |
|
---|---|
Hello,
I did a fresh install. - uploaded the files - created the database - change config.php And I got this: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/k3098kru/public_html/cotonti/system/xtemplate.class.php on line 37 Link: http://cotonti.kruisstraat89.be/ ... can we help you ...
|
|
Відредаговано: pieter (26.03.2009 02:43, 16 років тому) |
oc |
|
---|---|
I don't use the official release packages of Cotonti (o, hey, we have only one yet!) but I installed cotonti-0.0.2.rar from GoogleCode, tried on my webserver and it works.
Probably there was some error in uploading files, please restart, file is (xtemplate.class.php) working. |
Trustmaster |
|
---|---|
Let me guess, you have PHP4. See Server Requirements.
May the Source be with you!
|
pieter |
|
---|---|
I got. PHP version 5.2.6
But I try a reinstall. ... can we help you ...
|
oc |
|
---|---|
He gets parsing error, I think his problem is really about uploading.
|
pieter |
|
---|---|
reupload didn't help.
... can we help you ...
|
Trustmaster |
|
---|---|
Is it on one single host only or you have the problem on all hosts?
May the Source be with you!
|
pieter |
|
---|---|
I only have one host. I'll try to find another to test.
... can we help you ...
|
Trustmaster |
|
---|---|
Does it work on your localhost?
May the Source be with you!
|
pieter |
|
---|---|
Don't have a localhost.
But if it works with you guys, it has something to do with my host. cPanel Version 11.23.6-RELEASE cPanel Build 27698 Theme x3 Apache version 1.3.41 (Unix) PHP version 5.2.6 MySQL version 4.1.22-standard Architecture i686 Operating system Linux ... can we help you ...
|
Trustmaster |
|
---|---|
What about phpinfo()? Have you tried uploading with another FTP client?
May the Source be with you!
|
Kilandor |
|
---|---|
You could try a fresh copy maybe of the xtemplate file from the trunk.
http://trac.cotonti.com/export/479/trunk/system/xtemplate.class.php Delete the file first then upload it again. |
pieter |
|
---|---|
I uploaded even via the cPanel.
What do you mean with phpinfo()? I'm not that good in php. ... can we help you ...
|
Kilandor |
|
---|---|
you can create a phpfile
<?php phpinfo(); ?>And it just outputs general details about php install, and modules loaded in apache etc. but PM the link to it to trustmaster something |
pieter |
|
---|---|
Strange, the output gives me:
PHP Version 4.4.8 And in control panel it is PHP version 5.2.6 I will complain to my host. ---------------------------------------------- # Trustmaster : Let me guess, you have PHP4. See Server Requirements.He was right. PROBLEM solved. There was an option in my cPanel to change the PHP-version. It is now 5 All is working fine. Thanks for the help. ... can we help you ...
|
|
Відредаговано: pieter (02.02.2009 17:05, 16 років тому) |