coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: quake101 on August 25, 2006, 08:32:41 PM

Title: No login, After upgrade 1.3.x to 1.4.8
Post by: quake101 on August 25, 2006, 08:32:41 PM
I've followed the online documentation and everything went well. Now that it's been upgraded I can't log in (even as an admin). I get the following error.

"You don't have permission to access this page."

I upgraded from 1.3.8 to 1.4.8
Title: Re: After upgrade..
Post by: Nibbler on August 25, 2006, 08:42:23 PM
Do you mean that you can't login or you are not recognised as admin?
Title: Re: After upgrade..
Post by: quake101 on August 25, 2006, 10:02:47 PM
It's like It lets me log in, but then logs me right back out. as in...


I put in my username/password
I then get the "Welcome quake101 ..."
(I also noticed I don't see any of the menus as if I was loged in)Then when I try to access the admin.php or any other "admin" page I get the..

"You don't have permission to acces this page." error.
Title: Re: After upgrade..
Post by: Joachim Müller on August 25, 2006, 10:55:14 PM
So after all you can log in, but the login doesn't stick. This sounds like a cookie or browser issue to me. Post a link to your page and (if you have one available) a non-admin test user account. If you don't have a test user account, just post the link to your page.
Title: Re: After upgrade..
Post by: quake101 on August 25, 2006, 11:24:18 PM
http://www.badassmustangs.com/gallery/

Title: Re: After upgrade..
Post by: quake101 on August 25, 2006, 11:28:39 PM
I've cleared my cookies, and tried it on both firefox and IE.
Title: Re: After upgrade..
Post by: Joachim Müller on August 26, 2006, 07:02:25 AM
You haven't upgraded your theme as per docs:
QuoteTemplate error
Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button -->)(.*?)(<!-- END ecard_button -->)#s) in :

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" witdh="100%">
                        {PIC_POS}
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>
is what I get when going to any intermediate image. That's expected behaviour if you don't do as suggested in http://coppermine-gallery.net/demo/cpg14x/docs/theme/
Title: Re: After upgrade..
Post by: quake101 on August 26, 2006, 03:11:02 PM
I'm using the smf theme, so I just downloaded the newist version for 1.4.x and I'm still getting the same thing after login.

(I re-named the old outdated theme to smf_old and put the new smf theme in it's place, so coppermine should be using the new theme)
Title: Re: After upgrade..
Post by: quake101 on August 28, 2006, 01:41:57 PM
Help?  ???
Title: Re: After upgrade..
Post by: Sami on August 28, 2006, 08:03:49 PM
- Your [CPG] cookie setting is fine , check for some security app on your local computer , something like ZoneAlarm,Norton Internet security & ....
- post a test user if you can
Title: Re: After upgrade..
Post by: quake101 on August 29, 2006, 01:43:56 PM
Quote from: bmossavari on August 28, 2006, 08:03:49 PM
- Your [CPG] cookie setting is fine , check for some security app on your local computer , something like ZoneAlarm,Norton Internet security & ....
- post a test user if you can

I'm not running any type of local security app. And I am unable to post a test user as if right now. :(
Title: Re: After upgrade..
Post by: Sami on August 29, 2006, 02:39:16 PM
check this thread:
http://forum.coppermine-gallery.net/index.php?topic=33629.0
and download attachment , unzip it under root of gallery and run it , this way you have a test user with
username:testuser
password:test
make sure to delete that file , after user creation
Title: Re: After upgrade..
Post by: quake101 on September 01, 2006, 04:26:46 PM
Quote from: bmossavari on August 29, 2006, 02:39:16 PM
check this thread:
http://forum.coppermine-gallery.net/index.php?topic=33629.0
and download attachment , unzip it under root of gallery and run it , this way you have a test user with
username:testuser
password:test
make sure to delete that file , after user creation

Ok, I ran the support.php, but I don't belive it created the testuser.

http://www.badassmustangs.com/gallery


I did notice I now have bebug into... :)
Title: Re: No login, After upgrade 1.3.x to 1.4.8
Post by: quake101 on September 02, 2006, 07:51:48 PM
Any ideas?

I've deleted all the files and re-uploaded them. I've been looking into it, but I'm lost on what the heck is going on.
Title: Re: No login, After upgrade 1.3.x to 1.4.8
Post by: Sami on September 02, 2006, 08:40:52 PM
PM me the admin account of gallery and also a ftp & Mysql account to gallery I'll check it for you
Title: Re: No login, After upgrade 1.3.x to 1.4.8
Post by: quake101 on September 05, 2006, 02:20:13 PM
Quote from: bmossavari on September 02, 2006, 08:40:52 PM
PM me the admin account of gallery and also a ftp & Mysql account to gallery I'll check it for you

Thank you for helping me. I really don't like to give out admin info. Maybe we can work together on a fix? If you want to can pm me more details.
Title: Re: No login, After upgrade 1.3.x to 1.4.8
Post by: Joachim Müller on September 05, 2006, 07:25:41 PM
bmossavari is an experienced supporter and his reputation is flawless. He knows what he's doing and I think you can savely trust him not to ruin anything. It's very generous of him to offer individual support. I would re-consider his offer and send him the admin details if I were you. If you're afraid/paranoid, you could change those admin details once bmossavari is done with support.
Title: Re: No login, After upgrade 1.3.x to 1.4.8
Post by: Sami on September 10, 2006, 12:08:36 AM
I think we can mark this one solved,
he didn't have any group under xxx_usergroups and the solution was re-creating them manualy by run this query under phpmyadmin

INSERT INTO xxx_usergroups VALUES (1, 'Administrators', 0, 1, 1, 1, 1, 1, 1, 0, 0, 3, 0, 5, 3);
INSERT INTO xxx_usergroups VALUES (2, 'Registered', 1024, 0, 1, 1, 1, 1, 1, 1, 0, 3, 0, 5, 3);
INSERT INTO xxx_usergroups VALUES (3, 'Anonymous', 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 5, 3);
INSERT INTO xxx_usergroups VALUES (4, 'Banned', 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 5, 3);


xxx is the prefix of tables
for others that see this post :
   if you want to run that query please change the xxx with your gallery's prefix