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?
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?
Please try adding the following to your php.ini in your root and admin folder
or
Code: Select all
session.auto_start = 0;
Code: Select all
session.auto_start = Off;
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;
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;
Hi
Not sure what version of OC you are using, but try the following:
open: system/library/session.php
find
change to
open: system/startup.php
find
change to
Not sure what version of OC you are using, but try the following:
open: system/library/session.php
find
Code: Select all
session_start();
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)
}
find
Code: Select all
sesson_start();
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)
}
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
I think though it is a server configuration that is causing your problem
A search on google for your error message reveals several results
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.
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.
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.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Who is online
Users browsing this forum: No registered users and 41 guests