Code Monkey home page Code Monkey logo

magefan / module-blog Goto Github PK

View Code? Open in Web Editor NEW
259.0 19.0 134.0 3.23 MB

Magento 2 Blog Extension is a solution that helps you to create a blog on Magento and manage posts,categories, tags, authors, and comments.

Home Page: https://magefan.com/magento2-blog-extension

License: Other

PHP 81.41% HTML 12.65% CSS 3.50% JavaScript 2.43%
magento2 magento2-modue magento2-extension magento2-plugin magento2-extension-free magento2-free-extension magento2-module-free magento-2 magento-2-module magento-2-extension

module-blog's Introduction

Magento 2 Blog Extension

Magento 2 Blog extension is a solution that allows you to manage your store and blog in Magento from one place without having to rely on some third-party platforms. This blog extension for Magento 2 is a multifunctional marketing tool that will not only help you to create blog posts in Magento, but drive more traffic, boost SEO, and improve your Google rating. Our Magento 2 Blog Extension is one of the best Magento 2 extensions with more than 1 250 000 downloads.

Total Downloads Latest Stable Version

Requirements

  • Magento Community 2.3.0-2.4.x (CE, EE, ECE, B2B)
  • Magefan Community Extension >= v2.0.14. Please install this extension first if you use installation via FTP.
  • Note that the extension is free only for the Magento Community (Open Source) Edition. For Magento EE, ECE, and B2B you need to purchase the license for Blog Base or go with Blog Plus, Blog Extra.
  • ATTENTION! Latest available version for Magento 2.1.x is Blog v2.9.0.1

Editions & Pricing

Magento 2 Blog Editions & Pricing

Main Features

  • NEW! Blog GraphQL
  • Unlimited blog posts, multi-level categories, and tags
  • Multilanguage and Multiple Websites Support
  • Facebook, Disqus, Google+, and Magefan Magento Comments
  • Related products and posts
  • Post media gallery & video
  • Next & Previous Post
  • Posts search
  • Posts Lazy Load
  • Author information and posts by the author
  • Recent Posts, Featured Posts, Archive, Categories, Search From, Tags Cloud sidebar widgets
  • Import Posts and Categories from WordPress and AW Blog extension for M1
  • Posts and Categories duplication
  • Blog RSS Feed
  • REST API
  • 100% Open Source
  • Compatible with Porto Theme for Magento 2
  • Accelerated Mobile Pages (AMP) Project support. To enable AMP view on blog pages Magento Amp Extension by Plumrocket is required.
  • Blog Sitemap XML
  • SEO-friendly URLs
  • Structured Data
  • Open Graph (OG) meta tags
  • Canonical URL
  • Much More

Benefits

More traffic to your website

Targeting the top-ranked keywords and writing compelling content you will ensure more people will find your Magento 2 blog and consequently more people will come to your website.

Improved your Magento 2 website SEO

According to the previous point, the more traffic your Magento 2 blog brings, the more relevant your website appears to Google. So it will put your Magento 2 store pages higher and show them more often correspondingly.

Improved customer engagement

The system of Magento 2 blog posts, categories, tags, internal links, and sidebar navigation will create a great customer experience and will encourage them to come back and spend more time on your Magento 2 website since it is easy to navigate and pleasant to spend time on.

Magento 2 store product promotion

Magento 2 Blog extension allows you to add related products to your blog posts as well as show the related blog posts in the product descriptions. You can promote your Magento 2 store products in your blog and vice versa. This connection will allow people coming to your website to surf through it continuously.

Social media promotion

The best way to make your blog recognized and get even more traffic is to promote it on social media. Magento 2 Blog module allows you to automatically publish your blog posts to your Facebook page so that you don’t need to do it manually and schedule the publication.

Worldwide recognition

Managing a multi-language store would be great since you could reach a wider audience and appeal to more customers. Fortunately, the Magento 2 Blog extension supports multiple languages and websites. Thus, you can create stunning content for people from different countries and benefit from improved traffic and worldwide recognition.

Features

Unlimited blog posts, multi-level categories, and tags

By creating interesting and engaging blog posts, adding them to multiple blog categories, and marking them with tags you create a Magento 2 blog people would want to visit and read because of the simplicity of use and navigation.

Multilanguage and Multiple Websites Support

