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

error after install #1

Closed
awrog opened this issue Aug 1, 2022 · 15 comments
Closed

error after install #1

awrog opened this issue Aug 1, 2022 · 15 comments

Comments

@awrog
Copy link

awrog commented Aug 1, 2022

This plugin looks promising!!

After installing the plugin the menu item 'Page Stats' displays

Screenshot - 8_1_2022 , 1_03_13 PM

..../public_html/user/plugins/page-stats/data contains a zip-file: geolocation.sqlite.zip, no sqlite db-file
To investigate I manually extracted 'geolocation.sqlite'

Still no page when I click the menu item.

The plugin is collecting data in user/data/page-data.sqlite

Turning the plugin 'off' and 'on' again does not solve the problem.

@awrog
Copy link
Author

awrog commented Aug 1, 2022

I could not help noticing this typo

Screenshot - 8_1_2022 , 1_49_15 PM

@francodacosta
Copy link
Owner

francodacosta commented Aug 1, 2022 via email

@awrog
Copy link
Author

awrog commented Aug 1, 2022

Hi Franco, Thanks for you swift reply.
I've re-installed and saved the plugin settings page.
/public_html/user/config/plugins contains the file page-stats.yaml with content:

enabled: true
db: user/data/page-data.sqlite
log_admin: false
log_bot: false

Log attached:
page-stat-log.zip

@francodacosta
Copy link
Owner

there might be a typo, try adding log_bots: false to the config please

@awrog
Copy link
Author

awrog commented Aug 1, 2022

Franco, adding log_bots: false helped to prevent the errors in the log.

The page-stats 404-error is still there.

Advice:
I would store the data in .../user/data/page-data/page-data.sqlite
instead of
.../user/data/page-data.sqlite
That's more clear/manageable :-)

@francodacosta
Copy link
Owner

francodacosta commented Aug 1, 2022 via email

@francodacosta
Copy link
Owner

@awrog what version of grav and admin plugin are you using ?

I'm on Grav v1.7.34 - Admin v1.10.34

@awrog
Copy link
Author

awrog commented Aug 1, 2022 via email

@francodacosta
Copy link
Owner

is the admin route not /admin ?

@awrog
Copy link
Author

awrog commented Aug 1, 2022 via email

@francodacosta
Copy link
Owner

That's the problem!

I'm working on a fix now

@awrog
Copy link
Author

awrog commented Aug 1, 2022 via email

@francodacosta
Copy link
Owner

@awrog
Copy link
Author

awrog commented Aug 1, 2022 via email

@awrog
Copy link
Author

awrog commented Aug 2, 2022

The 'Page Stats' menu-entry works!

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

2 participants