"Unable to upgrade the Core module"

striker9603

Joined: 2004-12-28
Posts: 30
Posted: Thu, 2010-03-11 19:52


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache
Database (e.g. MySql 5.0.32): MySql 5.0.45
Activated toolkits (e.g. NetPbm, GD): not sure I cant login into site admin
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Firefox, IE

Currently I have two problems. and I should emphasize that my site was working fine when I upgraded from Gallery2 ?.? to Gallery2 2.3

1) I cant login to my "site admin" page. I can however login to the main site. the error I am getting is (The administration session has expired, please re-authenticate to access the administration area. ) every time I try to login.

I have checked all posts containing this error "The administration session has expired, please re-authenticate to access the administration area. " none of the suggestions helped me. I cleaned out the cache as well and that did not help. Which leads my to my second problem

2) I tried to run the "upgrader" option again and I get the attached error. "Unable to upgrade the Core module" "Error (ERROR_BAD_PLUGIN)" NOT The error that is in the FAQ. I cant find a fix for this either.

I am getting warnings during the upgrade that I am missing .htaccess files. I created a blank .htaccess file and installed to the paths listed thinking gallery would update it for me but no such luck.

I am not sure where else to turn here other then a fresh install and set up all images again. which I do not want to do. any help would be appreciated.

AttachmentSize
Core-Module.txt22.9 KB
 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Thu, 2010-03-11 19:55

Listed are the directory's that I entered a blank .htaccess file because I did not have the originals

lib/tools/po/.htaccess
modules/linkitem/locale/fr/LC_MESSAGES/modules_linkitem.mo
modules/webdav/data/options/.htaccess
modules/rewrite/data/mod_rewrite/custom/.htaccess
modules/rewrite/data/mod_rewrite/gallery/.htaccess
modules/rewrite/data/mod_rewrite/gallery2/.htaccess
modules/rewrite/data/mod_rewrite_no_options/custom/.htaccess
modules/rewrite/data/mod_rewrite_no_options/gallery/.htaccess
modules/rewrite/data/mod_rewrite_no_options/gallery2/.htaccess

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-03-11 21:54

Zip and attach the upgrade log. It's located in your g2data directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Thu, 2010-03-11 22:17

Here is the zip file

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-03-11 22:34
Quote:
PHP memory limit: 16M

I'm surprised you've been running Gallery. That's not going to cut it. Try increasing your PHP memory limit to 32M and I'll bet things go much smoother:
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Fri, 2010-03-12 00:23

after the upgrade I did re-set the limit to 24. I changed it now to 32 with no luck.. any other suggestions?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-03-14 16:51

After you changed the memory limit did you try running the upgrade again?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Mon, 2010-03-15 01:17

Yes I did run the upgrader and I still get the error.

 
llundgren

Joined: 2003-05-19
Posts: 67
Posted: Tue, 2010-03-16 21:42

set php to 512K. I am migrating from 1.5 with many troubles. It typically starts a sub-album creation using 256m to 300m.
Even with this setting, it will not do more than a dozen albums at a time (I have nigh 700)
sometimes it will end an import routine with a continue. sometimes it will list albums listed, but mostly it says none imported. sometimes it just stops. some times it stops on a long .mov file, sometimes it stops with a blank screen.
I don't think this is near as good as 1.5, which does not support the new php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-03-16 22:06

striker9603, can you post your most recent upgrade log file as well as a link to phpinfo?
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Wed, 2010-03-17 12:57

Good morning! Thanks for all your help. I was able to fix one of my problems last night. I downloaded an upgrade package from gallery and installed Gallery 2.3.1 over my current gallery 2.3.0 this fixed the issue with upgrading the core module. Every thing worked perfect. I had to go back and resize all thumbs though. FYI, after I upgraded the package I did update the php.ini file to 512M

I am still getting the error when trying to login to the site admin (with a difference this time). I can now login to site admin but I have to try logging in 3 times before it actually will log me in. also once I click on "maitenance" or anything like that I have to re-enter my login info again. every time. Sometimes it takes one time some times it takes more. it all depends. the error I get is

