vova07 / yii2-start

Yii2-Start application
Other
273 stars 115 forks source link

Error adding comment to blog entry #145

Closed dbd5 closed 9 years ago

dbd5 commented 9 years ago

Hello,

First - thanks for the work you put into this kit.

I have set it up successfully and I'm just testing it out.

I made a new blog entry at the backend and tried to add a comment at the front end but got this message:

Model class is invalid.Invalid model ID

Please advise what could be wrong

Thanks

vova07 commented 9 years ago

Hi @dbd5 , Probably the problem is in comments models sections. Before you'll can comment something, you may first allow that model to be commented. So the only what you need to do, is to enable commentaries for blog models, in comments module.

dbd5 commented 9 years ago

Thanks for getting back!

However, the models index (domain.com/backend/comments/models/index/) - Enable/Disable comments for installed modules has an entry for blog with a check mark indicating it is already enabled.

vova07 commented 9 years ago

@dbd5 can you provide a screenshot for that page?

dbd5 commented 9 years ago

Hi Sir Vasile,

I can now comment on blog entries

I've tried to reproduce the error but it doesn't happen, perhaps this had something to do with the fact that the system was freshly setup with no data.

I will close the issue for now and let you know if it happens again

Thanks