Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Function Redis::settimeout() Is Deprecated After Upgrade Redis-Server Rate Topic   - - - - -

 
  • bolek
  • Newbie
  • Members
  • Join Date: 18-Mar 17
  • 3 posts

Posted 10 October 2019 - 09:28 AM #1

Hey everyone,

 

after upgrading services on my server i got error like in topic.

PHP Deprecated
Message
Function Redis::setTimeout() is deprecated

Error at
app/Tygh/Backend/Session/Redis.php, line: 238

Backtrace
File:	app/Tygh/Backend/Session/Redis.php
Line:	238
Function:	{closure}
File:	app/Tygh/Backend/Session/Redis.php
Line:	116
Function:	query
File:	app/Tygh/Web/Session.php
Line:	606
Function:	write
File:	app/Tygh/Web/Session.php
Line:	720
Function:	save
File:	app/Tygh/Web/Session.php
Line:	458
Function:	write
File:	app/controllers/common/auth.php
Line:	51
Function:	regenerateID
File:	app/functions/fn.control.php
Line:	665
Function:	include
File:	app/functions/fn.control.php
Line:	423
Function:	fn_run_controller
File:	adminul.php
Line:	27
Function:	fn_dispatch
PHP Deprecated
Message
Function Redis::setTimeout() is deprecated

Error at
app/Tygh/Backend/Session/Redis.php, line: 238

Backtrace
File:	app/Tygh/Backend/Session/Redis.php
Line:	238
Function:	{closure}
File:	app/Tygh/Backend/Session/Redis.php
Line:	119
Function:	query
File:	app/Tygh/Web/Session.php
Line:	606
Function:	write
File:	app/Tygh/Web/Session.php
Line:	720
Function:	save
File:	app/Tygh/Web/Session.php
Line:	458
Function:	write
File:	app/controllers/common/auth.php
Line:	51
Function:	regenerateID
File:	app/functions/fn.control.php
Line:	665
Function:	include
File:	app/functions/fn.control.php
Line:	423
Function:	fn_run_controller
File:	adminul.php
Line:	27
Function:	fn_dispatch 

I presume it's related to new version of Redis-Server where setTimeout() is deprecated.

 

To repair this problem you need change in app/Tygh/Backend/Session/Redis.php two line 116 and 119 and replace "setTimeout" to "expire"

 

after this all you need to do is refresh site.

 

When this will be implemented in official release ?