Yii2: My First report on a Bug yii\base\ErrorException My first Bug report

Created on 31 May 2018  路  2Comments  路  Source: yiisoft/yii2

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)

question

Most helpful comment

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

This should be posted on StackOverflow or Yiiframework forum.

All 2 comments

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

This should be posted on StackOverflow or Yiiframework forum.

What can i do now?

Was this page helpful?
0 / 5 - 0 ratings