too many redirections after upgrade from 2.0 to 2.3
|
randomguy2
Joined: 2009-11-01
Posts: 13 |
Posted: Sun, 2009-11-01 22:23
|
|
Hi, I get some kind of a nested redirection problem with the new version of gallery. If I do a totally clean install, it works ok. If I use the database from my original installation, I get the error. I suspect it has something to do with the rewrite module. I tried just changing the name of the .htaccess file, but that didn't work. I've enabled debugging, but I don't get any clues from it. The last few lines before it stops are: 2009-11-01 15:18:55 [TMP_SESSION_ID_DI_NOISSES_PMT] getParameter id.adminGroup for core plugin Firefox gives me this: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept [Try again button] Any hints most appreciated. Mickey
|
|

Posts: 4338
Disable the rewrite module, and re-enable it.
Posts: 16501
Also, did you first upgrade to 2.1 or 2.2 before upgrading to 2.3? If so, I'm curious as to how you have a working install (minus the redirection issue)
You might have to go through this:
FAQ: I enabled mod_rewrite, but it's not working, and now I can't get back to disable it - how else can I do this?
And if you in fact didn't successfully upgrade to 2.3, you can get 2.1 from here:
www.kevinnehls.com/temp/gallery2.1.zip
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Thanks a lot for the hints.
I removed the rewrite option using sql via phpadmin as shown in the FAQ, cleared the cache as shown in the FAQ, and I still have the same problem.
I did a "complete overwrite" update to 2.3 where I installed it in a different directory and then copied all the files over the top of 2.0 and then when I went to my gallery/update directory via a web browser. This walked me through an update process that seemed to work - at least there were no error messages.
I am guessing that something is not right in my DB - I have a feeling that it was recently upgraded by Bluehost, but I'm not sure.
Any other suggestions would be most welcome.
Thanks, Mickey
Posts: 4338
You could try switching on debug mode, which may allow you to step through the redirection loop, and give you more info:
FAQ: How to set/use Gallery in debug mode?
Posts: 22876
Is there a .htaccess file in the gallery directory?
gallery/lib/support seems to work
gallery/upgrade/ seems to work as well
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
I tried the debug mode, but no hints there that were useful to me. The file is quite large.
Posts: 13
I've tried removing the .htaccess file with no effect.
Posts: 16501
Check the integrity of the files:
FAQ: How can I make sure that my installation files are all intact?
Is there an .htaccess file above your gallery install?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Still trying to get this to work. Any hints appreciated.
Posts: 6134
disable as many plugins as you can.
An upgrade jump like that means you will be missing some entries in g2_Schema after you disable the right plugin and get back in checkout:
http://gallery.menalto.com/node/97200
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Just found that I don't have these tables in my upgraded DB but they are in the "default" DB G2:
g2_Getid3PropsMap
g2_ItemHiddenMap
g2_LinkItem
g2_PermalinksMap
g2_RatingCacheMap
g2_RatingMap
g2_RssMap
g2_SubscriptionMap
g2_WebDavLockMap
I will now try to export/import these into my current DB and see if that fixes the problem, tho I suspect there may be other incompatibilities.
Posts: 6134
you only need most of those if those modules are installed
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Tried the trick with g2_Schema.sql_.txt and that didn't work either.
Is there a way to just do a new install and have it import my images/albums?
Thanks
Posts: 6134
yes, import from local server will keep the directory/album structure of the source directory, but you will lose title, description, comments...
just create your new g2data directory next to the old_g2data, and set the path/to/the/old_g2data/albums as a local server add directory.
make sure your new well oiled G2 has the Add Items module installed. Then head to Gallery Admin -> Web/Server and set the Local Server Upload Paths
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
Thanks - I just sent you a PM with a link to my logs, if you have a moment to look at them. If not, I totally understand and I appreciate the suggestions and assistance!
Posts: 13
BTW, I also changed all the tables to use INNODB, but that didn't change anything. I also did a diff on the structure of the tables, and the only differences were the INNODB, some locales, and things like this:
< `g_id` int(11) NOT NULL DEFAULT '0',
---
> `g_id` int(11) NOT NULL,
1057c1058
< ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
---
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Posts: 6134
I have upgraded many galleries.
from 2.0.x to 2.3.x the best advice is to do incrementals.
2.0 -> 2.1 -> 2.2.6 -> 2.3.1
so if you can restore your 2.0 and restart I'd recommend that.
make sure you disable as many unnecessary plugins before you begin.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
BTW, I see the following in my web log each time I go to gallery:
10.1.1.1 - - [15/Aug/2010:13:16:35 -0600] "GET /gallery/ HTTP/1.1" 302 417 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
10.1.1.1 - - [15/Aug/2010:13:16:36 -0600] "GET /gallery/main.php HTTP/1.1" 302 501 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
10.1.1.1 - - [15/Aug/2010:13:16:37 -0600] "GET /gallery/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery%2Fmain.php%3F HTTP/1.1" 302 641 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
10.1.1.1 - - [15/Aug/2010:13:16:37 -0600] "GET /gallery/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery%2Fmain.php%3Fg2_view%3Dcore.UserAdmin%26g2_subView%3Dcore.UserLogin%26 HTTP/1.1" 302 641 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
...
this last line is repeated 18 times.
Posts: 6134
this is why I asked about login access required.
make sure the baseUri is set correctly last line of gallery/config.php
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
the baseUri was not set, but adding it didn't change anything. the only thing that has helped is to change to a "virgin" DB, but then I have an empty config. I can manually import my pictures as you suggested, but was hoping to avoid that since I have comments and stuff on there.
My next step will be to try to change one DB table at a time to see if I can figure out which one is causing the problem.
Posts: 13
This was much harder than I had thought. I started copying one DB at a time to see when it stops working. I got down to g2_itemAttributesMap and it stopped working. I undid that change, still didn't work. Kept moving back up the list, still didn't work. Very strange. Not sure if things are getting cached somewhere, but pretty clear I don't quite understand this software!
Posts: 6134
When you add photos/items to gallery each gets a unique id.
Unless you added everything in the same exact order as you did in your 2.0 version(impossible) none of your old ids will match.
I still recommend http://gallery.menalto.com/node/92148#comment-350730
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 13
I'd love to do this but I can't get back to the original version. Anyone know if there is a "no cache" mode to gallery so I can debug without having to clear the cache? Or is there a command line way to clear the cache?
Posts: 6134
if you delete the files and directories under g2data/cache gallery will rebuild them.
G2 2.0 -> G2 2.1 was where the major change occurred in error handling.
You need to make sure there is no 2.0 code left. Any 2.0 modules that were not updated need to go. Deactivating them with the query:
UPDATE g2_PluginMap SET g_active=0 WHERE g_pluginId='my plugin id';should do.
Matter of fact you should disable as many modules as you can.
Even what you may consider a harmless module could be the culprit.
And as I said before "each table needs to have a corresponding entry in g2_Schema".
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2