Comments (2)
Thank you for your report. To fix this issue, please use this fix 195e926 or update the extension to the newer version 2.11.3.1 (https://github.com/magefan/module-blog/releases/tag/2.11.3.1)
from module-blog.
Hello!
I fix the issue with this patch :
Index: Model/Post.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/Model/Post.php b/Model/Post.php
--- a/Model/Post.php
+++ b/Model/Post.php (date 1714034007690)
@@ -668,7 +668,7 @@
try {
$category = $this->categoryRepository->getById($categoryId);
if ($category->getId() && $category->isVisibleOnStore($this->getStoreId())) {
- $this->_parentCategories[] = $category;
+ $this->_parentCategories[$categoryId] = $category;
}
} catch (NoSuchEntityException $e) { }
}
Index: Model/UrlResolver.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/Model/UrlResolver.php b/Model/UrlResolver.php
--- a/Model/UrlResolver.php
+++ b/Model/UrlResolver.php (date 1714034007682)
@@ -187,7 +187,11 @@
$factory = Url::CONTROLLER_POST . 'Factory';
$model = $this->$factory->create()->load($postId);
- if (!$model->getCategoriesCount() || !$model->getParentCategories()->getItemById($categoryId)) {
+ if (
+ !$model->getCategoriesCount()
+ || (array_key_exists($categoryId, $model->getParentCategories())
+ && !$model->getParentCategories()[$categoryId])
+ ) {
return null;
}
}
from module-blog.
Related Issues (20)
- Error: Class "Zend_Filter_Input" in Magento 2.4.6 due Zend removal HOT 1
- main.CRITICAL: Error: Cannot instantiate interface Magefan\Blog\Api\UrlResolverInterface HOT 1
- Deprecated Functionality: Creation of dynamic property Magefan\Blog\Model\Config::$scopeConfig is deprecated in /var/www/html/magento/app/code/Magefan/Blog/Model/Config.php on line 118 HOT 1
- Unable to save Blog post, getting error HOT 2
- CRITICAL: Error: Class Zend_Filter_Input not found HOT 1
- Issue with category and blog article with same name HOT 3
- Saving Blog Post items does not working HOT 1
- Post Image not upload HOT 6
- /blog index page keeps working after changing blog route in settings HOT 2
- Class Missing HOT 1
- Enable "Modern" on post view exposes CSS root location HOT 2
- [Feature Request] Category listing in admin like Magento Categories
- Call to a member function getRelatedProducts() HOT 2
- Save category is not working HOT 2
- Installing data... URL key is already in use by another blog item. HOT 1
- When trying to create a category through the admin panel HOT 1
- Module Version in etc/module.xml (2.11.1) does not match composer package version (2.11.2) HOT 1
- main.CRITICAL: Error: Call to a member function getItemById() on array in /vendor/magefan/module-blog/Model/UrlResolver.php:190 HOT 2
- Media Gallery Click event not open dialog box to add alt text and other inputs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from module-blog.