Hey, I have mambo working togehter with coppermine 1.3.3
each time i wanna send an ecard as logged in user i get the following error report
QuoteWhile executing query "SELECT username as user_name, email as user_email, registerDate as user_regdate, FROM `db106091_1`.mos_users WHERE id = '2'" on 0
mySQL error: You have an error in your SQL syntax near 'FROM `db106091_1`.mos_users WHERE id = '2'' at line 1
The Debug-Info output looks like that:
QuoteUSER:
------------------
Array
(
[ID] => 98b6c8f8595dc4960ee17e7b7446384c
[am] => 1
[liv] => Array
(
- => 2537
[1] => 2557
[2] => 2559
[3] => 2534
[4] => 2535
)
)
==========================
USER DATA:
------------------
Array
(
- => 2
[user_id] => 2
[1] => admin
[user_name] => admin
[2] => 25
[user_level] => 25
[groups] => Array
(
- => 2
[1] => 30
)
[group_quota] => 2048
[can_rate_pictures] => 1
[can_send_ecards] => 1
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 0
[upload_form_config] => 3
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 2048
[disk_min] => 2048
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Members
[can_see_all_albums] => 0
[group_id] => 2
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg133_filetypes;
[1] => SELECT u.id as user_id, u.username as user_name, u.gid as user_level FROM `db106091_1`.mos_users AS u LEFT JOIN `db106091_1`.mos_session as s ON u.username = s.username WHERE u.username='admin' AND u.password='f776c49c2462d5b144cc57cfb25aec76' AND s.session_id IS NOT NULL AND block='0'
[2] => SELECT (ug.group_id + 5) as group_id FROM `db106091_1`.mos_core_acl_groups_aro_map as ug LEFT JOIN `db106091_1`.mos_core_acl_aro as g ON ug.aro_id = g.aro_id WHERE g.value = 2
[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 cpg133_usergroups WHERE group_id in (2,30)
[4] => SELECT group_name FROM cpg133_usergroups WHERE group_id= 2
[5] => DELETE FROM cpg133_banned WHERE expiry < '2006-01-05 10:57:28'
[6] => SELECT * FROM cpg133_banned WHERE ip_addr='85.25.104.221' OR ip_addr='85.25.104.221' OR user_id=2
[7] => SELECT username as user_name, email as user_email, registerDate as user_regdate, FROM `db106091_1`.mos_users WHERE id = '2'
)
==========================
GET :
------------------
Array
(
[album] => 32
[pid] => 2534
[pos] => 1
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 3.23.58-log
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/local/mysql/include
MYSQL_LIBS -L/usr/local/mysql/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
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/local/lib/php | .:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 90 | 90
max_input_time | -1 | -1
upload_max_filesize | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 0.079 seconds - 8 queries in 0.002 seconds - Album set :
Can anyone tell me what the hell that means ? *lol*
please.... I'm becoming desperate :-p
there's no official support for cpg1.3.x bridged with mambo. I suggest you upgrade your coppermine install to cpg1.4.3.
You shouldn't run cpg1.3.3 anyway, as it contains security flaws. Upgrade at least to cpg1.3.5