Warning: session_start(): Failed to read session data Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Folamour
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Sun Mar 07, 2010 11:19 am

Warning: session_start(): Failed to read session data

Post by Folamour » Fri Sep 25, 2020 6:18 pm

Hi folks, this error is a 'big classic' on joomla, but i cannot get ride of it, i'm taking akeeba my backup from my live site, to test it in local xampp, then i will go live but i've this error :


Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in C:\xampp\htdocs\libraries\joomla\session\handler\native.php on line 260
Error: Failed to start application: Failed to start the session

My database & password is set correctly and i have disabled mem cache on the server before backing up,

public $password = '';

is well the SQL password ????

thanks,

Code: Select all

<?php
class JConfig {
	public $MetaAuthor = '1';
	public $MetaDesc = '';
	public $MetaKeys = '';
	public $MetaRights = '';
	public $MetaTitle = '1';
	public $MetaVersion = '0';
	public $access = '1';
	public $cache_handler = 'file';
	public $cachetime = '60';
	public $caching = '0';
	public $captcha = 'hcaptcha';
	public $cookie_domain = '';
	public $cookie_path = '';
	public $db = 'crashdebugfr';
	public $dbprefix = 'ij3_';
	public $dbtype = 'mysqli';
	public $debug = '0';
	public $debug_lang = '0';
	public $display_offline_message = '1';
	public $editor = 'arkeditor';
	public $error_reporting = 'maximum';
	public $feed_email = 'author';
	public $feed_limit = '5';
	public $force_ssl = '2';
	public $fromname = 'Folamour';
	public $ftp_enable = '0';
	public $ftp_host = '127.0.0.1';
	public $ftp_pass = 'Allisrelative2020!';
	public $ftp_port = '21';
	public $ftp_root = '/';
	public $ftp_user = 'many_folamour';
	public $gzip = '1';
	public $helpurl = 'https://help.joomla.fr/index.php?option=com_help&keyref=Help{major}{minor}:{keyref}';
	public $host = 'localhost';
	public $lifetime = '90';
	public $list_limit = '20';
	public $live_site = '';
	public $log_path = '/xampp/htdocs/log';
	public $mailer = 'smtp';
	public $mailfrom = 'webmaster@crashdebug.fr';
	public $memcache_compress = '1';
	public $memcache_persist = '1';
	public $memcache_server_host = 'localhost';
	public $memcache_server_port = '11211';
	public $offline = '0';
	public $offline_image = '';
	public $offline_message = 'Ce site est en maintenance.<br /> Merci de revenir ultérieurement.';
	public $offset = 'UTC';
	public $offset_user = 'UTC';
	public $password = 'itwashere';
	public $robots = '';
	public $secret = 'qmaq1aZX4uXBXYvBIe62VjWMSmFc3jqp';
	public $sef = '1';
	public $sef_rewrite = '1';
	public $sef_suffix = '0';
	public $sendmail = '/usr/sbin/sendmail';
	public $session_handler = 'database';
	public $sitename = 'Crashdebug.fr, l\'actualité sans détour';
	public $sitename_pagetitles = '0';
	public $smtpauth = '1';
	public $smtphost = 'mail.infomaniak.ch';
	public $smtppass = '';
	public $smtpport = '587';
	public $smtpsecure = 'tls';
	public $smtpuser = 'webmaster@crashdebug.fr';
	public $tmp_path = '/xampp/htdocs/tmp';
	public $unicodeslugs = '0';
	public $user = 'folamo';
	public $mailonline = '1';
	public $memcached_persist = '1';
	public $memcached_compress = '1';
	public $memcached_server_host = 'localhost';
	public $memcached_server_port = '11211';
	public $proxy_enable = '0';
	public $proxy_host = '';
	public $proxy_port = '';
	public $proxy_user = '';
	public $proxy_pass = '';
	public $session_memcache_server_host = 'localhost';
	public $session_memcache_server_port = '11211';
	public $session_memcached_server_host = 'localhost';
	public $session_memcached_server_port = '11211';
	public $frontediting = '1';
	public $asset_id = '1';
	public $redis_persist = '1';
	public $redis_server_host = 'localhost';
	public $redis_server_port = '6379';
	public $redis_server_auth = '';
	public $redis_server_db = '0';
	public $massmailoff = '0';
	public $cache_platformprefix = '1';
	public $replyto = '';
	public $replytoname = '';
	public $shared_session = '0';
	public $session_redis_persist = '1';
	public $session_redis_server_host = 'localhost';
	public $session_redis_server_port = '6379';
	public $session_redis_server_auth = '';
	public $session_redis_server_db = '0';
	public $debug_lang_const = '1';
}
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

Folamour
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Sun Mar 07, 2010 11:19 am

