forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: flyingspatulas on May 23, 2007, 02:18:19 am

Title: Fatal Error
Post by: flyingspatulas on May 23, 2007, 02:18:19 am
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:

Quote
Fatal 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.
Title: Re: Fatal Error
Post by: flyingspatulas on May 23, 2007, 02:20:36 am
Oops! Forgot to give the link to my gallery:

http://www.robert-pattinson.co.uk/gallery/index.php
Title: Re: Fatal Error
Post by: thejflo on May 23, 2007, 05:06:29 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
Title: Re: Fatal Error
Post by: François Keller on May 23, 2007, 07:12:09 am
@flyingspatula: enable debug mode to see the error message
@bychance: not the same problem open a new thread please
Title: Re: Fatal Error
Post by: Joachim Müller on May 23, 2007, 08:19:06 am
@flyingspatula: enable debug mode to see the error message
see http://coppermine-gallery.net/tutorial/debug_mode.php
Title: Re: Fatal Error
Post by: flyingspatulas on May 23, 2007, 10:59:20 pm
I did that, so now the error message I get is this:

Quote
While 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
Title: Re: Fatal Error
Post by: Joachim Müller on May 24, 2007, 08:36:52 am
Re-create the missing table that the error message complains about from a backup then.
Title: Re: Fatal Error
Post by: flyingspatulas on May 24, 2007, 11:17:40 pm
I recreated the tables, and now I get this lovely message:

Quote
While 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. :)
Title: Re: Fatal Error
Post by: Joachim Müller on May 25, 2007, 08:27:20 am
Looks like you created the table, but failed to create the needed columns.
Title: Re: Fatal Error
Post by: flyingspatulas on May 25, 2007, 02:32:12 pm
Fair enough, but how do I do that? I am seriously stupid when it comes to this sort of thing.
Title: Re: Fatal Error
Post by: flyingspatulas on May 26, 2007, 08:28:41 pm
Okay, I managed to create all of the columns that I needed using this code and changing it accordingly for each error:

Quote
ALTER TABLE `cpg1410_users` ADD `user_id` VARCHAR( 5 )

Now I get this error:

Quote
While 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:

Quote
USER:
------------------
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!
Title: Re: Fatal Error
Post by: flyingspatulas on May 28, 2007, 02:44:03 am
I ended up just reinstalling and starting from scratch. Thanks anyway.