Page 1 of 1
Strange Error
Posted: Fri Oct 07, 2011 9:35 am
by Ozfarmer
I cannot work out whats causing this
2011-10-07 12:31:25 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /home/xxxxxxxxx/public_html/system/library/session.php on line 11
getting 100's /day in the error log.
What would this relate to?
Re: Strange Error
Posted: Thu Oct 13, 2011 6:42 am
by Ozfarmer
No one has any ideas?
Re: Strange Error
Posted: Thu Oct 13, 2011 6:04 pm
by uksitebuilder
Please try adding the following to your php.ini in your root and admin folder
or
Re: Strange Error
Posted: Fri Oct 14, 2011 7:59 am
by Ozfarmer
Hey Simon, thanks for repling tried both options and unfortunately they didnt work
still getting:
2011-10-14 10:55:54 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /home/xxxxxxxx/public_html/system/library/session.php on line 11
Php.ini is:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
Re: Strange Error
Posted: Fri Oct 14, 2011 4:15 pm
by uksitebuilder
Hi
Not sure what version of OC you are using, but try the following:
open: system/library/session.php
find
change to
Code: Select all
$ok = @session_start();
if(!$ok){
session_regenerate_id(true); // replace the Session ID
session_start(); // restart the session (since previous start failed)
}
open: system/startup.php
find
change to
Code: Select all
$ok = @session_start();
if(!$ok){
session_regenerate_id(true); // replace the Session ID
session_start(); // restart the session (since previous start failed)
}
Re: Strange Error
Posted: Fri Oct 14, 2011 5:11 pm
by Ozfarmer
Thanks Simon, no still the same.. Whats the easiest procedure to re-install OC?
Re: Strange Error
Posted: Fri Oct 14, 2011 6:04 pm
by uksitebuilder
Upload all the default files apart from config.php and admin/config.php
I think though it is a server configuration that is causing your problem
A search on google for your error message reveals several results
Re: Strange Error
Posted: Wed Apr 02, 2014 4:40 pm
by goozluk
Before doing all modifications, try to erase all cookies of your website. it worked for me.
Re: Strange Error
Posted: Tue Oct 14, 2014 10:49 am
by paynechia
Hi,
I have the same issue but so far it is not showing up after I added ob_start (); before session_start(); in system/library/session.php
Is this the right way to solve this issue? Will this cause any effect to the site?
Hope to hearing for some advise here.
Thanks.
Re: Strange Error
Posted: Tue Oct 30, 2018 5:58 am
by johnp
I have the same errors on one of my sites. I use Crawlprotect which logs hack/injection attempts. This error appears at the same time as a hack/injection attempt. I have no idea if the matters are related.