[solved] Cannot access admin after applied release 2.0.19

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

[solved] Cannot access admin after applied release 2.0.19

Postby greenapple » Wed Feb 22, 2006 8:29 pm

Hi,

I've been reading a couple other threads related to this. It seems a couple other people encounted the same problem and so far there is no fix for this yet. I'm starting a new thread per ~AJK~.

After applied the latest patch (2.0.19), I no longer can access the admin panel either.

I tried the auto cookie mod and cleared all my cookies and cache, closed all my browser windows as suggested. But when I tired to click on 'Go to Administration Panel' link, I still got redirected back to board index page.

Is there anyone who actually figured out how to fix this?

Thanks,
Last edited by greenapple on Thu Feb 23, 2006 5:01 am, edited 1 time in total.
greenapple
Registered User
 
Posts: 21
Joined: Tue Feb 21, 2006 6:50 am

Postby Marshalrusty » Wed Feb 22, 2006 8:32 pm

First of all, what package did you use to update?

There are a few things that could be causing this; let's start with the most likely. Run the auto cookies MOD again and post the suggested settings, these are often incorrect.

You should also try uploading fresh copies of {root}/login.php, {root}/includes/functions.php, {root}/includes/sessions.php and {root}/admin/pagestart.php. Backup your copies first
Yuriy Rusko

Did I help you? Send a Kudo my way
User avatar
Marshalrusty
Support Team Leader
Support Team Leader
 
Posts: 26496
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City

Postby ~AJK~ » Wed Feb 22, 2006 8:33 pm

Can you post the suggested cookie settings and your current settings?
If the solutions posted above worked can you add [SOLVED] to beginning the subject of your first post to help others? Click on the "EDIT" button next to your FIRST post in the thread.
Click the following: Help for Newbies | Support Request Template
No PM's Please
~AJK~
Registered User
 
Posts: 1807
Joined: Fri Feb 03, 2006 7:19 pm
Location: Not sure anymore

Postby greenapple » Thu Feb 23, 2006 1:48 am

edited by greenapple to remove previous comment
Last edited by greenapple on Thu Feb 23, 2006 4:47 am, edited 1 time in total.
greenapple
Registered User
 
Posts: 21
Joined: Tue Feb 21, 2006 6:50 am

Postby greenapple » Thu Feb 23, 2006 4:47 am

I think I found what is causing the redirect to board index instead of admin/index, the session_admin value was not being set correctly. It always set the session_admin=0 even if the user is admin.

I added this line to get the correct value for $admin before the create/update session block and the admin panel link is working again!

Here is what I did:

1, open /includes/sessions.php

2, find the following line
//
// Create or update the session
//

3, before the comment add the following line
$admin = ($userdata['user_level'] == ADMIN ) ? 1 : 0;

save and upload this file to your server

Hope this helps if you are also frustrated on not being able to access the admin panel.
greenapple
Registered User
 
Posts: 21
Joined: Tue Feb 21, 2006 6:50 am

Postby dvmorris » Thu Feb 23, 2006 7:53 am

I have been trying for over a week to get this thing to work, and this fix did not solve the problem for me. does anyone have any other suggestions... all this code did was allowed me to login, then told me i was logged in, but it still displayed the login button, and not the logout button, and it didn't display any of the forums. http://dave.showviz.net/viz/forum.

i am beyond desparate now. i really need to get into the admin panel.
dvmorris
Registered User
 
Posts: 13
Joined: Thu Feb 16, 2006 6:43 am

Postby dvmorris » Thu Mar 09, 2006 1:02 am

any updates on how to fix this problem? i can't afford to reinstall phpbb, because it seems that if i do a db dump and then reinstall and load up the old db, the error will still be there... any ideas?
dvmorris
Registered User
 
Posts: 13
Joined: Thu Feb 16, 2006 6:43 am

Postby ~AJK~ » Thu Mar 09, 2006 12:17 pm

dvmorris wrote:any updates on how to fix this problem? i can't afford to reinstall phpbb, because it seems that if i do a db dump and then reinstall and load up the old db, the error will still be there... any ideas?
You never posted your cookie settings as asked for.
If the solutions posted above worked can you add [SOLVED] to beginning the subject of your first post to help others? Click on the "EDIT" button next to your FIRST post in the thread.
Click the following: Help for Newbies | Support Request Template
No PM's Please
~AJK~
Registered User
 
Posts: 1807
Joined: Fri Feb 03, 2006 7:19 pm
Location: Not sure anymore

Postby dvmorris » Fri Mar 10, 2006 5:46 pm

my settings

My Current Cookie Settings:


* Domain Name: dave.showviz.net
* Server Port: 80
* Script path: /viz/forum/
* Cookie secure: Disabled
* Cookie domain:
* Cookie path: /
* Cookie name: phpbb2mysql
* Session length [ seconds ]: 3600
* : No
* :

suggested:

My Suggested Cookie Settings:


* Domain Name: dave.showviz.net
* Server Port: 80
* Script path: /viz/forum/
* Cookie secure: Disabled
* Cookie domain: .showviz.net
* Cookie path: /viz/forum
* Cookie name: showviz_forum
* Session length [ seconds ]: 3600
* : Yes
* : 0
dvmorris
Registered User
 
Posts: 13
Joined: Thu Feb 16, 2006 6:43 am

Postby ~AJK~ » Fri Mar 10, 2006 7:05 pm

I would think that your board 's proper settings should be:
Domain Name: dave.showviz.net
Server Port: 80
Script path: /viz/forum/
The path where phpBB2 is located relative to the domain name

Cookie domain: dave.showviz.net
Cookie name: showviz_phpbb
Cookie path: /viz/forum
Cookie secure: Disabled
If you want to double check my work (I suggest you do), here are the sources I used to determine your proper settings:
If the solutions posted above worked can you add [SOLVED] to beginning the subject of your first post to help others? Click on the "EDIT" button next to your FIRST post in the thread.
Click the following: Help for Newbies | Support Request Template
No PM's Please
~AJK~
Registered User
 
Posts: 1807
Joined: Fri Feb 03, 2006 7:19 pm
Location: Not sure anymore


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: No registered users and 10 guests