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

My First report on a Bug yii\base\ErrorException My first Bug report #16346

Closed
AnanthakrishnanKS opened this issue May 31, 2018 · 2 comments
Closed
Labels

Comments

@AnanthakrishnanKS
Copy link

What steps will reproduce the problem?

What is the expected result?

The expected result must be a page of a facebook called daddys game.

What do you get instead?

i've got a stack error yii\base\ErrorException, I think it may be a Stack overflow issue, the stacktrace i copied is listed below

yii\base\ErrorException: reset() expects parameter 1 to be array, boolean given in /var/www/html/daddysgames.com/yii2/frontend/controllers/AppsController.php:378
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'reset() expects...', '/var/www/html/d...', 378, Array)
#1 /var/www/html/daddysgames.com/yii2/frontend/controllers/AppsController.php(378): reset(false)
#2 /var/www/html/daddysgames.com/yii2/frontend/controllers/AppsController.php(73): frontend\controllers\AppsController->createImage(Object(Facebook\GraphNodes\GraphUser), 'male', NULL)
#3 [internal function]: frontend\controllers\AppsController->actionIndex(NULL, NULL, NULL)
#4 /var/www/html/daddysgames.com/yii2/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /var/www/html/daddysgames.com/yii2/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#6 /var/www/html/daddysgames.com/yii2/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array)
#7 /var/www/html/daddysgames.com/yii2/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('realistic_newsp...', Array)
#8 /var/www/html/daddysgames.com/yii2/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#9 /var/www/html/daddysgames.com/public_html/index.php(33): yii\base\Application->run()
#10 {main}

Additional info

The screen shot of the bug is attached
bug
bug2
bug 3
bug4
bug 5

Q A
Yii version 2.0.15.1
PHP version
Operating system Apache/2.4.18 (Ubuntu)
@buttflattery
Copy link

buttflattery commented May 31, 2018

your function getLastProfilePics(1) should return an array whereas it is returning boolean and the function php:reset() expects the parameter to be an array.

This should be posted on StackOverflow or Yiiframework forum.

@AnanthakrishnanKS
Copy link
Author

What can i do now?

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

3 participants