Skip to content

RedisStorage: Unsupported operand types #58

@wodCZ

Description

@wodCZ

On this line I sometimes get Fatal Error Unsupported operand types.

In debugger I see following values:

$key = 'Kdyby.Autowired.AutowireProperties 6c0ef3504d5a554fb419842d8047550c';

$data = 'a:7:{s:9:"webLoader";a:2:{s:5:"value";N;s:4:"type";s:29:"WebLoader\Nette\LoaderFactory";}s:14:"systemSettings";a:2:{s:5:"value";N;s:4:"type";s:28:"Libs\Settings\SystemSettings";}s:15:"companySettings";a:2:{s:5:"value";N;s:4:"type";s:29:"Libs\Settings\CompanySettings";}s:11:"webSettings";a:2:{s:5:"value";N;s:4:"type";s:25:"Libs\Settings\WebSettings";}s:12:"imageManager";a:2:{s:5:"value";N;s:4:"type";s:30:"Libs\System\Image\ImageManager";}s:12:"modalManager";a:2:{s:5:"value";N;s:4:"type";s:24:"Libs\Modals\ModalManager";}s:11:"menuFactory";a:2:{s:5:"value";N;s:4:"type";s:26:"DK\Menu\UI\IControlFactory";}}";';

$meta = 's:1102:"{"time":"0.67322700 1450782047","callbacks":[[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/App\/Presenters\/BasePresenter.php",1450445442],[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/App\/RealEstateModule\/Presenters\/ListPresenter.php",1448030539],[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/temp\/cache\/Nette.Configurator\/Container_e92ce85e6e.php",1450781946]],"serialized":true}';

$storedValue = 's:1102:"{"time":"0.67322700 1450782047","callbacks":[[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/App\/Presenters\/BasePresenter.php",1450445442],[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/App\/RealEstateModule\/Presenters\/ListPresenter.php",1448030539],[["Nette\\Caching\\Cache","checkFile"],"\/home\/vagrant\/Code\/xxxxxxxxxxxxxxxx\/temp\/cache\/Nette.Configurator\/Container_e92ce85e6e.php",1450781946]],"serialized":true} a:7:{s:9:"webLoader";a:2:{s:5:"value";N;s:4:"type";s:29:"WebLoader\Nette\LoaderFactory";}s:14:"systemSettings";a:2:{s:5:"value";N;s:4:"type";s:28:"Libs\Settings\SystemSettings";}s:15:"companySettings";a:2:{s:5:"value";N;s:4:"type";s:29:"Libs\Settings\CompanySettings";}s:11:"webSettings";a:2:{s:5:"value";N;s:4:"type";s:25:"Libs\Settings\WebSettings";}s:12:"imageManager";a:2:{s:5:"value";N;s:4:"type";s:30:"Libs\System\Image\ImageManager";}s:12:"modalManager";a:2:{s:5:"value";N;s:4:"type";s:24:"Libs\Modals\ModalManager";}s:11:"menuFactory";a:2:{s:5:"value";N;s:4:"type";s:26:"DK\Menu\UI\IControlFactory";}}";'

Problem is with that $meta being serialized json string, which json_decode($meta, true) evaluates as null.

This happens about once or twice per week, clearing cache helps. I didn't find a way to reproduce this. As there is no production version yet, I can't tell whether it may be caused by another error or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions