Closed waza-ari closed 8 years ago
Hi,
Can you show your configuration? In the model the database table name is set to settings
plural and with a lowercase "s". Are you using your own model?
Hi,
my configuration is pretty basic, have a look at this snippet. I did not change any of your code, no custom models, just plain installation.
The table name is set to:
public static function tableName()
{
return '{{%settings}}';
}
It might be worth mentioning that I use PHP7, however this should make no difference...
You're using yii2mod\settings\Module
which started as a fork of this project. It was in your stack trace from above but I missed it before. This project is pheme/yii2-settings
Doh! You are absolutely right... Had both included in my composer.json
, used the migration of this module but the code of the other one... sorry. Deleted the yii2mod module, changed configuration and it works now.
Thanks for your help and sorry for my misunderstanding.
Not a problem. Glad to help :)
Hi,
I installed version 0.3 via composer and ran the migration scripts. Further, I added the relevant sections to the configuration. However I get the following error when accessing the "/settings" module:
Seems like the module tries to access the Settings-table with capital S. I verified that the table exists, however with a small s.
Stack Trace:
Any idea what the problem could be? Thanks in advance