noumo / easyii

Easy yii2 cms powered by Yii framework 2
http://easyiicms.com
593 stars 272 forks source link

Undefined index: easyii_content_items_flat #141

Open ratbek opened 8 years ago

ratbek commented 8 years ago

When I clicked on Content link in the admin panel, I got error "Undefined index: easyii_content_items_flat". Also errors something like the above occur in other pages such as "Catalog", "Entities", "Articles" and so on. All pages where occur errors, required index something like: ''easyii_content_items_flat", "easyii_catalog_categories_flat", "easyii_entity_categories_flat", "easyii_gallery_categories_flat" and so on.

noumo commented 8 years ago

content module is from other fork, you need to install it or delete module in settings.

ratbek commented 8 years ago

This error occurs not only in Content module, but in other modules too. For example such modules as Catalog, Entities, Articles, etc.

dantux commented 8 years ago

Hey ratbek, did you get this sorted? I have the same issue.

yiibaseerrorexception

ratbek commented 8 years ago

Hey dantux, yes, I had this issue. But I couldn't resolve this issue.

RoqueNE commented 7 years ago

Same problem here

milosbarlov commented 7 years ago

I have same problem . Can someone help me?

admhome commented 7 years ago

Hi all. I install easyiicms (start version, not shop) over composer and i have some troubles:

http://%host%/admin/content - Undefined index: easyii_content_items_flat in /%path-to-hosting%/easyiicms/start/vendor/noumo/easyii/modules/content/models/ItemModel.php at line 109 http://%host%/admin/catalog - Undefined index: easyii_catalog_categories_flat in /%path-to-hosting%/easyiicms/start/vendor/noumo/easyii/components/FlatTrait.php at line 42 http://%host%/admin/entity - Undefined index: easyii_entity_categories_flat in /%path-to-hosting%/easyiicms/start/vendor/noumo/easyii/components/FlatTrait.php at line 42 http://%host%/admin/gallery - Undefined index: easyii_gallery_categories_flat in /%path-to-hosting%/easyiicms/start/vendor/noumo/easyii/components/FlatTrait.php at line 42 http://%host%/admin/article - Undefined index: easyii_article_categories_flat in /%path-to-hosting%/easyiicms/start/vendor/noumo/easyii/components/FlatTrait.php at line 42

How to fix it?

milosbarlov commented 7 years ago

Composer.lock is not up to date. You should run composer update and this bug will be fixed. @noumo You should set composer lock to be up to date or remove it

admhome commented 7 years ago

easyiicms/start$ ../composer.phar update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 20 updates, 4 removals

But nothing happens!

milosbarlov commented 7 years ago

@admhome When you instaled project with composer you should first run composer update and for all question you should writte Y. Or you can delete composer.lock file. Problem is on composer.lock.

genepeng commented 7 years ago

after composer update, looks like still not able to find ContentModule and EntityModule, all other modules are working fine

getting error below:

Class yii\easyii\modules\content\ContentModule does not exist Class yii\easyii\modules\entity\EntityModule does not exist

BTW @noumo, any body still maintain this project?