I installed the latest CVS available today (Feb 13th?). I setup my primary gallery2 and tested it, it work fines. I then made an additional install utilizing the simlink. I made a different data directory, and used a different table and column prefix on the secondary database and the primary one.
When I finish the install and attempt to login as admin in the secondary gallery, I leave the URL:
http://photos.bcheck.net/main.php?g2_view=core:UserAdmin&g2_subView=core:UserLogin&g2_return=http%3A%2F%2Fphotos.bcheck.net%2Fmain.php%26g2_GALLERYSID%3Dcb413ccb8328d86ef6a875ede218db9d&g2_GALLERYSID=cb413ccb8328d86ef6a875ede218db9d&g2_returnName=album&g2_navId=
and attempt to go to the URL:
http://photos.bcheck.net/main.php?g2_GALLERYSID=cb413ccb8328d86ef6a875ede218db9d
which is blank.. as in, no source for the page at all. This happens in IE and Mozilla, and after I clear the cache in my browser.
The session file that matches the ID looks like:
a:3:{i:0;i:1108409370;i:1;a:2:{i:0;s:11:"129.59.93.8";i:1;s:32:"2581833420733f29e9446ab1312d0ac0";}i:2;a:3:{s:18:"
core.id.activeUser";i:5;s:15:"permissionCache";a:1:{i:0;a:4:{s:9:"core.view";a:1:{i:6;i:1;}s:12:"core.viewAll";a:1
:{i:6;i:1;}s:16:"core.viewResizes";a:1:{i:6;i:1;}s:15:"core.viewSource";a:1:{i:6;i:1;}}}s:15:"core.navigation";a:1
:{s:9:"x8e62c652";a:2:{s:4:"data";a:2:{s:9:"returnUrl";s:84:"http://photos.bcheck.net/main.php&g2_GALLERYSID=c
b413ccb8328d86ef6a875ede218db9d";s:10:"returnName";s:5:"album";}s:7:"nextIds";a:0:{}}}}}
If I go back to the base URL for the secondary gallery, I am logged in as admin. I continue to have future generate URLs send me to blank pages.
----
Gallery URL (optional):
Gallery version: CVS from feb-14(13?)-2005
Webserver (with version): Apache 2.0
Datatabase (with version): MySQL 4.1.8
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional): http://photos.kuhnfamily.net/lib/tools/phpinfo.php
Graphics Toolkit(s): IM/GD
Operating system: ClarkConnect (Fedora Core 2)
Web browser/version: Mozilla 5/IE 6
Posts: 8601
yay, glad to know someone is trying out the multisite functionality.. i haven't gotten any feedback on it since it was added.
i'm guessing that your first install was photos.kuhnfamily.net and the second install uses a symlink to point photos.bcheck.net to the same codebase? when I go to one site I see an album and the other is empty so it looks like the multisite config is working ok, pointing to different db tables and g2data dirs.
please look closely at the url after you login.. is the url missing a ? character or maybe has a & where it should have a ? (after main.php)... if so, then this is a known bug and not actually related to your multisite setup.. hopefully we'll fix it soon.
Posts: 60
Thank you for your help!
Yes, you are correct in your description.
Adding a & to the end of the second URL does fix it.
The URLs as above are the complete URLs, copy and pasted from the address bar in Firefox. (IE has same).
When I logout I get the URL:
http://photos.bcheck.net/main.php?g2_controller=core:Logout&g2_return=http%3A%2F%2Fphotos.bcheck.net%2Fmain.php%3Fg2_GALLERYSID%3D2486b143de119d60af884dde0d85fa54&g2_GALLERYSID=2486b143de119d60af884dde0d85fa54&g2_returnName=album&g2_navId=
that also goes to a null/blank page.
If I can do more to help, let me know. I have debug running, but don't know where the log file is? Perhaps that could be added to the module description?
Regarding the multisite install, it is a great feature! In the install process it would be helpful that once the "multisite" install link has been hit if it would prompt for a new, unique database prefix set and a new, unique, data directory. It was not initially clear to me that these items were both needed.
Posts: 8601
debug output is actually configured in config.php; the debug module doesn't turn this on (confusing, i know..)
i added a note about the g2data dir and database setup in the multisite instructions page.. good idea.
Posts: 60
Here is my buffered debug I notice that the URL it sends me to in the address bar is http://photos.bcheck.net/main.php&g2_GALLERYSID=ee014e0569f7331c361285eef1ec1ad6
which is not the same as the one listed below....
Smarty too
Posts: 8601
the fix for that bug is in cvs. try tomorrow's snapshot.
Posts: 60
Thanks for the fix!
I noticed in the unified config.php file it is a bit confusing which command flag belongs to which gallery. It is certainly a low priority, but perhaps sometime in the future the layout could be changed to more resemble the virtual host directives in apache (maybe this style is out dated now?). That is, there would be one set of instructions, then a a set of directives for each multisite. e.g.:
/*
* Instructions go here
*/
<multisiteAAA>
<debug on/off>
<password blah>
</multisiteAAA>
<multisiteBBB>
...
</multisiteBBB>