No votes, rating or comments are showing No votes, rating or comments are showing
 

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

No votes, rating or comments are showing

Started by aunrea, November 27, 2005, 02:11:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aunrea

I intergrated my coppermine with phpbb, both were working fine before I did so but now coppermine will not show the ratings, votes or comments fields on the display image. I have the group permissions set to allow everyone but unregistered members to vote and comment, and I am logged in. The code is in the theme.php file.

Joachim Müller


aunrea

http://photos.spot-design.net

Username: tester
Password: test123

I just changed to debug mode and I get:

QuoteNotice: Undefined variable: meta_keywords in /homepages/23/d113818184/htdocs/photos/displayimage.php on line 646

at the top of the page.

Also the debug says:

USER:
------------------
Array
(
    [ID] => 5d387a187bbe9800696b5611d7dc9cde
    [am] => 1
    [liv] => Array
        (
            [0] => 216
            [1] => 217
            [2] => 218
            [3] => 219
            [4] => 220
        )

)

==========================
USER DATA:
------------------
Array
(
    [0] => 2
    [user_id] => 2
    [1] => aunrea
    [user_name] => aunrea
    [2] => 1
    [user_level] => 1
    [groups] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 14
        )

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg134_filetypes;
    [1] => SELECT user_id, username as user_name, user_level FROM `db113821432`.photos_sessions INNER JOIN `db113821432`.photos_users ON session_user_id = user_id WHERE session_id='eb9c988b9ec6cc8ef8856ba63435f8c4' AND session_user_id ='2' AND user_active='1'
    [2] => SELECT (ug.group_id + 5) as group_id FROM `db113821432`.photos_user_group as ug LEFT JOIN `db113821432`.photos_groups as g ON ug.group_id = g.group_id WHERE user_id = 2 AND user_pending = 0 AND group_single_user = 0
    [3] => 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 cpg134_usergroups WHERE group_id in (1,2,14)
    [4] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 1
    [5] => DELETE FROM cpg134_banned WHERE expiry < '2005-11-30 00:19:26'
    [6] => SELECT * FROM cpg134_banned WHERE ip_addr='203.105.94.204' OR ip_addr='203.105.94.204' OR user_id=2
    [7] => SELECT COUNT(*) from cpg134_pictures WHERE approved = 'YES'
    [8] => SELECT * FROM cpg134_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 1 ,1
    [9] => SELECT title, comments, votes, category, aid FROM cpg134_albums WHERE aid='4' LIMIT 1
    [10] => SELECT name, parent FROM cpg134_categories WHERE cid = '2'
    [11] => SELECT * FROM cpg134_exif WHERE filename = "albums/Month3/Dsc00474.jpg"
    [12] => 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 FROM cpg134_comments WHERE pid='219' ORDER BY msg_id ASC
    [13] => SELECT COUNT(*) from cpg134_pictures WHERE approved = 'YES'
    [14] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg134_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,10
)

==========================
GET :
------------------
Array
(
    [album] => lastup
    [cat] => 0
    [pos] => 1
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.25-standard-log
------------------
Coppermine version: 1.3.4
==========================
Module: gd
------------------
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.32 seconds - 15 queries in 0.049 seconds - Album set :

Joachim Müller

Please post a screenshot of coppermine's groups page

aunrea

#4
I ajust noticed that on my "batch add" page (when you are in one of the folders) I get:

QuoteNotice: Undefined variable: fullimagesize in /homepages/23/d113818184/htdocs/photos/searchnew.php on line 136

Notice: Undefined variable: fullimagesize in /homepages/23/d113818184/htdocs/photos/searchnew.php on line 137

I can still add the images just fine.

Here is my screenshot:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fspot-design.net%2Fimages%2Fscreenshot.jpg&hash=1dd1ac48322e0d10759c1b8d556dbaaababcfb27)

Also when I view an image I get this error:

QuoteNotice: Undefined variable: IPTC_data in /homepages/23/d113818184/htdocs/photos/include/iptc.inc.php on line 49

Notice: Undefined variable: meta_keywords in /homepages/23/d113818184/htdocs/photos/displayimage.php on line 646

Also when I went to edit a picture I get:

QuoteNotice: Undefined index: pwidth in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 45

Notice: Undefined index: pheight in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 46

Notice: Undefined index: user1 in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 50

Notice: Undefined index: user2 in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 51

Notice: Undefined index: user3 in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 52

Notice: Undefined index: user4 in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 53

Notice: Undefined variable: delete in /homepages/23/d113818184/htdocs/photos/editOnePic.php on line 58

I was still able to edit. I'm actually able to do everything but the comments and rating (since they don't appear).

Joachim Müller

turn off notices if they don't mean anything to you.

aunrea

OKay I did but I still have the problem of no comments or vote.

Joachim Müller


aunrea

lol it's the simpliest things that stump people.  ::)

Joachim Müller