Advanced search  

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

Pages: [1]   Go Down

Author Topic: Views Counter stays at 0  (Read 3239 times)

0 Members and 1 Guest are viewing this topic.

zotigo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Views Counter stays at 0
« on: August 30, 2007, 10:47:45 am »

Hi, I have been reading the other posts but could not find the solution (maybe its just me). Now here is the problem, I have the counter of most viewed pictures at 0, same is true for all the pictures individually. I have tried changing my Cookie setting but still no luck. The gallery address is www.pak-pigeons.com/gallery
Hope you guys could help me!

Debug Mode output:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 3bfd99026749e103407b42df3a8658d1
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
            [0] => 3
        )

    [group_quota] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [upload_form_config] => 3
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [custom_user_upload] => 0
    [disk_max] => 0
    [disk_min] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [has_admin_access] => 0
    [group_name] => Guests
    [can_see_all_albums] => 0
    [group_id] => 3
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1411_filetypes; (0s)
    [1] => select * from cpg1411_plugins order by priority asc; (0s)
    [2] => delete from `gallery`.cpg1411_sessions where time<1188466909 and remember=0; (0.001s)
    [3] => delete from `gallery`.cpg1411_sessions where time<1187260909; (0s)
    [4] => select user_id from `gallery`.cpg1411_sessions where session_id=md5("f2353eced188d7ffe379dd808e7d22fd18d96d92ed2b0ce1cf151c8ad9cdf7a8"); (0s)
    [5] => select user_id as id, user_password as password from `gallery`.cpg1411_users where user_id=0 (0s)
    [6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg1411_usergroups WHERE group_id in (3) (0s)
    [7] => SELECT group_name FROM  cpg1411_usergroups WHERE group_id= 3 (0s)
    [8] => update `gallery`.cpg1411_sessions set time='1188470509' where session_id=md5('f2353eced188d7ffe379dd808e7d22fd18d96d92ed2b0ce1cf151c8ad9cdf7a8'); (0s)
    [9] => DELETE FROM cpg1411_banned WHERE expiry < '2007-08-30 10:41:49' (0.001s)
    [10] => SELECT * FROM cpg1411_banned WHERE (ip_addr='195.212.199.56' OR ip_addr='195.212.199.56' OR user_id=0) AND brute_force=0 (0s)
    [11] => SELECT aid FROM cpg1411_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
    [12] => SELECT aid FROM cpg1411_albums (0s)
    [13] => SELECT title,keyword from cpg1411_albums WHERE aid='22' (0s)
    [14] => SELECT COUNT(*) from cpg1411_pictures WHERE ((aid='22'  AND aid NOT IN (23) ) ) AND approved='YES' AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26)  (0s)
    [15] => SELECT * from cpg1411_pictures WHERE ((aid='22'  AND aid NOT IN (23) ) ) AND approved='YES' AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26)  ORDER BY filename ASC  LIMIT 8 ,1 (0s)
    [16] => SELECT title, comments, votes, category, aid FROM cpg1411_albums WHERE aid='22' LIMIT 1 (0s)
    [17] => SELECT user_name as user_name FROM `gallery`.cpg1411_users WHERE user_id = '2' (0s)
    [18] => SELECT cid, name, parent FROM cpg1411_categories WHERE cid = '1' (0s)
    [19] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM cpg1411_comments WHERE pid='9' ORDER BY msg_id ASC (0s)
    [20] => SELECT title,keyword from cpg1411_albums WHERE aid='22' (0s)
    [21] => SELECT COUNT(*) from cpg1411_pictures WHERE ((aid='22'  AND aid NOT IN (23) ) ) AND approved='YES' AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26)  (0s)
    [22] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg1411_pictures WHERE ((aid='22'  AND aid NOT IN (23) ) ) AND approved='YES' AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26)  ORDER BY filename ASC  LIMIT 4 ,8 (0s)
    [23] => SELECT count(*) from cpg1411_comments where pid=3 and msg_id!=0 (0s)
    [24] => SELECT count(*) from cpg1411_comments where pid=12 and msg_id!=0 (0s)
    [25] => SELECT count(*) from cpg1411_comments where pid=11 and msg_id!=0 (0s)
    [26] => SELECT count(*) from cpg1411_comments where pid=10 and msg_id!=0 (0s)
    [27] => SELECT count(*) from cpg1411_comments where pid=9 and msg_id!=0 (0s)
    [28] => SELECT count(*) from cpg1411_comments where pid=8 and msg_id!=0 (0s)
)

==========================
GET :
------------------
Array
(
    [album] => 22
    [pos] => 8
)

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.138 seconds - 29 queries in 0.002 seconds - Album set : AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26) ; Meta set: AND aid IN (6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,26) ;
« Last Edit: August 30, 2007, 10:48:39 am by Hein »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Views Counter stays at 0
« Reply #1 on: August 30, 2007, 10:52:56 am »

When logged in as admin it does not count. Can you post a non-admin login for your site ?

See if changing the path to your cookies helps. Change it to ./ instead of just /
Logged

zotigo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Views Counter stays at 0
« Reply #2 on: August 30, 2007, 11:32:52 am »

Thanks hein, I hav enow changed the Coockies to ./. It still is not working. following is the user name and pw.:

user: kaka
pw: test123

Regards,

Zotigo
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Views Counter stays at 0
« Reply #3 on: August 30, 2007, 02:09:03 pm »

I get this also when i view an image :

Code: [Select]
/include/themes.inc.php

    * Notice line 2205: Undefined index: uid
    * Notice line 2281: Undefined variable: ecard_tgt
    * Notice line 2282: Undefined variable: ecard_title
    * Notice line 2289: Undefined variable: report_tgt
    * Notice line 1908: Undefined index: uid

/displayimage.php

    * Notice line 319: Undefined variable: meta_keywords

At this point i am not sure what is causing the counter to stop working.
Logged

zotigo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Views Counter stays at 0
« Reply #4 on: August 30, 2007, 02:25:18 pm »

Many thanks for trying Hein. I can not login to the gallery anymore? Is it because of the Coockies setting that we changed? from / to ./

Please help me resolve it  :)

Regards,

Zotigo
Logged

Nibbler

  • Guest
Re: Views Counter stays at 0
« Reply #5 on: August 30, 2007, 03:03:18 pm »

./ is not a valid cookie path, set it back to /
If you can't login you'll need to fix it via phpmyadmin.

You have your cookie prefix set to pak-pigeons.com/gallery which is also not valid. Set it back to the default  or to 'gallery'.

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.