admin管理员组文章数量:1289543
Im using joomla 3.8.5
it worked fine but I had to reinstall xampp and now it's giving this.
native.php
if (!session_start())
{
throw new RuntimeException('Failed to start the session');
}
// Mark ourselves as started
$this->started = true;
}
}
error
Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in
C:\xampp\htdocs\recepcao\libraries\joomla\session\handler\native.php on line 260 Error: Failed to start application: Failed to start the session
Im using joomla 3.8.5
it worked fine but I had to reinstall xampp and now it's giving this.
native.php
if (!session_start())
{
throw new RuntimeException('Failed to start the session');
}
// Mark ourselves as started
$this->started = true;
}
}
error
Share Improve this question edited Feb 15, 2018 at 11:01 Thomas van Oorschot 519 bronze badges asked Feb 15, 2018 at 10:55 Bernardo RodelBernardo Rodel 511 gold badge1 silver badge4 bronze badges 1Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in
C:\xampp\htdocs\recepcao\libraries\joomla\session\handler\native.php on line 260 Error: Failed to start application: Failed to start the session
- Hey guy! Did you solve this problem? I have the same problem now... – Jefferson Commented Apr 4, 2018 at 16:16
2 Answers
Reset to default 4I had the same problem and got this resolved.
My case:
Joomla 3 with Rockettheme template and plugins/extensions.
I tried to replicate the working site on my local wamp and I got these errors:
Warning: session_start(): Failed to read session data: user (path: c:/wamp64/tmp) in C:\wamp64\www\welynx\libraries\joomla\session\handler\native.php on line 260 Error: Failed to start application: Failed to start the session
The issue is the code cannot access the database and set up a live connection and hence cannot create a session for the current user.
After I fixed the credential and privilege on the local database/table and update them in configuration.php
, it is no longer erroring out.
Note: if you have a customize port number in your local server, don't forget to change it in the configuration.php
, my case is: public $host = 'localhost:3308';
After that, I encountered another issue that is related to RocketTheme: the PHP version!
Current wamp is running php 7.3.1, I received the following error:
Notice: Array to string conversion in C:\wamp64\www\welynx\libraries\rokmon\RokCommon\Registry.php on line 361
Notice: Array to string conversion in C:\wamp64\www\welynx\libraries\rokmon\RokCommon\Registry.php on line 363
Notice: Array to string conversion in C:\wamp64\www\welynx\libraries\rokmon\RokCommon\Registry.php on line 365
The fix is to change the local wamp server to lower php edition, I set it to php 5.6.40, it is working as usual.
I hope this help.
This can happen if you move or reinstall Xampp to a different directory? If so then find the following in your installation; C:\Xampp\mysql\bin edit my.ini Change the directory for the new one in Notepad++ i.e
Find C: Change to D: result = D:\Xampp\mysql\bin save my.ini and restart MySQL. That should do it.
本文标签: javascriptWarning sessionstart() Failed to read session data user (path Cxampptmp) inStack Overflow
版权声明:本文标题:javascript - Warning: session_start(): Failed to read session data: user (path: C:xampptmp) in - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741418188a2377643.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论