forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Schnauzermom on October 03, 2006, 10:57:15 pm

Title: Error on e-mail notification of new comments
Post by: Schnauzermom on October 03, 2006, 10:57:15 pm
Coppermine 1.49, bridged to phpBB 2.0.21. Applied the mod, and my users couldn't click on thumbnails without received a database error.

I made the changes documented here:

http://forum.coppermine-gallery.net/index.php?topic=35177.0

..which fixed that error.

However, if they turn ON e-mail notification of new comments, the commenting user receives:

There was an error while processing a database query.

While executing query "SELECT n.user_id, n.mail_sent, u.user_email, u.username, p.owner_id, p.owner_name, p.title, p.filename  FROM cpg148_notify AS n INNER JOIN `db169772585`.phpbb_users AS u ON n.user_id=u.user_id  INNER JOIN cpg148_pictures AS p ON n.picture_id=p.pid WHERE n.picture_id=129" on Resource id #17

mySQL error: Table 'db169772585.cpg148_notify' doesn't exist

File: /homepages/24/d166997933/htdocs/scrapdawgs/gallery/include/functions.inc.php - Line: 248

USER:
------------------
Array
(
    [ID] => e2e21531c0d085fa8a85bfb84e087b3c
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

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

    [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] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [msg_author] => Schnauzermom
    [msg_body] => test
    [event] => comment
    [pid] => 129
    [submit] => OK
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support:
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 2
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.176 seconds - 18 queries in 0.022 seconds - Album set : ; Meta set: ;


I suspect this is a continuation of the first error that I resolved, but I'll freely admit I don't know enough to fix it. So, I've turned this function off for now.

Any assistance would be great!
Title: Re: Error on e-mail notification of new comments
Post by: Joachim Müller on October 04, 2006, 12:47:03 am
http://forum.coppermine-gallery.net/index.php?topic=36859.msg173389#msg173389
Title: Re: Error on e-mail notification of new comments
Post by: Schnauzermom on October 04, 2006, 01:45:34 am
I've been thru those threads, a few times. One of them points to the change I've already made, which fixed the problem of folks getting a database error when clicking on a thumbnail.

That bit didn't fix the e-mail reply problem, tho. And if there's something else there, I'm just not seeing it.
Title: Re: Error on e-mail notification of new comments
Post by: Stramm on October 04, 2006, 09:02:29 am
will install phpbb and see if I can reproduce this
Title: Re: Error on e-mail notification of new comments
Post by: Stramm on October 04, 2006, 11:16:52 am
Update the modpack (link in my sig) and please tell me if things work for you. You won't have to do the changes in the link you posted above anymore.

Changes done:
If there are no joins possible cause cpg and the forum are in different databases then the script will use an extra query for
a) the avatar URL in the comments
b) to get the email of subscribed users to send them a comment notification

If joins are possible then it behaves as usual and doesn't do the extra query
Title: Re: Error on e-mail notification of new comments
Post by: Schnauzermom on October 04, 2006, 05:39:41 pm
I updated those 4 files, in their appropriate directories, and now I'm back to having a database error when clicking on a thumbnail. I did disable, then re-enable, bridging....? I also put back the original udb_base.inc.php, and that made no difference.
Title: Re: Error on e-mail notification of new comments
Post by: Stramm on October 04, 2006, 06:32:01 pm
nope, update the entire modpack with  'Modpack v2 for CPG 1.4.9 bridge support'
http://stramm.st.funpic.org/displayimage.php?pos=-145

then, if you want, the 4 files ('Modpack v2 for CPG 1.4.9 cropping fix')
this never was available for the modpack and I didn't intend to do it for CPG 1.4. But cause I've done it for the next CPG I've ported it back
Title: Re: Error on e-mail notification of new comments
Post by: Schnauzermom on October 04, 2006, 07:08:22 pm
My misunderstanding - sorry!  ::)

I've applied the updated modpack, and those 4 files. Both errors are gone! Thanks so much!