I am trying to make modifications to a Drupal site but didn't want to do it to the main site, so I dumped the mysql db and reloaded on a different system. I copied all the files in /var/www/html (only drupal files are there) to the new system. I copied the ~/g2_data files to a new location on the test system. I edited the sites/default/settings.php file to reflect the new site info. I edited the gallery2/config.php file to also reflect the new site info. I turned on debugging in gallery.
When I look at the link for a gallery entry on the front page, I see a url like:
http:///gallery?g2_view=core.ShowItem@g2_ItemId=34440
But when I click on it, it takes me to:
/gallaxy2/user/login
I don't have that path/file. On the original site, from where I copied the files, it works as expected and the url is what shows up in the link.
So what have I done to gallery to make it think I need to do a non existent login?
Thanks,
Jim.
Comments
Nuts
In the above, the url is missing. It should have read
but drupal removed part of it.
Also, there are no indications of problems in the logs. The only error I see is the failure to find gallery2/user/login file which makes sense since it isn't there.
Thanks,
Jim.
Try going to the gallery
Try going to the gallery settings for the new site and clicking "Save Configuration".
That didn't work
It just gave me a blank screen. No errors in the drupal log. No errors in the galaxy2/error_log but it did rewrite the galaxy2/config.php file, however it is identical to what was there before.
An interesting observation:
When I go to http://..../gallery I see just two "gallery" image sets (for lack of a better description). If I click on either, they display a set of images as I would expect them to. However the "set" of images displayed by the aformentioned link is not among this group. It's like there are other hidden galleries. There are 8 of these. Also a link to "Click here to view all galleries" which when pressed only displays the two mentioned before. This is the same behavior on both production and test.
I know nothing about gallery2, so does this help anyone understand what might be going on?
Thanks
Jim.
Do any other settings
Do any other settings screens go blank? If not, then something in Gallery2 might be causing PHP to die. I recently had this with an old version of the gallery2 tags module -- I found that out by enabling Gallery2 debugging in config.php. Note that the drupal gallery module does not itself change the Gallery2 config.php file, so not sure what's going on there.
Not that I've found
Everything I've tried so far works as expected. I enabled the debug logging to a file but there are no obvious errors.
By "Saving configuration" it did change the config.php file in the gallery2 directory.
What confuses me is why there are only two galleries when I go to http://..../gallery. Obviously there are more on production because the links from the flexinode/flexiblock work to show other galleries. How they got there without being displayable in the gallery I have no idea. Also I have no idea why the test system should find them also, since the mysql DB tables are identical in both cases and the g2_data files were rsync'ed from production.
Unfortunately I don't understand the gallery2 application very well.
Jim.