coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: St. Anger on December 16, 2005, 04:24:07 AM

Title: Can't login after upgrade
Post by: St. Anger on December 16, 2005, 04:24:07 AM
I upgraded from CPG 1.3.x to 1.4.2 and now when I go to my gallery I can't login. All pictures and albums are intact, but I can't login. It says:

Quote*** Couldn't log in. Try again ***

I did have my gallery bridged with IPB 2.1 before I upgraded. I *think* the problem may be there.

My gallery's URL is: http://www.metcoverart.com/gallery
I'm using 1.4.2's default Classic theme, so it's not a matter of theme problems.

What can I do? ???
Title: Re: Can't login after upgrade
Post by: artistsinhawaii on December 16, 2005, 05:42:40 AM
Are you using the same theme that you previously used for 1.3?
If so, you will have to modify that theme to work under 1.4x before the login/logout functions work properly.

try loggin in using the following to see if that is indeed the case:

http://www.metcoverart.com/gallery/index.php?theme=classic (http://www.metcoverart.com/gallery/index.php?theme=classic)


Dennis
Title: Re: Can't login after upgrade
Post by: St. Anger on December 16, 2005, 02:35:50 PM
Yes, I was already using CPG 1.4.2's Classic theme; I've made no modifications to it.
Title: Re: Can't login after upgrade
Post by: Nibbler on December 16, 2005, 03:31:53 PM
You need to login with the original coppermine admin account you created during installation and then re-enable the bridge with the bridge manager.
Title: Re: Can't login after upgrade
Post by: St. Anger on December 16, 2005, 10:22:54 PM
Do I do the "Start Bridging Wizard" option? I thought I read somewhere in the installation manual that any current pictures would be deleted? I can't afford that to happen...
Title: Re: Can't login after upgrade
Post by: Nibbler on December 16, 2005, 10:24:47 PM
It doesn't say that. If you were bridged before then you can just rebridge using the bridge manager.
Title: Re: Can't login after upgrade
Post by: St. Anger on December 17, 2005, 06:39:03 AM
Ok, you're right, I got it bridged again. ;)

However, I now have a new problem. My old user groups from IPB weren't imported, so my Admin user group doesn't have admin properties for the gallery, so when I click Logout and click Login again to login with my default admin CPG account, it takes me to my forum to login, but I can't login using my default CPG admin account on the forum. Do you know how I can get around that?
Title: Re: Can't login after upgrade
Post by: Joachim Müller on December 17, 2005, 09:04:10 AM
once you have enabled bridging, you need to log in using the admin account from your bbs - that's the point of bridging, that's what it's about. Hasn't changed from cpg1.3.x to cpg1.4.x
Title: Re: Can't login after upgrade
Post by: St. Anger on December 17, 2005, 06:01:23 PM
There's a problem though -- after I'm logged in as the root admin on my forum and then go to my gallery, there's no gallery admin options, just user options.
Title: Re: Can't login after upgrade
Post by: St. Anger on December 17, 2005, 06:10:06 PM
In this topic there was a similar problem with the admin mode not showing up after CPG was bridged with a forum:

http://forum.coppermine-gallery.net/index.php?topic=24931.0
Title: Re: Can't login after upgrade
Post by: St. Anger on December 18, 2005, 09:01:06 AM
It doesn't give me any admin menu links, just user links, but if I go to the /admin.php page (while I'm logged in as admin at my forum) I get this error:

QuoteYou don't have permission to access this page.
File: /home/metcover/public_html/gallery/admin.php - Line: 45
Title: Re: Can't login after upgrade
Post by: St. Anger on December 19, 2005, 06:38:41 PM
I'll pay someone via PayPal or donate to Coppermine if they can help me get this problem fixed.

I have to get it fixed asap, it needs to be fixed by the 24th and have a new theme and I can't start on the new theme until this is fixed.
Title: Re: Can't login after upgrade
Post by: thoxic on December 20, 2005, 12:13:42 AM
I can't login too :(
I didn't understand why
Title: Re: Can't login after upgrade
Post by: RaZor Edge on December 20, 2005, 03:40:33 AM
Hi St. Anger

If you have access to phpMyAdmin on your server, look at your coppermine database in table "usergroups".

Look if there's a row with group_id=1

Mine was deleted when I used a bridge with my vbulletin forum.

If there is no group_id=1, insert a new row with group_id=1 , group_name=Administrator and has_admin_access=1.

Hope this will work for you!  ;)
Title: Re: Can't login after upgrade
Post by: St. Anger on December 20, 2005, 07:23:12 AM
I have a group_id row. Same thing or not?

Here's a screenshot of the usergroups table:

http://spawn.metpage.org/temp/table_usergroups.gif
Title: Re: Can't login after upgrade
Post by: RaZor Edge on December 20, 2005, 09:39:16 AM
Look at  these instructions:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg394.imageshack.us%2Fimg394%2F2209%2Ftrythis2vl.th.gif&hash=d86e797038d6fc9d5f5f7e614c60a28ea132a218) (http://img394.imageshack.us/my.php?image=trythis2vl.gif)
Title: Re: Can't login after upgrade
Post by: thoxic on December 20, 2005, 09:09:03 PM
I don't have any bridges and I can't login :(
Title: Re: Can't login after upgrade
Post by: St. Anger on December 21, 2005, 01:22:44 AM
Thanks for your help, it didn't fix my problem but it helped me to figure out that there is already an Administrators group with ID 1, so that's not what my problem is. Any other suggestions? :(
Title: Re: Can't login after upgrade
Post by: Nibbler on December 21, 2005, 01:24:23 AM
If you can PM me FTP and phpmyadmin access to your gallery I can take a look at it for you.
Title: Re: Can't login after upgrade
Post by: St. Anger on December 22, 2005, 06:09:15 PM
I PMed you. Thanks a lot for helping me fix this problem, I really appreciate it. :)
Title: Re: Can't login after upgrade
Post by: Nibbler on December 22, 2005, 07:01:30 PM
Fixed this by changing

$this->admingroups = array($this->use_post_based_groups ? $INFO['admin_group'] : 1);

to

$this->admingroups = array($INFO['admin_group']);

in the ipb bridge file.
Title: Re: Can't login after upgrade
Post by: St. Anger on December 22, 2005, 10:56:00 PM
Thank you so much! ;D I'll donate some money via PayPal to Coppermine tonight.


However, my original uploading error still occurs: http://forum.coppermine-gallery.net/index.php?topic=24795.0
Title: Re: Can't login after upgrade
Post by: benseth on December 23, 2005, 03:21:54 AM
thanks for the help  :D
Title: Re: Can't login after upgrade
Post by: Joachim Müller on February 08, 2006, 02:04:35 AM
split yet another reply to this thread to http://forum.coppermine-gallery.net/index.php?topic=27617.0
Locking it now.