Managing a blog for a Magento 2 store in one language is good for traffic and SEO, but managing a blog in multiple languages is even better. Magento 2 Blog extension supports multiple languages so that you can reach the worldwide audience providing them with the content in their local language. This blog module for Magento 2 also supports multiple websites so you can create content for different Magento 2 websites and conveniently manage them from one place.

Facebook, Disqus, and Magefan Magento Comments

The first step to establishing a good relationship with your customers and getting honest feedback about your blog are comments. Magento 2 Blog extension supports 3 types of comments: Magefan, Facebook, and Disqus. You can study the tendencies and things your blog readers like the most and use it for further development of your Magento 2 Blog.

Related products and posts

Related products and posts are one of the best ways to make people stay on your website longer. Showing really relevant products and blog posts you encourage readers to have a look at your Magento 2 store products and read some other interesting things on your blog.

Blog Sitemap XML

Google is analyzing a lot of things on your Magento 2 website in order to choose which place to put it on. Configuring Magento 2 blog sitemap you choose what pages to allow Google to access and analyze to improve your blog positions.

SEO-friendly URLs

Nowadays, you need to pay huge attention to SEO in order to be found. Magento 2 Blog extension uses only the best SEO practices and allows you to create the SEO- friendly URLs for your blog so that people can easily find your posts on Google.

Open Graph (OG) meta tags

Social media are the very first place you should start promoting your Magento 2 store and blog on. In case you want to make your posts clickable and more attractive you have to configure the Facebook Open Graph tags for them.

Author information and posts by the author

Create, edit and delete authors on your Magento 2 blog and sort your blog posts by the author to let people know where is the information coming from and who is providing it.

Recent Posts, Featured Posts, Archive, Categories, Search From, Tags Cloud sidebar widgets

Magento 2 Blog extension allows you to improve your blog visitors’ experience with the help of the blog sidebar. There are gathered all relevant things people can look for from Category Tree and Popular Posts to Achieve and RSS Feed. Magento 2 Sidebar makes your blog navigation easier and more effective.

Post media gallery & video

Adding pictures and videos to your blog posts make them more diverse and interesting since no one likes reading one-piece texts. Magento 2 blog extension allows you to add plenty of pictures to the blog media gallery to provide the blog readers with more relevant images.

Next & Previous Post

Internal linking is considered as important as the external one. One of the ways to add them is next and previous post links that encourage your Magento 2 blog readers to surf through your blog continuously and stay longer engaged with your content.

Posts search

Allow your blog readers to find an article they are interested in faster with the Magento 2 blog search form.

Posts Lazy Load

Enable lazy loading on your Magento 2 blog in order for blog posts on your blog index page to load just when scrolling down. That way you’ll ensure the website loading speed is fast and your blog readers don’t have to wait to get to the content of their interest.

Import Posts and Categories form WordPress and AW Blog extension for M1

A lot of people are migrating to Magento 2 considering its growing popularity. So if you want to migrate your Wordpress or Aheadworks blog to Magento 2 you can easily do this since our Magento 2 Blog extension provides different kinds of blog imports.

Posts and Categories duplication

Do you want to create the same category or blog posts with a slight content change or for translation? Magento 2 Blog extension has the feature of posts and categories duplication. So all you’ll need to do is to duplicate the blog post or blog category and then make changes to the title, description, or to the whole content if you like.

100% Open Code

Magento 2 is very flexible and customizable and so is our Magento 2 Blog extension. It is 100% Open Code so except for the big variety of features it is offering you can still make changes and add some improvements to make a blog for your Magento 2 store stand out.

Compatible with Porto Theme for Magento 2

In case you were looking for a great theme for your Magento 2 store and wanted to start managing a blog you can have it all at once since our Magento 2 Blog extension is fully compatible with the Porto Theme for Magento 2.

Blog GraphQL and Rest API Endpoints

In the mobile era, all major websites have started to create apps to make their customers’ shopping experience better. Magento 2 Blog extension has the GraphQL and Rest API endpoints that allow you to request or add data to your external software. Thus, if you decide to have your Magento 2 store and blog in an app you can easily do this.

Demo

Try out our open demo and if you like our extension please give us some star on Github ★

Storefront Demo Admin Panel Demo
Magento 2 Blog Extension Storefront Demo Magento 2 Blog Extension Admin Panel Demo
view view

Add-ons

Online Documentation

