Logging problem Logging problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Logging problem

Started by tom123, November 28, 2006, 11:04:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tom123

I activated the logging and statistics features to the following settings:

logging mode: all
log ecards: yes
keep detailed vote statistics: yes
keep detailed hit statistics: yes

Even with all these features I get no logs to show up. I updated the database, logged in with just a standard user account and voted on multiple photos and still nothing. Not even a single log under the log is ever created. Am I missing something? Is there something I forgot to activate or check?

Joachim Müller

When ecard logging is turned on, you can review the ecards send from that point on using the "review ecards" link in the admin menu.
Detailed vote and hit stats record additional info per pic. There's no overall log entry. Instead, access to the individual pic's additional stats is available for the admin on the intermediate image screen (displayimage.php): expand the "picture information" section, then click "details" next to the votes and hits entries. There will only such a link if actual details have been recorded and the feature is turned on in Coppermine's config.

If you're not sure about a particular feature that you can toggle in Coppermine's config, use the help icons next to the feature - it will explain what the feature actually does. The help info is taken from the documentation, which should be the first place you visit if you have questions on Coppermine (before asking questions on the board). In your case:
QuoteLog ecards

When enabled, all ecards that are being sent are as well written into the database, where the coppermine admin can view them. Before switching this option on, make sure that logging is legal in your country. It is also advisable to notify your users that all ecards are being logged (preferrably on the registration screen).

[cpg1.3.0 or better required]
QuoteKeep detailed vote statistics

Enabling this option records:

   1. Each vote separately
   2. IP Address
   3. Referer
   4. Browser
   5. Operating System

of the voter.

As the statistics are being kept per file, the link to the stats can be accessed on the individual file's page (displayimage.php) by clicking the link in the file info section to open the stats pop-up.

Note: The total votes may not match if you enable details and do not reset the earlier votes.
QuoteKeep detailed hit statistics

Enabling this option records:

   1. Each vote separately
   2. IP Address
   3. Search Keyword, if the referer is Google, Yahoo! or Lycos search engines
   4. Referer
   5. Browser
   6. Operating System

of the visitor.

As the statistics are being kept per file, the link to the stats can be accessed on the individual file's page (displayimage.php) by clicking the link in the file info section to open the stats pop-up.

Note: The total hits may not match if you enable details and do not reset the earlier hits.

tom123

Thank you for the quick response and the explanation. I did read those parts in the documentation but was under the impression there would be an overall log. Still a good way to track on each image even if it only shows the IP and not a username.

What exactly are the logs that are active when logging mode is turned on since there is a link to the logs section (which contained nothing)?

Joachim Müller

The logs are being stored inside the "logs" sub-folder of your coppermine folder as files. You have to make sure that this folder is writable for the script if you want logs to be created. However, they don't track what individual users do.
We haven't put much effort into logging user actions, simply because there are various methods for users to circumvent tracking and subsequently usefull logging. The logging stuff that exists is mainly suppossed for debugging and troubleshooting purposes.

tom123

I assume this means setting the logs folder to 757 or 777 in order to make it writable for the script used in the process.

lamama

yes.
On most servers, it's 777

Note to whoever edits the documentation:
Could it be that there is no hint to CHMOD the 'logs' folder to 777 in the entire documentation yet?
And maybe include/makers folder too?

Joachim Müller

Quote from: lamama on November 29, 2006, 12:18:09 AM
Could it be that there is no hint to CHMOD the 'logs' folder to 777 in the entire documentation yet?
That's possible (I just checked ;). Thanks for pointing this out, I just edited the permissions section of the docs accordingly (both stable and devel branch).