Elxis CMS Forum
Support => Installation => Topic started by: jota on December 14, 2006, 10:44:21
-
Hi there!
I need some help, please.
I've installed Elxis successfully, but when i go to my page, at the end, i allways get a blank page with this error message:
Parse error: syntax error, unexpected T_STRING in /home/domain/public_html/elxis/includes/sef.php on line 1 .
This file (sef.php) only have 1 line... a big line!
I downloaded it again, but is the same. :'(
Thanks for the help.
Jota
-
You are opening sef.php with a text editor that does not understand unix formating. This is why you see everything in one line. We use unix formating (line endings: \n) instead of windows formating (line endings: \r\n) in all of the Elxis files.
My favorite php editor is PHP designer, which is free. The only disadvantage is that does not support utf-8.
So, for utf-8 files (i.e. language files) you can use: PsPad or Notepad++ (both free).
Open sef.php with an editor that will display you the file in multiple lines. Save it in your computer and upload it in your server (replace existing sef.php which is broken).
-
Thank you Datahell !
It works now.
But it's strange.... i had to made it with cpanel file manager, only!
With WS_FTP, no way to do it. Again and again.... the same one big line!
Whats goin on?... with the other files, everything ok... only this one?!
Thanks for the big help, my friend.
Greetings,
Jota
;)
-
Aha! Now I guess it was fault something else also! Check your FTP client (WS_FTP) if is set always to ASCII or Binary mode. It should be in "auto" mode in order to change mode automatically between ASCII (text files) and binary ( binary files, ie images)!
-
Parse error: syntax error, unexpected T_STRING in /home/epronet/public_html/includes/sef.php on line 1
FYI, I have just completed a fresh install of Elxis
access to the Administration area is smooth and flawless as expected.
Error occurs when attempting to visit site's index.php page.
Google search for "includes/sef.php on line 1" indicates MAMBO CMS users have had a simular problem.
Any sugestions and/or questions appreciated.
-
Hi eprosupport,
I think that the answer has already given.
- Download (using FTP), the sef.php file.
- Open it with an editor that supports UTF-8 encoding (PsPad, or NotePad++)
- Change the encoding of the file to UTF-8
- Save file
- Upload (using FTP), and replace current sef.php
-
I followed your instructions however I have the same problem... It's the same as it was before editing it!
-
Please try to replace the original file, after you extract the file from the zip.
If work, then we have some clues.
[old attachment deleted by admin]
-
Parse error: syntax error, unexpected T_STRING in /home/greek/public_html/includes/sef.php on line 1 :(
-
BudyDudy, Did you replace the file with the file I have send?
-
Yes I did but I am still getting the message I posted above.
-
Do you have get a backup the previews file of sef.php if yes please send it at: i
nfo [at] creativeoptions [dot] eu
to take a look
-
And do know all the other user's, the problem have been solved.
The user has replace from the sef.php file the 17 line with the following code:
if (preg_match('/(\b)GLOBALS|_REQUEST|_SERVER|_ENV|_COOKIE|_GET|_POST|_FILES|_SESSION(\b)/i', $_SERVER['REQUEST_URI']) > 0) {
-
And do know all the other user's, the problem have been solved.
The user has replace from the sef.php file the 17 line with the following code:
if (preg_match('/(\b)GLOBALS|_REQUEST|_SERVER|_ENV|_COOKIE|_GET|_POST|_FILES|_SESSION(\b)/i', $_SERVER['REQUEST_URI']) > 0) {
My problem is same as those users. and im try this step then my problem solved, but this error was show:
PHP WARNING
PHP: Cannot modify header information - headers already sent by (output started at /home/9594/domains/npdc.org.mn/html/includes/sef.php:1)
uri: index.php
path:
version: Elxis 2006.4 Stable rev1080 [ Nestor ] 04-December-2006 23:08 GMT+2
WARNING(2): /home/9594/domains/npdc.org.mn/html/includes/Core/elxis.php, line 407
PHP WARNING
PHP: Cannot modify header information - headers already sent by (output started at /home/9594/domains/npdc.org.mn/html/includes/sef.php:1)
uri: index.php
path:
version: Elxis 2006.4 Stable rev1080 [ Nestor ] 04-December-2006 23:08 GMT+2
WARNING(2): /home/9594/domains/npdc.org.mn/html/includes/Core/elxis.php, line 893
-
Hi Uuganaa,
- Download sef.php
- Use an editor that supports UTF-8 (like Notepad++).
- Open sef.php for editing.
- Save it using UTF-8 without BOM characters. In Notepad++ check that under the "Format" menu, "Encode in ANSI" and "UTF-8 without BOM" are checked.
- Upload, replacing the existing sef.php file.
-
I did something else I uploaded in Binary Mode and works !!!
-
You should have used search first ;)
https://forum.elxis.org/index.php?topic=688.0