forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 install => Topic started by: workingmind on August 27, 2010, 05:00:06 pm

Title: No admin page after admin login
Post by: workingmind on August 27, 2010, 05:00:06 pm
Hello Support,

i had made a fresh install of cpg1.5.8 and but i could not get into admin page,whenever i try to login with administrator it gives a green color bar saying "welcome Guest......"

my url is http://photoshop.everything.net.in

Please help me out with the trouble

Thanks in advance for your support.

Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 01:57:19 pm
please help me with the issue i am facing.
Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 02:14:45 pm
To exclude client side issues, please post the login data.
Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 02:24:09 pm
URL is http://photoshop.everything.net.in

admin login : admin
password  : admin

Please let me know what has gone wrong....
Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 02:43:21 pm
I can confirm your issue. My browser stores the cookies, so I guess there's a problem with the sessions table. Can you give me database access (e.g. via phpMyAdmin)?
Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 03:01:52 pm
https://www.cp.manasserver.com/phpmyadmin/788/index.php?server=95&token=1ea96b75d6b62766c7dc3429b4d63f26&old_usr=u1011987_cpg

password is deleted
Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 03:11:56 pm
Don't post admin passwords publicly! I've deleted it. You also need to post the user name and the server name, as we don't want to guess that information. I'm currently short of time, that's why I don't post you my contact details. Maybe someone else can look into your issue (maybe you can do that yourself).
Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 03:18:48 pm
hello thanks for deleting the password, please let me know how can i send you the password and the server details as i dont know how to work in mysql.

Your help will be highly appriciated.
Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 03:38:53 pm
I've sent you a PM.
Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 03:45:53 pm
sent you details.
Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 03:58:16 pm
I recognized the following:
- when I visit your gallery 1 session cookie is generated
- when I browse a little bit on your gallery or after logging in, a second session cookie is created
- every time i refresh your gallery, a different session value is stored in your database

I don't know why this happens, but I assume it depends somehow on your server settings.
Title: Re: No admin page after admin login
Post by: workingmind on August 30, 2010, 04:04:28 pm
this look like something big issue, i am sorry am not that much tech savvy. please let me know what server setting i must look for to make this gallery a success...


Title: Re: No admin page after admin login
Post by: Αndré on August 30, 2010, 04:23:42 pm
please let me know what server setting i must look for to make this gallery a success...
I can't help you, sorry.
Title: Re: No admin page after admin login
Post by: Αndré on September 01, 2010, 10:51:30 am
I recently had some issues in my personal gallery and in a test gallery of another user. I decided to write a little session debug plugin. Please upload that plugin to your gallery's plugin folder as described in the docs and manually add an entry (similar to the attached screenshot) to your database's plugin table to enable the plugin. If it works, you should some info like
Quote
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
SERVER_PROTOCOL: HTTP/1.1
site_url: http://localhost:88/svn_cpg15x_trunk/
client_id: b91fbccac8395d4126a701a1509ce736
session_id: 2b7d66e5389cd63daefffbb9d1862460
md5(session_id+client_id): cd88590a3c04ced326d71dc993202b0d
in the header of your gallery.

In my case the server protocol switches between HTTP/1.1 and HTTP/1.0 for some reason. Maybe it's similar for you.
Title: Re: No admin page after admin login
Post by: mahesh1825 on September 03, 2010, 12:56:27 pm
me too had the same problem but 1.4.27 working fine but 1.5.8 is showing the above stated error what will be the problem
Title: Re: No admin page after admin login
Post by: Αndré on September 03, 2010, 01:28:47 pm
me too had the same problem but 1.4.27 working fine but 1.5.8 is showing the above stated error what will be the problem
Nice to know, but that doesn't help us further. Install the session bugger plugin and post a link to your gallery if you want to help.
Title: Re: No admin page after admin login
Post by: deamonyo on September 03, 2010, 08:58:27 pm
hi,

im new to this one. i have installed 1.5.8 and experienced the same problem. and tried the fix you said. i dont know if i installed the session_debugger plugin right. i have added to cpg_plugin table the following, session_debugger,configuration.php,codebase.php. but it gives me the same problem. im new to this stuff so forgive me. i really dont know where to start, im just trying it out.

here is a link to my gallery:

http://iroseph-spica.co.cc/gallery

username: admin
pass: admin

thanks
Title: Re: No admin page after admin login
Post by: Αndré on September 06, 2010, 03:50:46 pm
i dont know if i installed the session_debugger plugin right.
Unfortunately you haven't.

i have added to cpg_plugin table the following, session_debugger,configuration.php,codebase.php
Please re-read my instructions:
upload that plugin to your gallery's plugin folder as described in the docs and manually add an entry to your database's plugin table
Title: Re: No admin page after admin login
Post by: deamonyo on September 06, 2010, 05:49:17 pm
hi,

i added the plug-in, and still no admin page. whats next?

my gallery : http://iroseph-spica.co.cc/gallery

usname: admin
pass: admin

thanks
Title: Re: No admin page after admin login
Post by: Αndré on September 06, 2010, 06:02:28 pm
The session_id value is always different. Normally it shouldn't change. It's hard to say why it happens. If you are ready to send me the ftp login data of the bridge/ directory, I'll try to figure out what the problem is. Please don't post that data here. I'll send you a PM with my contact details if you agree.
Title: Re: No admin page after admin login
Post by: deamonyo on September 06, 2010, 08:00:23 pm
hi

