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: Help Critical Error  (Read 3230 times)

0 Members and 1 Guest are viewing this topic.

melons

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Help Critical Error
« on: June 16, 2005, 10:14:06 am »

Hi

We have the following message on our gallery: There was an error while processing a database query.

Pair our hosting company say: We are currently not seeing any problems on your database server, and the error message this script generates does not contain any details. Is it possible to configure this gallery script to generate a log file? This might give more details about where the problem lies.

Can anyone help please with this.

Thanks

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help Critical Error
« Reply #1 on: June 16, 2005, 10:32:37 am »

enable debug mode in coppermine's config to see a detailed error. If you can't access coppermine's config, use a tool like phpMyAdmin, browse coppermine's config table and manually enable debug mode there by setting the value to "1" in the corresponding row.
Logged

melons

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Help Critical Error
« Reply #2 on: June 16, 2005, 02:09:45 pm »

 :)Thanks for that I have the following message from the debug mode:

Code: [Select]
USER:
------------------
Array
(
    [ID] => ******
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [0] => 2
    [user_id] => 2
    [1] => *****
    [user_name] => *****
    [2] => 1
    [user_level] => 1
    [groups] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 674
            [3] => 675
            [4] => 676
            [5] => 677
        )

    [group_quota] => 1024
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [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] => 1024
    [disk_min] => 1024
    [ufc_max] => 3
    [ufc_min] => 3
    [has_admin_access] => 1
    [group_name] => Admin
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM gallery132filetypes;
    [1] => SELECT user_id, username as user_name, user_level FROM `*****_****poetry`.sessions INNER JOIN `*****_****poetry`.users ON session_user_id = user_id WHERE session_id='29f411eb0bee0f984141e142a73a75e9' AND session_user_id ='2' AND user_active='1'
    [2] => SELECT (ug.group_id + 5) as group_id FROM `*****_****poetry`.user_group as ug LEFT JOIN `*****_****poetry`.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 gallery132usergroups WHERE group_id in (1,2,674,675,676,677)
    [4] => SELECT group_name FROM  gallery132usergroups WHERE group_id= 1
    [5] => DELETE FROM gallery132banned WHERE expiry < 1118921689
    [6] => SELECT * FROM gallery132banned WHERE ip_addr='193.128.25.20' OR ip_addr='193.128.25.20' OR user_id=2
    [7] => SELECT cid, name, description, thumb FROM gallery132categories WHERE parent = ''  ORDER BY pos
    [8] => SELECT aid FROM gallery132albums as a WHERE category>=10000
    [9] => SELECT count(*) FROM gallery132pictures as p, gallery132albums as a WHERE p.aid = a.aid AND category >= 10000
)

==========================
GET :
------------------
Array
(
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.13-standard-log
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
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.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient ==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 4194304 | 4194304
post_max_size | 8M | 8M
==========================
Page generated in 0.064 seconds - 10 queries in 0.006 seconds - Album set :
-------------------------------------------------

Can someone please help identify the problem.

Thanks

Mel
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Help Critical Error
« Reply #3 on: June 16, 2005, 05:43:05 pm »

Post the actual error message, not the debug output.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.