After upgrade no admin After upgrade no admin
 

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]

Main Menu

After upgrade no admin

Started by Gibban, November 26, 2005, 05:11:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gibban

Hi

Just upgraded from 1.3.5 to 1.4.
Wen i login to admin mode i get message "You don't have permission to access this page."

Thougt i did ewerithing by the boock (manual) but no  :-*

/Gibban

Gibban

Sorry gys

Solwed it wase theme issue  ::)

/Gibban

fotogliptia

Hi
I have the same problem. How didi you fix it? After the upgrade I can no longer pogin as admin. anda can no longer upload photos and even logout, since I never know If i'm really logged on.
Thank you. I'm a rookie on cpg issues.
Arlindo

artistsinhawaii

Quote from: fotogliptia on November 27, 2005, 03:39:18 AM
Hi
I have the same problem. How didi you fix it? After the upgrade I can no longer pogin as admin. anda can no longer upload photos and even logout, since I never know If i'm really logged on.
Thank you. I'm a rookie on cpg issues.
Arlindo

Are you working with a custom theme? If so, you have to modify that theme to work with CPG 1.4.2.

For the time being make sure you are using one of the themes that came with 1.4.2.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller


fotogliptia

Hi, thanks for the help.

I'm working with hardwired theme just as it comes in the pack. Just made a little change on the left-banner. I uploaded the original but still not working.
http://www.70-200.net/Galeria/  :-[



artistsinhawaii

@fotogliptia

Try switching languages back to English in CONFIG. I noticed that your search page doesn't display properly.  I suspect either a faulty language file OR that some files are corrupted or didn't get updated properly if this was an upgrade install. 

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

fotogliptia

Thanks Dennis.
Yes it was un upgrade. I followed the book. (i guess)
As a matter of fact, I stayed with the 1.3 brazilian-portuguese file lang, since the one that come with the 1.4 pack was all messed up (with strange caracters). But I switched to this one with the some result.
Plus: I cant acess config.php with the browser because it says that I have no permission.
It will be to much if you tell me what line should I change in the config.php file to turn the language back to english?
Should I re-upgrade?
Thanks a lot

Arlindo

artistsinhawaii

arlindo,

just type in your URL like:

http://www.yourwebsite.com/coppemine/index.php?lang=English


That should change it back to English. 

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

fotogliptia

Well, I did...
But... nothing happens. Still the Same  :-[

Arlindo

fotogliptia

#10
well...
...something happened! Yes the main page turn to english, the others, login etc are still in portuguese and no administration buttons... When i go to the other pages, the whole thing turn to portuguese again (including the main page)!

my oh my!

Arlindo

artistsinhawaii

arlindo,

Re-download the entire 1.4.2 package and redo the installation procedures.  Looks like some files were not uploaded properly or corrupted during the download or upload step.

I created a user account on your setup but that doesn't work either.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

artistsinhawaii

alindo,

make sure you also run the "update database" from admin tools.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

fotogliptia

Ok!
Thanks guys. I'm gonna do every single step of the manual (section 3.4) and lets see what happens!  :)
Thank you again. You are a very important and fast suport.
Later on I'll tell you the results of the new upgrade.

Arlindo

donnoman

I've just experienced this on one of my production installs. After putting in my admin credentials, I got the "welcome admin" message with the continue button, after pressing continue, I was back on as the guest user, with no admin menu of course.

By chance I had debug on and this was in the output:


    [3] => select user_id from `donnoman`.cpg140_sessions where session_id=md5("20f0bb6347f64b4482f2123284323b068a04d82f9b0dc62909efe1f571a0f90e"); (0s)
    [4] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('e824fa8a74aa2c1a449323dc049b245c8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [5] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('474cf106f8a4eb1043fe1825fff527a58a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [6] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('7f6bc361c0965f3acfd364e9a3001dfd8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [7] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('ef5f138da874255347499aa6c763eab28a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [8] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('975b75721836983974aa95a3df5174f08a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [9] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('7172d4f49bd349d54053045ddcbf52918a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [10] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('1859bcac33e2f5c5cf5eb1a88b68d98d8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [11] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('28b4231ba28203d397488a9af178c1508a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [12] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('3dde9a4fc2fd0b80a1a0bb1e73d699438a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [13] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('426e93b517133b9c4ef9c71862233e8b8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [14] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('b03bb92779f5a8eb6d4b895dbfe1638a8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [15] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('3648e2540941f2066e0f588ce45739e68a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [16] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('c86958f65eb7e6b54a085ac5198ac7b08a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [17] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('5b61f52f1b2b08a225c7e8472e685d228a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [18] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('da45ce382a81bfbc27c20c2231bd55be8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [19] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('119099b147d0fcc75ec472e8ca7917648a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [20] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('547145591b5e5f1b98ffd5dbe891e89d8a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [21] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('36315187202a3fe349c83477087545908a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [22] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('a42a373b7af0072424b6086e977c4f548a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [23] => SELECT session_id FROM `donnoman`.cpg140_sessions WHERE session_id=MD5('b5c8617eabc4cf194bf506012a7a72588a04d82f9b0dc62909efe1f571a0f90e') (0s)
    [24] => insert into `donnoman`.cpg140_sessions (session_id, user_id, time, remember) values ("f210689b20ca959398f66ac775853cab", 0, "1133104726", 0); (0s)


What I discovered with phpmyadmin is that the session_id field was a varchar 11 or 13 I don't remember which, which is way too small to hold the session_id.

I dropped the sessions table, re-ran update.php and then was able to login normally.  I have no idea how the sessions_id field ended up so small. I wen't back through the CVS history, and when it was added session_id was a varchar 40. 

artistsinhawaii

Very strange,

I can't find anything in the sql files that would have done that to sessions_id.
At least it gives us a place to look.  I think this is the second poster with this dilemna.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

fotogliptia

Ok
I've donne the upgrade, again and the problem remains: no permission as admin and cant configure!
mamma mia!
What to do now?

Arlindo

artistsinhawaii

Arlindo,

Did you read the post above by donnoman?

Check your database's sessions table.
check the session_id table.
Make sure that it is set at 40

session_id, varchar, 40, not null


Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Nibbler

Take a look at your include/config.inc.php and see if there are any blank lines at the start or end of the file. Have you modified this file in any way ?

fotogliptia

#19
Quote from: madeinhawaii on November 28, 2005, 01:52:11 AM
Arlindo,

Did you read the post above by donnoman?

Check your database's sessions table.
check the session_id table.
Make sure that it is set at 40

session_id, varchar, 40, not null

Dennis
Where do I do that? Sorry my ignorance...