Elxis CMS Forum
Support => Technical support => Topic started 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!!!
-
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
-
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?
-
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.
-
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.
-
Just rename the htaccess.txt to .htaccess and you can put the
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.
-
In which file Niko?Txt or .htaccess?
-
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]
-
Please if you can send me mail in greek Niko,do you have my email?
-
Lets go to elxis live support ;)