https://magefan.com/blog/magento-2-blog-extension-documentation

Installation Instruction

https://magefan.com/blog/magento2-blog-extension-installation

Magento 2 Blog Management

Support

If you have any issues, please contact us then if you still need help, open a bug report in GitHub's issue tracker.

Please do not use Magento Marketplace Reviews or (especially) the Q&A for support. There isn't a way for us to reply to reviews and the Q&A moderation is very slow.

Need More Features?

Please contact us to get a quote https://magefan.com/contact

License

The code is licensed under EULA.

Magento 2 Point of Sale

Magento 2 Theme

module-blog's People

Contributors

alexanderbirukov avatar andriysvyryda avatar bob308tr avatar bohdan-berezhniy avatar cefar-pauld avatar dankocrama avatar denystsymbal avatar frankeymen avatar geoffreydijkstra avatar igormandzyuk avatar igorwulff avatar ihormandzyuk avatar ihorvansach avatar ivanhrytsaim avatar kadowakiverite avatar koc avatar kozakserhii avatar magefan avatar manfrinm avatar marcatos avatar matusstafura avatar nunziodev avatar peteresser avatar phamdinhhau avatar redelschaap avatar reiz avatar shuaizend avatar termos008 avatar tjitse-e avatar yuriyhamulevych avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

module-blog's Issues

Wrong image url.

If I use 'pub' folder as directory root in website configs, it give a wrong image url.
Should be
domain.local/media/magefan_blog/s/e/selection_010.png,
give
domain.local/pub/media/magefan_blog/s/e/selection_010.png
As result, image not found.
I think, better use \Magento\Store\Model\Store object to find url in:
\Magefan\Blog\Model\Url::getMediaUrl

Category issue

Hi,

Can u pls tell me how to move the categories from breadcrumbs area to top menu category area in this block.

Thanks,

Custom url structure without path label

Hi,

i'm trying to display category names in the post URL structure, without displaying the path label.

Here is the standard URL structure for a category archive:
http://domain.extension/blog/category/category-slug/post-name

Here is what I would like:
http://domain.extension/blog/category-slug/post-name

Any help would be great.

Thanks,
C.

Backlinks

Игорь, стыдно предлагать бесплатное расширение, и вкраплять обратные ссылки на свой сайт!

Я так понимаю, что если делать что-то "совершенно" бесплатным, так оно и должно быть беплатным, без всяких выкидонов!!!

image 2016-03-21 20 24 19

Minify comment templates

When minify is turn on then double slashes are removed as comment block

s.src = '//<?php echo $block->getDisqusShortname() ?>.disqus.com/embed.js';

This code will look as follows

s.src = '.disqus.com/embed.js';

Adding custom meta fields

Hello,

I would like to be able to add some custom meta fields in order to display information outside the actuel post content block.

For example, I would like to add a simple text field to handle excerpts that I would display in the category archive instead of the automated "first x characters in the post".

Thank you,

Cyril

Featured Images

Hello,

The featured images doesn't appear in post list. Why?

Home page Blog

when I call blog list page in home page of magento than i got error
i call in cms_index_index.xml

i got following error
Fatal error: Call to a member function setPost() on a non-object in C:\wamp\www\Magento_Parasnath\app\code\Magefan\Blog\Block\Post\PostList.php on line 29

what to do??

Cannot set custom categories on sidebar

Environment

  1. Apache 2.4.17
  2. MySQL 5.0.11-dev
  3. PHP 5.6.15
  4. Magento 2.1.3
  5. Magefan_Blog 2.4.3

Steps to reproduce

  1. Call Magefan\Blog\Block\Sidebar\Categories->setGroupedChilds($customCategoryTree)
  2. Call Magefan\Blog\Block\Sidebar\Categories->getGroupedChilds()

Expected result

  1. $customCategoryTree should be returned

Actual result

  1. Magefan_Blog's normal category tree is returned

