Fatal Error Fatal Error
 

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]

Main Menu

Fatal Error

Started by flyingspatulas, May 23, 2007, 02:18:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flyingspatulas

I just upgraded from 1.3.5 to 1.4.10 and then got the Fatal Error message that said my table didn't exist. I searched the forums and followed everything I read, creating a new table in phpMyAdmin. Now I get this message:

QuoteFatal Error :

That's it. It doesn't tell me what the error is, just that it's fatal and that I'm apparently more of a moron than I thought. Any help would be appreciated - I'm at the end of my rope with this.

flyingspatulas


thejflo

Quote from: flyingspatulas on May 23, 2007, 02:18:19 AM

That's it. It doesn't tell me what the error is, just that it's fatal and that I'm apparently more of a moron than I thought. Any help would be appreciated - I'm at the end of my rope with this.


If it makes you feel any better, I got the same message, managed to fix it than literally in the same hour, somehow screwed it up again.  :-[ lol

This is what I have now:

Quote
Fatal error: Call to undefined function: strripos() in /home/juicyfla/public_html/gallery/plugins/remove_modify/codebase.php on line 11

It helps that its specific, but nothing I seem to do fixes the problem  ??? I'm tempted to just delete that part of the file, but than again, its better that I wait for some professional help before I mess something up again. lol

François Keller

#3
@flyingspatula: enable debug mode to see the error message
@bychance: not the same problem open a new thread please
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Joachim Müller


flyingspatulas

I did that, so now the error message I get is this:

QuoteWhile executing query "select user_id as id, user_password as password from `pogallery`.cpg1410_users where user_id=0" on Resource id #5

mySQL error: Table 'pogallery.cpg1410_users' doesn't exist

I suppose that's progress... but now what? :P

Joachim Müller

Re-create the missing table that the error message complains about from a backup then.

flyingspatulas

I recreated the tables, and now I get this lovely message:

QuoteWhile executing query "select user_id as id, user_password as password from `pogallery`.cpg1410_users where user_id=0" on Resource id #5

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

I searched the forums and couldn't find any answers that made sense to me. Any step-by-step, Coppermine For Dummies help would be wonderful. :)

Joachim Müller

Looks like you created the table, but failed to create the needed columns.

flyingspatulas

Fair enough, but how do I do that? I am seriously stupid when it comes to this sort of thing.

flyingspatulas

Okay, I managed to create all of the columns that I needed using this code and changing it accordingly for each error:

QuoteALTER TABLE `cpg1410_users` ADD `user_id` VARCHAR( 5 )

Now I get this error:

QuoteWhile executing query "SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES'" on 0

mySQL error: Unknown column 'p.aid' in 'on clause'

I tried to use the same code above to add the column 'p.aid' to table cpg1410_pictures (and cpg_albums) but there is no change in the error message, even though phpmyadmin said the query was successful.

Here is the debug info:

QuoteUSER:
------------------
Array
(
    [ID] => 617efe1b6b874b70c3df0f6a18002fc0
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `pogallery`.cpg1410_sessions where time<1180200058 and remember=0; (0.001s)
        [3] => delete from `pogallery`.cpg1410_sessions where time<1178994058; (0s)
        [4] => select user_id from `pogallery`.cpg1410_sessions where session_id=md5("34b55fabc60d5caba2233540b0719df5443667cb08cca11bec81dd4982c4e534"); (0s)
        [5] => select user_id as id, user_password as password from `pogallery`.cpg1410_users where user_id=0 (0s)
        [6] => 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 cpg1410_usergroups WHERE group_id in (3) (0.001s)
        [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 3 (0s)
        [8] => update `pogallery`.cpg1410_sessions set time='1180203658' where session_id=md5('34b55fabc60d5caba2233540b0719df5443667cb08cca11bec81dd4982c4e534'); (0s)
        [9] => DELETE FROM cpg1410_banned WHERE expiry < '2007-05-26 18:20:58' (0s)
        [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='189.169.96.66' OR ip_addr='189.169.96.66' OR user_id=0) AND brute_force=0 (0s)
        [11] => SELECT aid FROM cpg1410_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
        [12] => SELECT aid FROM cpg1410_albums (0s)
        [13] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = ''  ORDER BY pos (0s)
        [14] => SELECT aid FROM cpg1410_albums as a WHERE category = '0' (0s)
        [15] => SELECT count(*) FROM cpg1410_albums as a WHERE 1 (0s)
        [16] => SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    )

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

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

    ==========================
    Page generated in 0.062 seconds - 17 queries in 0.003 seconds - Album set : ; Meta set: AND aid IN (-1) ;
My gallery has been down for almost a week now and I'm at the end of my rope. Please help!

flyingspatulas

I ended up just reinstalling and starting from scratch. Thanks anyway.