yes i agree,.. please send me your contact details. i really want to use this gallery.


thanks
Title: Re: No admin page after admin login
Post by: Αndré on September 06, 2010, 08:48:55 pm
PM sent.
Title: Re: No admin page after admin login
Post by: Joe Carver on September 06, 2010, 11:21:04 pm
The session_id value is always different. Normally it shouldn't change.

http://iroseph-spica.co.cc/gallery  returns
Quote
       ETag: "1234567890abcdrfgh"

Could ETag be interfering?
Title: Re: No admin page after admin login
Post by: deamonyo on September 07, 2010, 04:16:27 am
PM sent.

details sent. thanks
Title: Re: No admin page after admin login
Post by: Αndré on September 07, 2010, 09:01:37 am
After debugging almost every line in bridge/coppermine.inc.php I recognized, that your sessions table gets cleaned up every time your gallery is loaded. After changing
Code: [Select]
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = UNIX_TIMESTAMP() WHERE name = 'session_cleanup'";to
Code: [Select]
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = ".time()." WHERE name = 'session_cleanup'";it works now. Seems that your PHP time and your MySQL time differs much. This should be fixed, otherwise you have to apply that code change after every upgrade of Coppermine.

I changed the admin password of your gallery. Check your emails for the new admin password.
Title: Re: No admin page after admin login
Post by: deamonyo on September 07, 2010, 09:07:39 am
After debugging almost every line in bridge/coppermine.inc.php I recognized, that your sessions table gets cleaned up every time your gallery is loaded. After changing
Code: [Select]
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = UNIX_TIMESTAMP() WHERE name = 'session_cleanup'";to
Code: [Select]
$sql = "UPDATE {$CONFIG['TABLE_CONFIG']} SET value = ".time()." WHERE name = 'session_cleanup'";it works now. Seems that your PHP time and your MySQL time differs much. This should be fixed, otherwise you have to apply that code change after every upgrade of Coppermine.

I changed the admin password of your gallery. Check your emails for the new admin password.

hi,

thanks for looking in to this problem. now i can enjoy CPG. i will have to check on those PHP time and MySQL time to my hosting provider. i tested it, and now i have my admin panel. thanks again. cheers

/dea
Title: Re: No admin page after admin login
Post by: petahi on November 04, 2010, 11:22:45 am
I recently had some issues in my personal gallery and in a test gallery of another user. I decided to write a little session debug plugin. Please upload that plugin to your gallery's plugin folder as described in the docs and manually add an entry (similar to the attached screenshot) to your database's plugin table to enable the plugin. If it works, you should some info likein the header of your gallery.

In my case the server protocol switches between HTTP/1.1 and HTTP/1.0 for some reason. Maybe it's similar for you.


I have the same problem: the server protocol switches between HTTP/1.1 and HTTP/1.0

How can I fix it?

Title: Re: No admin page after admin login
Post by: Αndré on November 04, 2010, 11:31:42 am
I have the same problem: the server protocol switches between HTTP/1.1 and HTTP/1.0

How can I fix it?
Open bridge/coppermine.inc.php, find
Code: [Select]
$superCage->server->getRaw('SERVER_PROTOCOL')and remove it.
Title: Re: No admin page after admin login
Post by: petahi on November 04, 2010, 11:50:00 am
Never mind, I have found my old thread with solution in it.

http://forum.coppermine-gallery.net/index.php/topic,59698.msg294756.html#msg294756
Title: Re: No admin page after admin login
Post by: petahi on November 04, 2010, 11:54:49 am
Open bridge/coppermine.inc.php, find
Code: [Select]
$superCage->server->getRaw('SERVER_PROTOCOL')and remove it.


Thank you, that is even better than the old fix.
Title: Re: No admin page after admin login
Post by: Αndré on November 04, 2010, 12:33:00 pm
Thank you, that is even better than the old fix.
That's exactly the same fix ::)
Title: Re: No admin page after admin login
Post by: Αndré on November 04, 2010, 12:54:00 pm
Open bridge/coppermine.inc.php, find
Code: [Select]
$superCage->server->getRaw('SERVER_PROTOCOL')and remove it.
Change has been committed to svn and will be in the next cpg1.5.x release.
Title: Re: No admin page after admin login
Post by: scohen125 on November 07, 2010, 12:25:04 am
I had this problem and this fix took care of it.  Thank you all!
www.retinagallery.com
Title: Now my flash uploader shows an error
Post by: scohen125 on November 07, 2010, 12:55:46 am
I used this fix and deleted $superCage->server->getRaw('SERVER_PROTOCOL') from the proper file.  Then I was able to login to my site which was great!

Unfortunately, when I use the flash uploader now, I get an error message.  After uploading each file a red box appears around the filename saying 'upload failed' and the following pop-up box appears:

Message from Webpage
albums/userpics/10001/thumb_(filename).jpg
OK (the OK is in a button)

When I click the OK it goes on and 'fails' to upload each additional file.  BUT, when I got to the album all the files are there.  So it is working but just not properly.  If I upload each file alone using the other uploader there is no error message.

Title: screenshot of error with flash uploader
Post by: scohen125 on November 07, 2010, 01:10:59 am
Here is a screenshot of the error I get when using flash uploader
Title: Re: No admin page after admin login
Post by: Αndré on November 07, 2010, 11:33:33 am
scohen125, please start a new thread for each issue. You should also search the board, as I answered several time on exactly that issue.