Solution

  1. This line should be changed to if (!$this->hasData($k)) {

PHP Catchable fatal error: Argument 1 passed to Magento\Framework\Config\Scope::__construct() must be an instance of Magento\Framework\App\AreaList,

Magento 2.0.4

after following steps from https://github.com/magefan/module-blog

composer require magefan/module-blog

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

I get the following errors, I cleaned out the pub/static directory but no results.

==> /home/mag/logs/access_log <==
x - - [14/Apr/2016:12:46:54 +0200] "GET /admin_hs5ikv/ HTTP/1.1" 500 3378 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.66 Safari/537.36"

==> /home/mag/logs/error_log <==
[Thu Apr 14 12:46:54.420719 2016] [fcgid:warn] [pid 31898] [client x:59973] mod_fcgid: stderr: PHP Catchable fatal error: Argument 1 passed to Magento\Framework\Config\Scope::__construct() must be an instance of Magento\Framework\App\AreaList, instance of Magento\Framework\ObjectManager\ObjectManager given, called in /home/mag/public_html/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 97 and defined in /home/mag/public_html/magento/vendor/magento/framework/Config/Scope.php on line 37

Typo in blog_category_edit.xml

This is just a minor issue but shows up in the static code tests but in the file

view/adminhtml/layout/blog_category_edit.xml

The NamespaceSchemaLocation references a .xsd that doesn't exist, it appears a / was missed

xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etcpage_configuration.xsd">

should probably be

xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

Remove root "Blog" from category urls

Hello,

How can we rename the "Blog" index page title displayed in the navbar and breadcrumbs ?

I've changed it to "news" in the extension settings page, but its only reflecting the change in the urls.

Thank you,
Cyril

Can not upgrade to Blog ver2.3.x in Magento2.0.10

When I upgrade the Blog Ext in Magento2.0.10. IIt Shows the class

Magento/Catalog/Controller/Adminhtml/Category/Image/Upload.php
not found in 
Magfan/Blog/Controller/Adminhtml/Category/Image/Upload.php on line 17.

Should I just remove this [Magfan/Blog/Controller/Adminhtml/Category/Image/] folder for setup:upgrade?

how to call catrgory wise list page

i want to call all blog category wise in stand alone page i tried with below code.

{{block type="Magefan\Blog\Block\Post\PostList" category_id="1" template="Magefan_Blog::post/list.phtml"}}

got the eroor.

Add categories as footer links

Hello,

how can we automatically add categories to the standard Links block.

I'd like to avoid manual declarations in .xml in case new categories are added in the admin later on.

Thanks,

C.

Couldn't get available versions for package magefan/module-blog

Hello,
when i try to update my components via web wizzard. Page is loging and loading and the ajax http get resoonse is

https://www.tarnava.ro/setup/index.php/componentGrid/components

I get the following error message:

An error occurred during execution; please try again later.

Additional information:

RuntimeException

File:
httpdocs/setup/src/Magento/Setup/Model/PackagesData.php:88
Message:
Couldn't get available versions for package magefan/module-blog
Stack trace:
#0 httpdocs/setup/src/Magento/Setup/Controller/ComponentGrid.php(98): Magento\Setup\Model\PackagesData->syncPackagesData()
#1 httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\ComponentGrid->componentsAction()
.....

Anyone have a hint ?

My composer.json looks as follows

"require": {
"magento/product-community-edition": "2.1.3",
"composer/composer": "1.1.2 as 1.0.0-beta1",
"splendidinternet/mage2-locale-de-de": "^1.6",
"magestore/module-bannerslider": "^1.6",
"magento/magento-composer-installer": "^0.1.8",
"magefan/module-blog": "^2.4",
"magepal/magento2-gmailsmtpapp": "^1.4"
},

Thanks and Happy new year !

REST API

I'd like to ask how to call the REST APIs. Ex:

  • GET news list (title, photo, brief, time)
  • GET news details(title, body, photo)

Blog link not working

Blog link in category top navigation menu and footer do not work.
You get 403 or 404 error when clicking on it.
Link looks like mystore.com/.html

Fatal error on blog post page

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

Manage Post > Add New Post generate error

Hi

Mage 2.0.5 (fresh install)
magefan/module-blog-master (May 14th)
.htaccess > Developer mode

If I want to add a post and click the Add New Post button, I get the following error below.

Anyone could give a heads up as to where to start looking that'd be kind

Thanks, Charles

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/mydomain.com/vendor/magento/framework/Data/Form/Element/AbstractElement.php on line 286 #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'htmlspecialchar...', '/var/www/mydom...', 286, Array) #1 /var/www/mydomain.com/vendor/magento/framework/Data/Form/Element/AbstractElement.php(286): htmlspecialchars(Array, 2)

Your contact email doesn't work & I translated your blog to french

Hello,

When I try to send a mail to you, there's this message :

SMTP error from remote mail server after RCPT TO:[email protected]:
host mx1.mail6.freehost.com.ua [194.0.200.225]:
550 Relay not permitted

And by the way, here is what I wanted to send to you :

Hi,

I translated your blog module from english to french ! If you want to reuse it or if someone asks for it : here it is ;)

