Forums / Cotonti / Support / Fresh install error: xtemplate

12>>>

Parse error: syntax error

pieter
#1 2009-02-02 00:20
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 ...

Dit bericht is bewerkt door pieter (2009-03-26 02:43, 15 jaren ago)
oc
#2 2009-02-02 00:30
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
#3 2009-02-02 00:37
Let me guess, you have PHP4. See Server Requirements.
May the Source be with you!
pieter
#4 2009-02-02 00:56
I got. PHP version 5.2.6
But I try a reinstall.
... can we help you ...
oc
#5 2009-02-02 01:32
He gets parsing error, I think his problem is really about uploading.
pieter
#6 2009-02-02 02:30
reupload didn't help.
... can we help you ...
Trustmaster
#7 2009-02-02 02:55
Is it on one single host only or you have the problem on all hosts?
May the Source be with you!
pieter
#8 2009-02-02 03:06
I only have one host. I'll try to find another to test.
... can we help you ...
Trustmaster
#9 2009-02-02 03:08
Does it work on your localhost?
May the Source be with you!
pieter
#10 2009-02-02 03:21
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
#11 2009-02-02 03:25
What about phpinfo()? Have you tried uploading with another FTP client?
May the Source be with you!
Kilandor
#12 2009-02-02 03:35
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
#13 2009-02-02 03:35
I uploaded even via the cPanel.

What do you mean with phpinfo()?
I'm not that good in php.
... can we help you ...
Kilandor
#14 2009-02-02 03:42
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
#15 2009-02-02 16:00
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 ...

Dit bericht is bewerkt door pieter (2009-02-02 17:05, 15 jaren ago)

12>>>