Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in 2.05 version #67

Closed
alexk984 opened this issue Apr 27, 2016 · 6 comments
Closed

Bug in 2.05 version #67

alexk984 opened this issue Apr 27, 2016 · 6 comments
Assignees
Labels
Milestone

Comments

@alexk984
Copy link

alexk984 commented Apr 27, 2016

Failed to connect server always

exception 'yii\base\ErrorException' with message 'fwrite() expects parameter 1 to be resource, null given' in /var/www/vendor/yiisoft/yii2-redis/Connection.php:392

When I revert version to 2.04 it started to work again

@cebe
Copy link
Member

cebe commented Apr 27, 2016

can you show your config?

@alexk984
Copy link
Author

'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'aaa.ru',
'port' => 6379,
'database' => 0,
]

@cebe
Copy link
Member

cebe commented Apr 27, 2016

also, the stack trace of the error please.

@alexk984
Copy link
Author

alexk984 commented Apr 27, 2016

2016-04-27 23:47:04 [-][-][-][error][yii\base\ErrorException:2]
exception 'yii\base\ErrorException' with message 'fwrite() expects
parameter 1 to be resource, null given' in
/var/www/vendor/yiisoft/yii2-redis/Connection.php:392
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2,
'fwrite() expect...', '/var/www/utrene...', 392, Array)
#1 /var/www/vendor/yiisoft/yii2-redis/Connection.php(392):
fwrite(NULL, '*2\r\n$4\r\nrpop\r\n$...')
#2 /var/www/vendor/yiisoft/yii2-redis/Connection.php(355):
yii\redis\Connection->executeCommand('rpop', Array)
#3 /var/www/console/controllers/OnlineController.php(76):
yii\redis\Connection->__call('rpop', Array)
#4 /var/www/console/controllers/OnlineController.php(76):
yii\redis\Connection->rpop('query_log')
#5 /var/www/console/controllers/OnlineController.php(67):
console\controllers\OnlineController->saveLogs()
#6 [internal function]:
console\controllers\OnlineController->actionIndex()
#7 /var/www/vendor/yiisoft/yii2/base/InlineAction.php(55):
call_user_func_array(Array, Array)
#8 /var/www/vendor/yiisoft/yii2/base/Controller.php(154):
yii\base\InlineAction->runWithParams(Array)
#9 /var/www/vendor/yiisoft/yii2/console/Controller.php(108):
yii\base\Controller->runAction('', Array)
#10 /var/www/vendor/yiisoft/yii2/base/Module.php(454):
yii\console\Controller->runAction('', Array)
#11 /var/www/vendor/yiisoft/yii2/console/Application.php(167):
yii\base\Module->runAction('online', Array)
#12 /var/www/vendor/yiisoft/yii2/console/Application.php(143):
yii\console\Application->runAction('online', Array)
#13 /var/www/vendor/yiisoft/yii2/base/Application.php(375):
yii\console\Application->handleRequest(Object(yii\console\Request))
#14 /var/www/yii(31): yii\base\Application->run()
#15 {main}

@cebe cebe added this to the 2.0.6 milestone Apr 27, 2016
@cebe cebe added the type:bug Bug label Apr 27, 2016
@cebe
Copy link
Member

cebe commented Apr 27, 2016

reproduced, issue was introduced by #37

@cebe cebe closed this as completed in 548fd6a Apr 27, 2016
@cebe
Copy link
Member

cebe commented Apr 27, 2016

Fixed, thanks for reporting!

@cebe cebe self-assigned this Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants