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: Fatal Error  (Read 4293 times)

0 Members and 1 Guest are viewing this topic.

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Fatal Error
« on: June 25, 2004, 05:49:51 am »

I keep getting this

Notice: Undefined index: debug_mode in /home/jloven/public_html/picturegallery/include/functions.inc.php on line 101
Fatal error :
There was an error while processing a database query

???? i switched it from my old domain to a new domain and now it's all messed up :(

http://j-love.net/picturegallery

what do i do?

the config is right, i triple checked it
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal Error
« Reply #1 on: June 25, 2004, 09:40:41 am »

enable debug_mode to check what query actually fails.

GauGau
Logged

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Fatal Error
« Reply #2 on: June 25, 2004, 02:49:50 pm »

and i would enable that how?

sorry i'm confused w/ php.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal Error
« Reply #3 on: June 26, 2004, 08:51:56 am »

enable debug mode in coppermine config (at the very bottom of the screen). If you can't go to config at all, use phpMyAdmin, browse the coppermine config table (cpg11d_config or similar) and set "debug_mode" from "0" to "1".

GauGau
Logged

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Fatal Error
« Reply #4 on: June 28, 2004, 12:31:16 am »

i changed it and it's still saying the same thing?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal Error
« Reply #5 on: June 28, 2004, 08:18:52 am »

You should see details which query actually fails. Please post a screenshot.

GauGau
Logged

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Fatal Error
« Reply #6 on: June 28, 2004, 02:37:37 pm »

it doesn't say,

i just reinstalled a new version and i'm uploading eah picture manually..

is there a way to move the albums into the new directory? or i really do have to do each one, one by one?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal Error
« Reply #7 on: June 29, 2004, 09:52:34 am »

I don't get your point. You're recommended to upload/move around pics with ftp and then use batch-add. Defining the albums dir to be outside of the coppermine folder is possible, but not recommended. You can do so in coppermine config.

GauGau
Logged

peter_hun

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 1
Re: Fatal Error
« Reply #8 on: July 16, 2004, 11:14:06 pm »

Hi,

I've got the same problem:

Notice: Undefined index: debug_mode in /disk/raid/t/e/myhostname/pictures/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query

What's went wrong??? :o

Debug info:
USER:
------------------
Array
(
    [ID] => 9d1a48ae4c638cfeb0c50df8ce0eeec8
    [am] => 1
    [liv] => Array
        (
           
  • => 3
  • [1] => 2
                [2] => 1
                [3] => 127
                [4] => 126
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => ********
    [user_password] => ********
    [user_lastvisit] => 2004-07-16 22:01:06
    [user_regdate] => 2004-07-16 22:01:06
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg_filetypes;
  • [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '1d8c68aeb928bff77decdcf215e11500'
        [2] => 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 cpg_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg_banned WHERE expiry < 1090012686
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='xx.xxx.xx.xxx' OR ip_addr='xx.xxx.xx.xxx' OR user_id=1
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.4 - OK
    ------------------
    mySQL version: 4.0.16-log
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    module doesn't exist
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Page generated in 0.06 seconds - 6 queries in 0.003 seconds - Album set :
« Last Edit: July 16, 2004, 11:24:28 pm by peter_hun »
Logged

Keksz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: Fatal Error
« Reply #9 on: June 15, 2005, 02:31:46 pm »

nobody know the real answer

if you have a lot of visitors the mysql sucks, and you get query error

so i can't use this coppermine gallery :(
Logged

Nibbler

  • Guest
Re: Fatal Error
« Reply #10 on: June 15, 2005, 03:07:48 pm »

No one on this thread has yet posted the mysql error message as requested. Without that we cannot know what the problem is.
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 15 queries.