By the way, thank you for the module, it's really helpful !

Have a nice day,

Here's the link : http://www.filedropper.com/frfr

Category does show on storefront

Hello

You allow to select "All Store Views" for post and when we assign this post to category which should shows only on one store then this category does not show on storefront.
It happens because you do not check if store_id for post is "0" and you filter category collection
AND (store_table.store_id IN('0', 0))

_addBreadcrumbs error on Posts page

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:

Recoverable Error: Argument 1 passed to Magefan\Blog\Block\Post\View::_addBreadcrumbs() must be an instance of Magefan\Blog\Model\Post, null given, called in vendor/magefan/module-blog/Block/Post/View.php on line 25 and defined in vendor/magefan/module-blog/Block/Post/View.php on line 41

Changing:

$post = $this->getPost();

To:

$post = $this->_post;

Temporarily fixes the problem for me but it appears the execute() function in the Controller\Post\View action is not being triggered.

Tag cloud doesn't list per store tags

Method getTags on Block/Sidebar/TagClaud.php has an error in one of the join conditions.

Resulting query is in my case is:

SELECT
  `main_table`.*,
  count(main_table.tag_id) AS `count`
FROM `magefan_blog_tag` AS `main_table`
  LEFT JOIN `magefan_blog_post_tag` AS `pt` ON main_table.tag_id = pt.tag_id
  LEFT JOIN `magefan_blog_post` AS `p` ON p.post_id = pt.post_id
  LEFT JOIN `magefan_blog_post_store` AS `ps` ON p.post_id = pt.post_id
WHERE (ps.store_id IN (0, 2))
GROUP BY `main_table`.`tag_id`

but it should rather be (ON p.post_id = ps.post_id)

SELECT
  `main_table`.*,
  count(main_table.tag_id) AS `count`
FROM `magefan_blog_tag` AS `main_table`
  LEFT JOIN `magefan_blog_post_tag` AS `pt` ON main_table.tag_id = pt.tag_id
  LEFT JOIN `magefan_blog_post` AS `p` ON p.post_id = pt.post_id
  LEFT JOIN `magefan_blog_post_store` AS `ps` ON p.post_id = ps.post_id
WHERE (ps.store_id IN (0, 2))
GROUP BY `main_table`.`tag_id`

Getting Error on upgrade,

Just upgraded the version of the module but i am getting this error when i am loading a page or widget recent

hope some on can help me out

Exception #0 (Exception): Warning: DOMDocument::loadHTML(): Tag picture invalid in Entity, line: 52 in app/code/Magefan/Blog/Block/Post/AbstractPost.php on line 109

Its public function getShorContent() thats is creating the error.

error during compile

Thanks for this module! It works great in development mode for me.

However, when I go to deploy to production, when it compiles I get this:

Magento\Framework\App\Action\Forward\Interceptor
Errors during compilation:
Magefan\Blog\Block\Post\PostList\AbstractList
Incorrect dependency in class Magefan\Blog\Block\Post\PostList\AbstractList in /var/www/html/magento/vendor/magefan/blog/Block/Post/PostList/AbstractList.php
\Magento\Store\Model\StoreManagerInterface already exists in context object
\Magento\Framework\View\Page\Config already exists in context object
Magefan\Blog\Block\Post\View\RelatedProducts
Incorrect dependency in class Magefan\Blog\Block\Post\View\RelatedProducts in /var/www/html/magento/vendor/magefan/blog/Block/Post/View/RelatedProducts.php
\Magento\Framework\Registry already exists in context object
Magefan\Blog\Block\Post\AbstractPost
Incorrect dependency in class Magefan\Blog\Block\Post\AbstractPost in /var/www/html/magento/vendor/magefan/blog/Block/Post/AbstractPost.php
\Magento\Store\Model\StoreManagerInterface already exists in context object
Magefan\Blog\Block\Sidebar\Categories
Incorrect dependency in class Magefan\Blog\Block\Sidebar\Categories in /var/www/html/magento/vendor/magefan/blog/Block/Sidebar/Categories.php
\Magento\Store\Model\StoreManagerInterface already exists in context object
Total Errors Count: 4
Compilation complete
Disabled maintenance mode
Enabled production mode.

