Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not connect to Database #3

Closed
MaluNoPeleke opened this issue Dec 20, 2021 · 1 comment
Closed

Could not connect to Database #3

MaluNoPeleke opened this issue Dec 20, 2021 · 1 comment

Comments

@MaluNoPeleke
Copy link
Contributor

MaluNoPeleke commented Dec 20, 2021

After changing the config for komments (as discussed here) I receive a big error message when I want to access webmentions stats in the panel:

Could not connect to Database: Attempt to read property "data" on bool Could not connect to Database: Attempt to read property "data" on bool Could not connect to Database: Attempt to read property "data" on bool {"$direction":null,"$language":{"code":"de","default":true,"direction":"ltr","name":"Deutsch","rules":{"\u00c4":"AE","\u00d6":"OE","\u00dc":"UE","\u00df":"ss","\u00e4":"ae","\u00f6":"oe","\u00fc":"ue"}},"$languages":[{"code":"de","default":true,"direction":"ltr","name":"Deutsch","rules":{"\u00c4":"AE","\u00d6":"OE","\u00dc":"UE","\u00df":"ss","\u00e4":"ae","\u00f6":"oe","\u00fc":"ue"}},{"code":"en","default":false,"direction":"ltr","name":"English","rules":[]}],"$menu":[{"current":false,"disabled":false,"icon":"home","id":"site","link":"site","text":"Site"},{"current":false,"disabled":false,"icon":"globe","id":"languages","link":"languages","text":"Sprachen"},{"current":false,"disabled":false,"icon":"users","id":"users","link":"users","text":"Accounts"},{"current":false,"disabled":false,"icon":"settings","id":"system","link":"system","text":"System"},{"current":true,"disabled":false,"icon":"live","id":"webmentions","link":"webmentions","text":"Webmentions"},{"current":false,"disabled":false,"icon":"chat","id":"komments","link":"komments","text":"Komments"},{"current":false,"disabled":false,"icon":"chart","id":"simplestats","link":"simplestats","text":"Simple Stats"},"-",{"current":false,"icon":"account","id":"account","link":"account","disabled":false,"text":"Dein Account"},"-",{"icon":"logout","id":"logout","link":"logout","text":"Abmelden"}],"$permissions":{"access":{"account":true,"languages":true,"panel":true,"site":true,"system":true,"users":true},"files":{"changeName":true,"create":true,"delete":true,"read":true,"replace":true,"update":true},"languages":{"create":true,"delete":true},"pages":{"changeSlug":true,"changeStatus":true,"changeTemplate":true,"changeTitle":true,"create":true,"delete":true,"duplicate":true,"preview":true,"read":true,"sort":true,"update":true},"site":{"changeTitle":true,"update":true},"users":{"changeEmail":true,"changeLanguage":true,"changeName":true,"changePassword":true,"changeRole":true,"create":true,"delete":true,"update":true},"user":{"changeEmail":true,"changeLanguage":true,"changeName":true,"changePassword":true,"changeRole":true,"delete":true,"update":true}},"$license":true,"$multilang":true,"$searches":{"pages":{"icon":"page","label":"Seiten","id":"pages"},"files":{"icon":"image","label":"Dateien","id":"files"},"users":{"icon":"users","label":"Accounts","id":"users"}},"$url":"https://www.domain.tld/panel/webmentions?language=de","$user":{"email":"my.email@gmail.com","id":"kOBKf1QA","language":"de","role":"admin","username":"Frederik"},"$view":{"breadcrumb":[],"code":200,"path":"webmentions","timestamp":1640013463442,"props":{"summary":false,"targets":false,"sources":false,"version":{"local":"1.2.2","latest":"1.2.2","updateAvailable":false,"error":false}},"search":null,"label":"Webmentions","icon":"live","menu":true,"link":"webmentions","id":"webmentions","breadcrumbLabel":"Webmentions","title":"Webmentions","component":"k-webmentions-view"}}

This is the config line for the sqlite path which worked before changing the komments config:

'mauricerenck.indieConnector.sqlitePath' => 'site/logs/',

If I remove the komments config the error is gone. What could be the issue here?

@MaluNoPeleke
Copy link
Contributor Author

Fixed it by including the indieconnector settings as well within the mauricerenck namespace:

    'mauricerenck' => [
      'komments' => [
          'auto-delete-spam' => false,
          'send-mention-on-update' => false,
          'notifications' => [
              'email' => [
                  'enable' => true,
                  'sender' => 'my.email@gmail.com',
                  'emailReceiverList' => ['kontakt@domain.tld'],
              ]
          ]
      ],
      'indieConnector' => [
        'secret' => 'webkomments',
        'stats' => true,
        'sqlitePath' => 'site/logs/'
      ]
    ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant