Closed chris-brabender closed 8 years ago
It's weird, this happens on our local environment but not on our development servers. I'll keep looking into this myself and see what I can find.
please check if you have the latest version of https://github.com/IhorVansach/Blog-Extension-for-Magento-2/blob/master/Block/Post/View.php
yep these files are identical
Chris, could you please contact to our support via email: support@magefan.com We cannot reproduce this issue on our side.
It happens when we use varnish. Magento prepares esi call ProcessLayoutRenderElement.php#L55-L62 for varnish.
When we receive request /page_cache/block/esi/blocks/[%22catalog.topnav%22]/handles/[%22default%22,%22blog_post_view%22]/
then your module does not know about current post
Sanuch, please try the last fix
Hi @magefan, It works
@magefan thanks for these updates, could you possibly add a new tag so we can pull these down?
@chris-brabender the tag will be available soon
After a fresh installation of the blog module, I added a new category to get it all to display.
The home page for the blog loads fine, and so does the category page. The hello world post displays in on both pages but clicking in to view the post results in this error:
Changing:
To:
Temporarily fixes the problem for me but it appears the execute() function in the Controller\Post\View action is not being triggered.