Re: Warning: session_start(): Failed to read session data

Post by Folamour » Fri Sep 25, 2020 6:50 pm

ok i have dig my way to the control panel, all work fine, but i have a blank screen in front end, debug said nothing,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12771
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: Warning: session_start(): Failed to read session data

Post by toivo » Fri Sep 25, 2020 6:56 pm

So the level of error reporting is 'maximum' and you have enabled the Debug option in Global Configuration. Did you configure the plugin System - Debug, too?
Toivo Talikka, Global Moderator

Folamour
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Sun Mar 07, 2010 11:19 am

Re: Warning: session_start(): Failed to read session data

Post by Folamour » Fri Sep 25, 2020 7:15 pm

hi toivo, nice to see you, debug is at maximum i have done nothing on plugin system-debug,

i have disabled my main slide show and everything, jotcache, jch, script merge, script down, changed of template nothing is diplayed,

backend work,

i've deleted all cache site & admin,

i already faced this issue, but usual tweak don't work,
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

Folamour
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Sun Mar 07, 2010 11:19 am

Re: Warning: session_start(): Failed to read session data

Post by Folamour » Sat Sep 26, 2020 1:23 am

Ok so i'll sorted out, I installed a fresh joomla 3.9.21 grab the configuration.php files generated by Xampp,

so all log and tmp path was set correctly and all the stuff related to memcached as gone,

but the issue was still remain, so i have disabled absolutely ALL non necessary plugin, and that worked,

i put bellow a configuration.php from a fresh install of 3.9.21 that can help some one else. 8)

Code: Select all

<?php
class JConfig {
	public $offline = '0';
	public $offline_message = 'Ce site est en maintenance.<br /> Merci de revenir ultérieurement.';
	public $display_offline_message = '1';
	public $offline_image = '';
	public $sitename = 'Crashdebug.fr localhost';
	public $editor = 'tinymce';
	public $captcha = '0';
	public $list_limit = '20';
	public $access = '1';
	public $debug = '0';
	public $debug_lang = '0';
	public $debug_lang_const = '1';
	public $dbtype = 'mysqli';
	public $host = 'localhost';
	public $user = 'folamour';
	public $password = 'database password goes here';
	public $db = 'crashdebugfr';
	public $dbprefix = 's8yzs_';
	public $live_site = '';
	public $secret = 'XYatrjX5m9yhSGAx';
	public $gzip = '0';
	public $error_reporting = 'default';
	public $helpurl = 'https://help.joomla.org/proxy?keyref=Help{major}{minor}:{keyref}&lang={langcode}';
	public $ftp_host = '';
	public $ftp_port = '';
	public $ftp_user = '';
	public $ftp_pass = '';
	public $ftp_root = '';
	public $ftp_enable = '0';
	public $offset = 'UTC';
	public $mailonline = '1';
	public $mailer = 'mail';
	public $mailfrom = 'your email';
	public $fromname = 'site name to display';
	public $sendmail = '/usr/sbin/sendmail';
	public $smtpauth = '0';
	public $smtpuser = '';
	public $smtppass = '';
	public $smtphost = 'localhost';
	public $smtpsecure = 'none';
	public $smtpport = '25';
	public $caching = '0';
	public $cache_handler = 'file';
	public $cachetime = '15';
	public $cache_platformprefix = '0';
	public $MetaDesc = '';
	public $MetaKeys = '';
	public $MetaTitle = '1';
	public $MetaAuthor = '1';
	public $MetaVersion = '0';
	public $robots = '';
	public $sef = '1';
	public $sef_rewrite = '0';
	public $sef_suffix = '0';
	public $unicodeslugs = '0';
	public $feed_limit = '10';
	public $feed_email = 'none';
	public $log_path = 'C:\\xampp\\htdocs\\administrator/logs';
	public $tmp_path = 'C:\\xampp\\htdocs/tmp';
	public $lifetime = '15';
	public $session_handler = 'database';
	public $shared_session = '0';
}
All the best.

f.
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27200
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Warning: session_start(): Failed to read session data

Post by Per Yngve Berg » Sat Sep 26, 2020 8:06 am

You will get a session error if you cannot connect to the database because session handler is set to 'database'. I will recommend change it to 'none' (php session) for better performance.

Folamour
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Sun Mar 07, 2010 11:19 am

Re: Warning: session_start(): Failed to read session data

Post by Folamour » Sat Sep 26, 2020 10:39 am

thanks Per Yngve Berg, its a Xampp labs, we will go live on monday, i think we will need help at this time.
https://www.crashdebug.fr talk about actualities and politics and many other topics.

How to boost the SEO of a Joomla site : https://www.crashdebug.fr/comment-ameli ... ite-joomla


Post Reply

Return to “Installation Joomla! 3.x”