Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error on blog post page #1

Closed
ardalann opened this issue Dec 21, 2015 · 3 comments
Closed

Fatal error on blog post page #1

ardalann opened this issue Dec 21, 2015 · 3 comments

Comments

@ardalann
Copy link

I got the error below right after installing the extension on a fresh Magento installation when visiting this URL: /index.php/blog/post/hello-world/

Fatal error: Call to a member function getId() on null in 
app\code\Magefan\Blog\Block\Post\View\RelatedProducts.php on line 126
@magefan
Copy link
Owner

magefan commented Dec 22, 2015

Hello Ardalan,

Sorry for inconvenience.

I fixed it.
Could you please update your local file app\code\Magefan\Blog\Block\Post\View\RelatedProducts.php ?

Source: https://github.com/IhorVansach/Blog-Extension-for-Magento-2/blob/master/app/code/Magefan/Blog/Block/Post/View/RelatedProducts.php

Regards,
Ihor

@cmcandrew
Copy link

Hi Ihor,

I noticed this issue, applied the recent update and once you add a related product the admin section for Related Products refuses to load console error:
POST http://magento2.dev/admin_ps8ydc/blog/post/relatedProducts/id/3/key/faac3711d3f5ac0c79a81c5f2f80441df78086d059d923ad8da2283c85c0976c/ 500 (Internal Server Error)
jquery.js:9666: xhr.send( ( options.hasContent && options.data ) || null );

Frontend loses all styles, templates and displays:
Posted: December 22, 2015
Blah blah blah.

Related Products

Any ideas?

@magefan
Copy link
Owner

magefan commented Dec 22, 2015

Hello Cmcandrew,

Thank you for report.
We have made changes. Please update Blog Extension for Magento 2

Regards,
Ihor

@magefan magefan closed this as completed Dec 28, 2015
magefan pushed a commit that referenced this issue May 14, 2019
…etcontent-isnull

Fixed an issue where category content could be null, causing issues w…
magefan pushed a commit that referenced this issue Aug 19, 2021
magefan added a commit that referenced this issue Nov 28, 2022
…recated in module-blog/Block/Widget/Link.php on line 64
MathijsvanVelde added a commit to MathijsvanVelde/module-blog that referenced this issue Apr 6, 2023
…($datetime) of type string is deprecated

Cast all usages to string where necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants