Jump to content

PageViewStatistic for ProcessWire


tcnet
 Share

Recommended Posts

2 hours ago, tcnet said:

There are not a single ERROR MESSAGE in your post! These are Warnings and Notices which you get when you run ProcessWire in debug mode.

And why they not appear? Because your ProcessWire DON'T run in debug mode.

Sorry about that! Yes these messages are not error messages. But when you open a page and see a few hundred warnings you can get a bit nervous 🙂

On my live site I don't get these messages at all, despite the debug mode set to off. So only my local environment causes the issue when there is no IP address assigned to my virtual host.
 

2 hours ago, tcnet said:

I made a change in line 389. It seems that getenv('REMOTE_ADDR') doesn't work with local IP addresses. Please upgrade to version 1.1.6.

Thanks for the fast help! I tried to upgrade via the PW upgrades module but this time I got a real error message:

Modules: Error upgrading module (ProcessPageViewStat): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS usr int(10) unsigned' at line 1

 

Link to comment
Share on other sites

I read the posts on the previous pages, it seems that more people have trouble with upgrading the module.

I will stick to the module as it is now. On the live site it runs fine and that is where the statistics do matter.

Link to comment
Share on other sites

2 minutes ago, Stefanowitsch said:

I read the posts on the previous pages, it seems that more people have trouble with upgrading the module.

I will stick to the module as it is now. On the live site it runs fine and that is where the statistics do matter.

Which database you using?

Link to comment
Share on other sites

10 minutes ago, Stefanowitsch said:

phpMyAdmin 4.9.7

It's a mySQL Database with a utf8_general_ci collation.

Can you check which mySQL version?

Link to comment
Share on other sites

On 5/19/2022 at 1:41 PM, Arne said:

@tcnet Is it possible to export to CSV not only by day but also for the views like "last 30 days" for the data it shows there?

Maybe.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...