Elxis CMS Forum

Support => Technical support => Topic started by: nikpony on October 30, 2008, 02:13:54

Title: I think that i am not so far from my solution for my error.
Post by: nikpony 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!!!
Title: Re: I think that i am not so far from my solution for my error.
Post by: datahell 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
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikpony 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?
Title: Re: I think that i am not so far from my solution for my error.
Post by: datahell 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.
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikpony 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.
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikos65 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.
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikpony on October 30, 2008, 14:16:25
In which file Niko?Txt or .htaccess?
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikos65 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]
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikpony on October 30, 2008, 17:56:54
Please if you can send me mail in greek Niko,do you have my email?
Title: Re: I think that i am not so far from my solution for my error.
Post by: nikos65 on October 30, 2008, 18:32:15
Lets go to elxis live support  ;)