Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2   Go Down

Author Topic: After upgrade no admin  (Read 32793 times)

0 Members and 1 Guest are viewing this topic.

Gibban

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
After upgrade no admin
« on: November 26, 2005, 05:11:22 pm »

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
« Last Edit: November 26, 2005, 06:02:21 pm by Nibbler »
Logged

Gibban

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: After upgrade no admin
« Reply #1 on: November 26, 2005, 05:46:38 pm »

Sorry gys

Solwed it wase theme issue  ::)

/Gibban
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #2 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
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #3 on: November 27, 2005, 06:08:28 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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #5 on: November 27, 2005, 01:07:30 pm »

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/  :-[


Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #6 on: November 27, 2005, 06:12:08 pm »

@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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #7 on: November 27, 2005, 08:22:21 pm »

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
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #8 on: November 27, 2005, 08:38:52 pm »

arlindo,

just type in your URL like:

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


That should change it back to English. 

Dennis
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #9 on: November 27, 2005, 10:35:16 pm »

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

Arlindo
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #10 on: November 27, 2005, 10:41:04 pm »

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
« Last Edit: November 27, 2005, 10:48:57 pm by fotogliptia »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #11 on: November 27, 2005, 11:33:05 pm »

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
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #12 on: November 27, 2005, 11:45:16 pm »

alindo,

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

Dennis
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #13 on: November 28, 2005, 01:00:46 am »

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
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: After upgrade no admin
« Reply #14 on: November 28, 2005, 01:04:17 am »

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:

Code: [Select]
    [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. 
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #15 on: November 28, 2005, 01:15:33 am »

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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #16 on: November 28, 2005, 01:45:06 am »

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
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: After upgrade no admin
« Reply #17 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
Logged
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

  • Guest
Re: After upgrade no admin
« Reply #18 on: November 28, 2005, 02:07:36 am »

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 ?
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: After upgrade no admin
« Reply #19 on: November 28, 2005, 02:30:56 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...
« Last Edit: November 28, 2005, 07:38:17 am by GauGau »
Logged
Pages: [1] 2   Go Up
 

Page created in 0.027 seconds with 19 queries.