Moved gallery to new server...
|
TekWarren
Joined: 2006-10-22
Posts: 22 |
Posted: Mon, 2009-10-26 17:47
|
|
I recently moved my gallery installation to a new server. Database and all seemed to go ok with some hiccups. Paths changed but I think I have them all updated but something still is not right. I can get the main page to come up showing the two main Albums but no image associated with the albums. I can click on an album, or any link such as Login and nothing happens. The page does not change to the album I clicked but stays at the main, same thing if clicking on login or any other link. I have cleared out the cache folders to the best of my knowledge. Is there a path or something set in the database referencing the old location and if so any idea what table I should look in?
|
|

Posts: 16503
Make sure you followed every step in this guide:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
I did follow that guide and just re-ran through the process with the same result. I have reused the existing database during the setup on the new server. After the install is complete it takes me to my gallery main but no links or functions work. Still can't login, or open the two primary galleries that show up on the main page, the URL is changing but the page does not.
Posts: 16503
Did you move from Windows to Windows?
Have you double and triple checked permissions?
Have you tried a different theme, like Matrix?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4338
There's nothing in the Gallery2 official distribution that stores any paths in the database - with one exception, which is the rewrite (url rewrite) module, which is why it should be deactivated before moving a G2 installation and then reactivated after. Everything else is relative to the root folder (that contains main.php) or alternatively to the g2data folder whose path is stored, once, in config.php.
Problems with images (but not the rest of the html) can sometimes stem from an incorrectly set baseUri parameter (should be blank, to start with), again in the config.php, or a rewrite module problem.
I hope that helps -
Posts: 22
Yes I am moving from windows to windows. I have installed and reinstalled more times than I remember at this point LOL. I cannot change the theme because I can't login or do anything other than view the main.php page.
On a side note I just tried to do a fresh clean install and am getting this error: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 3476762 bytes) in D:\inetpub\wwwroot\warrenreptiles_com\gallery\modules\core\classes\Gallery.class on line 749
Maybe there is something else going wrong, any thoughts on this?
Posts: 16503
In addition, I just looked at your phpinfo, memory limit is set to 20M. That could be an issue with G2 as well. I'd make sure that's at least 32M
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
Posts: 22
I found this also in my researching and raised the level. I had a new G2 install working and had started to go through the settings, plugins, etc Thinking that it was working and I would just have to re-upload my pics...When, the same issue occurred with the broken links. Can't log back in, can't do any sort of navigation within gallery away from the main page...very odd and frustrating since it used to work so well on the old server.
Posts: 16503
I don't understand your last post. Are things still broken?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
Yes. I can go to my gallery: warrenreptiles.com/gallery but if I click on anything such as Login it does not take me to the login page. The url changes but the main.php pages stays up.
Posts: 16503
Have you double checked that the permissions on g2data are set so that IIS can read and write to it and ALL directories and files below it?
There's no value for session.save_path (which I thought there was). I'd set that to a temporary directory that IIS has permission to write to.
And maybe you need to run through this:
http://gallery.menalto.com/node/75599#comment-269778
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here