E
E
entermix2015-08-25 22:51:21
Kohana
entermix, 2015-08-25 22:51:21

What could happen to Kohana Session?

After updating PHP from version 5.3 to 5.5, work with sessions fell off on a site with Kohana 3.3, I get Session_Exception [ 1 ]: Error reading session data. when trying to initialize in any way (cookie, database, native).
7711352.jpg
What could happen?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
entermix, 2015-08-25
@entermix

In this article I will talk about the difficulties that I had with kohana 3.2 on php 5.5.
Kohana 3.2 and php 5.5
As you know, in php 5.5 the mysql module is marked as deprecated and deprecated. Kohana uses it by default and results in an error: Database_Exception [ 8192 ]: mysql_connect(): The mysql extension is deprecated
and will be removed in the future: use mysqli or PDO instead
disable E_DEPRECATED type errors. By the way, the following is written in the recommendations:
When using a legacy application with PHP >= 5.3, it is recommended to disable deprecated notices. Disable with: E_ALL & ~E_DEPRECATED.
Let's follow the advice and do what they want from us.
Go to index.php and change error_reporting(E_ALL | E_STRICT) to error_reporting(E_ALL & ~E_DEPRECATED)
That's it, the error is gone :) Just keep in mind that it's better to use the mysqli module anyway, and it's time to forget about the mysql module.

webnotes.by/docs/php/kohana-3-2-and-php-5-5

A
Andrey Popov, 2015-08-25
@Nord001

clear cookies + check if disk space has run out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question