Moving gallery 2.3.1 to a new server
adnedarn
Joined: 2007-08-25
Posts: 32 |
Posted: Thu, 2011-06-09 05:37 |
Hello, I had a gallery 2.3 installation migrated from gallery 1 on my server and needed to move it to my new server. I followed the instructions here: http://codex.gallery2.org/Gallery2:FAQ#How_can_I_move_my_Gallery_installation_from_one_server_to_another.3F So, once I did my back up, and upgraded to 2.3.1 everything worked fine. I followed the rest of the instructions to the T I'm pretty sure. Once I got all my files and database moved/installed on the new server and started going through all the upgrade steps, I was missing a lot of modules.. They were not in the 2.3.1 folder that I had upgraded to so I pulled them from my back up files I had downloaded and got through the installation.. it pointed to my data folder and my database just fine... but once I got logged in, installed and activated the URL rewrite module... none of the photos are showing up. Did I mess up somewhere, or is it because it's a gallery1 migration version of g2? I'm just not sure what steps to take next. here is the temp location of the new gallery... http://cpfaq.org/cpforums/gallery/main.php |
|
Posts: 8339
make sure you did not transfer the old .htaccess gallery needs to create one for the new installation.
also check the baseUri setting in config.php(last line)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Hello suprsidr!
I'm sure I did not transfer either of those, I checked the last line of the config it created and it showed the correct path. For fun, I uninstalled the rewrite module, and deleted the .htaccess and config files, reran the install process, and turned the rewrite module back on. The images still show broken.
Thanks!
Andrew
Posts: 32
I tried the move again, using a full install of the new version (since I had to fill in all the missing plugins before using a typical instal) then continued with the moving instructions... this time, the install went great and I had no file verification problems, but still- the images do not show. (new instal is in same location as my first try in post #1)
thanks for any assistance you can provide!
Andrew
Posts: 8339
as w/ the last time, your site is in maintenance mode and I cannot view it.
Here is my method:
My way any theme/module customizations you may have done come along for the ride.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Thanks for the reply- if you're hanging around... I'll open it right now- sorry wasn't thinking :X
Posts: 8339
disable rewrite and get your gallery working first.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Alright, I disabled the rewrite again. It shows the same broken images.
Thanks,
Andrew
Posts: 8339
likely a permissions issue in your g2data try:
chmod -R 0777 /full/system/path/to/g2data
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Ok I chmod my g2data folder recursively and still doesn't seem to have changed anything. Unless you have another idea I could delete it all and move the whole thing over again using your suggestion. I wonder if there is any limit on my internet provider on all this bandwith use I've done lately... since I can't get server to server file moving to work with smartFTP even though my server people said they don't block it.
Thanks for your help.
Andrew
Posts: 8339
you still have rewrite enabled http://cpfaq.org/cpforums/gallery/v/glider14/IMG_1538.jpg.html
also switch to matrix theme
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
yah, I had it off did the chmod checked it then turned it back on... It's off again and switched to matrix now.
Thanks!
Andrew
Posts: 8339
I still see classic theme
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Sorry, hadn't played with themes in a loooong time, didn't set it in the top default part.
Posts: 8339
do you have an active graphics toolkit?
can you rebuild thumbs and resizes for one album?
can you add new content?
when you run the upgrader to step 2(system checks) do you receive any warnings?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
yes, gd and imagemagic are active and setup.
I rebuilt the Werdna album using "Check here to apply size limits to the pictures in this album and all subalbums Checking this option will rebuild pictures according to appropriate limits" I hope that's the way you meant, the other in maintenance was for all albums.
hmm nope I can't add something, I get this when I click to upload it...
Error (ERROR_PLATFORM_FAILURE)
in modules/core/classes/GalleryDataItem.class at line 178 (gallerycoreapi::error)
in modules/core/classes/GalleryPhotoItem.class at line 104 (gallerydataitem::create)
in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 148 (galleryphotoitem::create)
in modules/core/classes/GalleryCoreApi.class at line 1668 (galleryitemhelper_medium::additemtoalbum)
in modules/core/ItemAddFromBrowser.inc at line 99 (gallerycoreapi::additemtoalbum)
in modules/core/ItemAdd.inc at line 159 (itemaddfrombrowser::handlerequest)
in ??? at line 0 (itemaddcontroller::handlerequestwithprogressbar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1089
in g2data_kkfi58ls15/smarty/templates_c/%%2062037876/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (gallerytemplateadapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241 (gallerysmarty::fetch)
in main.php at line 506 (gallerytemplate::display)
in main.php at line 104
in main.php at line 88
I get no warnings at system checks.
Thanks!
Andrew
Posts: 32
Also, I've downloaded my current gallery folders and am currently uploading them to a new directory on my server... shouldn't be too long till that's done then I can work on a new move using your move method if you think that's a good step now.
Thanks!
Posts: 8339
FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
Thanks, I guess I'll just move on to the new move instal. I did the things listed there (including using the tool in that package to re chmod -r 777 the g2data dir) and still have no luck. thanks for the help! I'll let you know what happens.
Andrew
Posts: 32
Well, I think it's all up and running! I was able to upload a picture and as I browse around everything seems to be working fine. Using your method I was getting a error page when I clicked on albums saying it wasn't found but similar items were then it'd link to a .html version which wasn't viewable. So I went back to the installer and instead of stopping at step 3 as you suggested, I went through the whole thing and after that most were working. I turned the url rewrite and the permilink plugins back on and now I think everything is operational. I'll find a few users that use it the most and have them check it and see if they notice anything flaky but I think the move is (finally) successful. Thanks for your time suprsidr, much appriciated!
Andrew