Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Database error when clicking ecard  (Read 4408 times)

0 Members and 1 Guest are viewing this topic.

rgarrison

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Solved]: Database error when clicking ecard
« on: April 05, 2008, 05:36:04 pm »

They upgraded my PHP yesterday to 5.2.5 and now I have weird things in my gallery.

When you click on ecard on any picture you get a There was an error while processing a database query:

While executing query "SELECT *, member_name AS user_name,
                                                                                email_address AS user_email,
                                                                                ddate_registered AS user_regdate,
                                                                                location AS user_location,
                                                                                website_url AS user_website

                                                                                FROM  `btbforum`.smf_members WHERE id_member = '1'" on Resource id #6

mySQL error: Unknown column 'ddate_registered' in 'field list'

File: /var/www/vhosts/bonniebacon.com/httpdocs/photogallery/include/functions.inc.php - Line: 249

USER:
------------------
Array
(
    [ID] => d0f1e2bd4bea5e7f16f8f4ce67cbcc55
    [am] => 1
    [lang] => english
    [theme] => water_drop
    [liv] => Array
        (
           
  • => 22
  • [1] => 68
                [2] => 67
                [3] => 69
                [4] => 162
            )

       
[sort] => pd
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => rgarrison
    [groups] => Array
        (
           
  • => 101
  • [1] => 104
            )

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

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
  • [1] => select * from cpg14x_plugins order by priority asc; (0.001s)
        [2] => SELECT * FROM cpg14x_bridge (0.001s)
        [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 cpg14x_usergroups WHERE group_id in (101,104) (0.001s)
        [4] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 101 (0.001s)
        [5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.001s)
        [6] => DELETE FROM cpg14x_banned WHERE expiry < '2008-04-05 15:31:28' (0.001s)
        [7] => SELECT * FROM cpg14x_banned WHERE (ip_addr='24.1.8.138' OR ip_addr='24.1.8.138' OR user_id=1) AND brute_force=0 (0.001s)
        [8] => SELECT *, member_name AS user_name,
                                                                                    email_address AS user_email,
                                                                                    ddate_registered AS user_regdate,
                                                                                    location AS user_location,
                                                                                    website_url AS user_website

                                                                                    FROM  `btbforum`.smf_members WHERE id_member = '1' (0.001s)
        [9] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
       
[album] => 9
    [pid] => 171
    [pos] => 4
    [ery] =>
    [ecard_php?album] => 9
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.2.5 - OK
------------------
mySQL version: 5.0.45
------------------
Coppermine version: 1.4.16(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.45
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear:/usr/share/php | .:/usr/share/pear:/usr/share/php
open_basedir | /var/www/vhosts/bonniebacon.com/httpdocs:/tmp | 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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.244 seconds - 10 queries in 0.01 seconds - Album set : ; Meta set: ;
« Last Edit: April 05, 2008, 09:33:35 pm by Nibbler »
Logged

Nibbler

  • Guest
Logged

rgarrison

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Database error when clicking ecard
« Reply #2 on: April 05, 2008, 07:52:07 pm »

That did it.  Sorry I searched but didn't find that one.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.