Advanced search  

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]

Pages: 1 [2]   Go Down

Author Topic: No admin page after admin login  (Read 22524 times)

0 Members and 1 Guest are viewing this topic.

deamonyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: No admin page after admin login
« Reply #20 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #21 on: September 06, 2010, 08:48:55 pm »

PM sent.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1504
  • aka 'i-imagine'
    • Home Page
Re: No admin page after admin login
« Reply #22 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?

deamonyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: No admin page after admin login
« Reply #23 on: September 07, 2010, 04:16:27 am »

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #24 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.
Logged

deamonyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: No admin page after admin login
« Reply #25 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
Logged

petahi

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: No admin page after admin login
« Reply #26 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?

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #27 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.
Logged

petahi

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: No admin page after admin login
« Reply #28 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
Logged

petahi

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: No admin page after admin login
« Reply #29 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #30 on: November 04, 2010, 12:33:00 pm »

Thank you, that is even better than the old fix.
That's exactly the same fix ::)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #31 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.
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: No admin page after admin login
« Reply #32 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
Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Now my flash uploader shows an error
« Reply #33 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.

Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
screenshot of error with flash uploader
« Reply #34 on: November 07, 2010, 01:10:59 am »

Here is a screenshot of the error I get when using flash uploader
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: No admin page after admin login
« Reply #35 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.
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.032 seconds with 20 queries.