Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Technical support
»
I think that i am not so far from my solution for my error.
« previous
next »
Print
Pages: [
1
]
Author
Topic: I think that i am not so far from my solution for my error. (Read 9515 times)
nikpony
Jr. Member
Posts: 84
I think that i am not so far from my solution for my error.
«
on:
October 30, 2008, 02:13:54 »
So take a look of my page
www.foinikasfc.gr/foinikas
I have set this with Elxis 2008.0 but now,i have on my server php5 and i can run and 2008.1 but my page cannot be open.
If i choose from cpanel to process php files with php 5 i will get the error that you can see now on my page but if i choose to process php files with php 4 i will get this...
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/foinikas/public_html/foinikas/includes/floodblocker.class.php on line 43
So what is my error?Please help me!!!
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: I think that i am not so far from my solution for my error.
«
Reply #1 on:
October 30, 2008, 08:25:00 »
The strange characters in the beggining "ο»Ώ" means that a file contains BOM characters and should be opened and re-saved as utf-8 without BOM characters. Most probably this file is the
configuration.php
( you modified it by hand, right? ). Open it with PSPAD, save it as utf-8 without BOM and re-upload it on your site.
The error that you posted:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/foinikas/public_html/foinikas/includes/floodblocker.class.php on line 43
Is because your server runs on PHP4. Elxis 2008.1 requires PHP5. If you have php5 support on your server then you should tell Apache to use php5 instead of php4. To do so open the .htaccess file and put on the top of it the following line:
AddHandler application/x-httpd-php5 .php
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
nikpony
Jr. Member
Posts: 84
Re: I think that i am not so far from my solution for my error.
«
Reply #2 on:
October 30, 2008, 09:09:02 »
No John, i dont have installed Elxis 2008.1, i have 2008.0 as you told me to do.
I did what you wrote, save configuration.php without BOM and UTF-8 but the problem exists.
What should i do now?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: I think that i am not so far from my solution for my error.
«
Reply #3 on:
October 30, 2008, 10:41:15 »
OK, you fixed BOM characters but now you get this message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/foinikas/public_html/foinikas/includes/floodblocker.class.php on line 43
which means that your server runs on php4 and can not understand the PHP5 coding style (this is why this error appears).
If your server support php5 then add inside .htaccess file the line I wrote you previously. If you don't have php5 support then contact your hosting provider.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
nikpony
Jr. Member
Posts: 84
Re: I think that i am not so far from my solution for my error.
«
Reply #4 on:
October 30, 2008, 12:27:36 »
Ok my server supports PHP5 but now with Elxis 2008.0 uploaded,it should be ok with PHP4,am i right?
Lets turn my server on PHP5,the line Addhandler etc where in .htaccess should i write it?
In which htaccess first of all,htaccess.txt which is in the root folder or in .htaccess, and where to put it inside the text?
Top of the top?Up from these ###???
Thanks a lot again.
Logged
nikos65
Hero Member
Posts: 1043
Re: I think that i am not so far from my solution for my error.
«
Reply #5 on:
October 30, 2008, 13:20:43 »
Just rename the htaccess.txt to .htaccess and you can put the
Quote
AddHandler application/x-httpd-php5 .php
at the end of all lines.
Also don't forget to check the rewrite base if the installation are on the public_html or in a subfolder.
Logged
----
Γηράσκω αεί διδασκόμενος
www.dallas.gr
|
www.igoumenitsahotels.com
nikpony
Jr. Member
Posts: 84
Re: I think that i am not so far from my solution for my error.
«
Reply #6 on:
October 30, 2008, 14:16:25 »
In which file Niko?Txt or .htaccess?
Logged
nikos65
Hero Member
Posts: 1043
Re: I think that i am not so far from my solution for my error.
«
Reply #7 on:
October 30, 2008, 14:25:52 »
On .htaccess
The attach file is ready to use if the rewritebase is on public_html or else add the subfolder at the line 24.
Notice ** the file is for exlis 2008.0
[attachment deleted by admin]
«
Last Edit: October 30, 2008, 14:32:38 by nikos65
»
Logged
----
Γηράσκω αεί διδασκόμενος
www.dallas.gr
|
www.igoumenitsahotels.com
nikpony
Jr. Member
Posts: 84
Re: I think that i am not so far from my solution for my error.
«
Reply #8 on:
October 30, 2008, 17:56:54 »
Please if you can send me mail in greek Niko,do you have my email?
Logged
nikos65
Hero Member
Posts: 1043
Re: I think that i am not so far from my solution for my error.
«
Reply #9 on:
October 30, 2008, 18:32:15 »
Lets go to elxis live support
Logged
----
Γηράσκω αεί διδασκόμενος
www.dallas.gr
|
www.igoumenitsahotels.com
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Technical support
»
I think that i am not so far from my solution for my error.