Notice: Trying to access array offset on value of type null in /data/webroot/qwg/read/apps/models/Book.php on line 78
Fatal error: Uncaught TypeError: Argument 1 passed to App\Component\Collection\Json\Item::__construct() must be of the type array, null given, called in /data/webroot/qwg/read/apps/models/Book.php on line 78 and defined in /data/webroot/qwg/read/apps/components/Collection/Json/Item.php:9
Stack trace:
#0 /data/webroot/qwg/read/apps/models/Book.php(78): App\Component\Collection\Json\Item->__construct(NULL)
#1 /data/webroot/qwg/read/apps/controllers/ChaptersController.php(31): App\Model\Book->findById('%E8%8A%B1%E7%93...')
#2 [internal function]: App\Controller\ChaptersController->viewAction('65a9169e124254e...', '%E8%8A%B1%E7%93...')
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(App\Controller\ChaptersController), 'viewAction', Array)
#4 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#5 /data/webroot/qwg/read/public/index.php(95): Phalcon\Mvc\Application->handle('/chapters/view/...')
#6 {main}
thrown in /data/webroot/qwg/read/apps/components/Collection/Json/Item.php on line 9