cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Core Registry return null

Magento 2 Core Registry return null

Hi,

 

Can I know why our magento 2 installed all registry returning empty or null?

 

[Sun Jan 20 16:38:25.287592 2019] [:error] [pid 44107] [client 121.211.178.186:62364] PHP Fatal error: Uncaught Error: Call to a member function getIdentifier() on null in /home/adorncosmetics.com.au/www/app/code/Plazathemes/Blog/Block/Category/View.php:49\nStack trace:\n#0 /home/adorncosmetics.com.au/www/vendor/magento/framework/View/Element/AbstractBlock.php(272): Plazathemes\\Blog\\Block\\Category\\View->_prepareLayout()\n#1 /home/adorncosmetics.com.au/www/vendor/magento/framework/View/Layout/Generator/Block.php(150): Magento\\Framework\\View\\Element\\AbstractBlock->setLayout(Object(Magento\\Framework\\View\\Layout\\Interceptor))\n#2 /home/adorncosmetics.com.au/www/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\\Framework\\View\\Layout\\Generator\\Block->process(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Generator\\Context))\n#3 /home/adorncosmetics.com.au/www/vendor/magento/framework/View/Layout.php(344): Magento\\Framework\\View\\Layout\\GeneratorPool->process(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Generator\\Con in /home/adorncosmetics.com.au/www/app/code/Plazathemes/Blog/Block/Category/View.php on line 49, referer: https://www.adorncosmetics.com.au/blog/category/beauty-articles?page=3

 

we disabled the metrilio we thought this was causing the error why registry was returning null or empty but is not it seems all registry was returning empty.

 

Thank You,

 

1 REPLY 1

Re: Magento 2 Core Registry return null

Hi,

 

It seem the problem when we turn on the page cache, the registry was returning null.