Any ideas why that's happening? I've included your module with composer and it does work in development. Just compiling to production, or even running di:compile causes this error to appear.

Related products on installation with multi-websites

Hello, I have a problem.
I have Magento 2 installation and use 2 different websites. Some of the products are used in both websites. When I try to open list of products it gives me the error.
Problem that in \Magefan\Blog\Block\Adminhtml\Post\Edit\Tab\RelatedProducts::_prepareCollection it joins websites to product collection, so it gives collection without unique entity_ids (products records are duplicated) and can't works with it.

Getting Fatal Error

I'm getting a fatal error when compiling:
Fatal error: Class 'Plumrocket\Amp\Block\Page\Head\Ldjson\Cms' not found invendor/magefan/module-blog/Block/Amp/Ldjson/PostList.php on line 14

Previous version was working for me but upgrade gives that error for some reason.

Masonry template on Porto

Hey! Nice work on this extension!

I've installed this on a M2 Porto build, and the recent_masonry.phtml template doesn't seem to be working. Posts are displaying in a single column.

Could this be a simple fix?

blog-settings

masonry-not-working

Not compatible with Full Page Caching

We are using Magefans Blog Module.

When we are activating the Full Page Cache, it triggers a HTTP 500 on the CMS home page, where we are using a implementation of it.

Modules Block Code that triggers the error:

/**
 * Get Block Identities
 * @return Array
 */
public function getIdentities()
{
    return [\Magento\Cms\Model\Page::CACHE_TAG . '_relatedproducts_'.$this->getPost()->getId()  ];
}

Error:

Fatal error: Uncaught Error: Call to a member function getId() on null in ```
/home/customer00014/public_html/206/app/code/Magefan/Blog/Block/Post/View/RelatedProducts.php:135
Stack trace: #0 /home/customer00014/public_html/206/var/generation/Magefan/Blog/Block/Post/View/RelatedProducts/Interceptor.php(63): Magefan\Blog\Block\Post\View\RelatedProducts->getIdentities() 
#1 /home/customer00014/public_html/206/vendor/magento/module-page-cache/Model/Layout/LayoutPlugin.php(71): Magefan\Blog\Block\Post\View\RelatedProducts\Interceptor->getIdentities() 
#2 /home/customer00014/public_html/206/vendor/magento/framework/Interception/Interceptor.php(150): Magento\PageCache\Model\Layout\LayoutPlugin->afterGetOutput(Object(Magento\Framework\View\Layout\Interceptor), ' <script>\n ...'') 
#3 /home/customer00014/public_html/206/var/generation/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array) #4 /home/customer00014/public_html/206/vendor/magento/framework/View/Result/Page.php(241): Mage in /home/customer00014/public_html/206/app/code/Magefan/Blog/Block/Post/View/RelatedProducts.php on line 135

In the specific .php-file theres a ->getPost()->getID() call which triggers the error.

The question now is:

  • why does the module calls a member function on null, and what does that mean?
  • how can I fix this error? What would be the correct way to "get identitiers"?
  • for what do I need Identities? Is it cache relevant?

Blog list text on breadcrumbs

Hi,

I would like to ask how to update the blog text on breadcrumbs, I updated the Category Top Navigation but it seems nothing happened.

From Home > Blog
I want it to be updated with this

Home > News & Events

Thank you.

Can not install

when i try to install it via files download, I followed instructions:
....
when i run the secon command i get this error:
Fatal error: Interface 'Magefan\Blog\Api\ManagementInterface' not found in C:\xampp\htdocs\mage1\app\code\Megafan\Blog\Api\CategoryMana
gementInterface.php on line 11

and if i run the third command and/or try to open admin pages i get this:
Exception #0 (ReflectionException): Class Magefan\Blog\Observer\PredispathAdminActionControllerObserver does not exist

and this in homepage:
Exception #0 (ReflectionException): Class Magefan\Blog\Observer\PageBlockHtmlTopmenuBethtmlBeforeObserver does not exist

PS: i checked many times and files all exist. and they have all permissions from all users.
I am using lastest magento version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.