"The administration session has expired, please re-authenticate to access the administration area"

I have cleared all cache sessions and I have also deleted all users sessions.

any help with this issue?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-03-17 16:03
Quote:
a link to phpinfo?
FAQ: How do I create a phpinfo page?

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Wed, 2010-03-17 16:17

Sorry I was unsure if you would still need this info. the link to my PHPinfo is http://www.senesac.net/phpinfo.php

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Mon, 2010-03-22 16:45

Good Day Nivekiam,

I wanted to ask you if I should start another thread for the problem I am having? I guess its not actually like the original topic subject I posted. Let me know either way.

I also wanted to let you know some symptoms I am having with my current problem.

when I initially try to login to my site I can login on one try. When I try to get to the site admin I have to login 2,3,4 times before it will actually let me in. When I click on anything like "maintenance" I have to again try logging in 2,3,4 times before it will let me move on.

I cant upload photos at all I try to change the path on my local server and it wont let me do that. It asks me to login and when I finally am able to login after 2, 3 tries it brings me back to the page to enter the path of the photos.

I just wanted to pass this along in case you had any ideas. Thanks for your help so far.

 
llundgren

Joined: 2003-05-19
Posts: 67
Posted: Mon, 2010-03-22 19:00

There is a session time out option, did you set it sufficiently long?
try a day or 2

It is on the main or first admin page
Admin Options

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Mon, 2010-03-22 19:08

Yes I believe I have it set accordingly.

Session Settings
Session Lifetime 3 weeks
Inactivity Timeout 1 week
Site Administration Session Timeout 15 min

does that look correct?

I have noticed one change already and I have not done a thing. when I went to change the settings for the items above I clicked "save" and it asked me for my U/P again. I only had to enter it one time and it brought me back to the original page I was working on. However, the fields I changed were back to the previous settings that were there before.

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Mon, 2010-04-12 19:04

Just following up on this post. Does anyone have any more suggestions. Or can I provide any more information to you? I am still having this problem.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-04-12 19:15

Looking at this with fresh eyes, I'd double check that the file integrity is in fact there and try overwriting with fresh 2.3.1 files:

Error: Unknown module version
realpath(/hsphere/local/home/gsenesac/senesac.net/gallery/modules/core/classes/../../../)
realpath(/hsphere/local/home/gsenesac/senesac.net/gallery/)
Error: Failed to upgrade the core module, this is the error stack trace:
Error (ERROR_BAD_PLUGIN) : Unknown module version 1.3.0 in
modules/core/CoreModuleExtras.inc at line 2570
(GalleryCoreApi::error) 
in modules/core/module.inc at line 486
(CoreModuleExtras::upgrade) 
in modules/core/classes/GalleryModule.class at line 175
(CoreModule::upgrade) 
in upgrade/steps/UpgradeOtherModulesStep.class at line 77
(GalleryModule::installOrUpgrade) 
in upgrade/index.php at line 186
(UpgradeOtherModulesStep::processRequest) 

FAQ: How can I make sure that my installation files are all intact?

http://gallery.menalto.com/downloads
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
llundgren

Joined: 2003-05-19
Posts: 67
Posted: Mon, 2010-04-12 19:42

Site Administration Session Timeout 15 min

How long is it working? 6hr- 24?

give it enough time.

 
striker9603

Joined: 2004-12-28
Posts: 30
Posted: Mon, 2010-04-12 20:25

Llundgren - Its not working at all. When I click on Site admin I get prompted to log in again. anytime I click on anything within site admin I have to usually try logging in multiple times before I can actually get to where I want to go.

nivekiam - attached is the "warnings" I am getting when trying to validate I have file integrity. I didnt think any of the warnings were tied to the log in process so I kind of ignored them. However, I cant fix them either.

 
llundgren

Joined: 2003-05-19
Posts: 67
Posted: Mon, 2010-04-12 20:34

Sorry, no clue.
I had that problem a couple of times, but it went away.

I finally got the 1.5 migrated, but it will not allow download of clips, nor of full size pictures.
It starts, but just stops.

http://thelundgrens.us

Click on our picture and then anywhere else