i run apache with many virtual hosts... when i finally got plogger up and running the gallery kept going to the wrong domain... i had done a self_url() function that pulled the correct domain every time. This is not so much as asking for help but identifying a possible bug.
I made a small modification in the plog-load_config.php file:
To correct the problem i used this: $config["baseurl"] = "http://".$_SERVER["HTTP_HOST"].....
Instead of this: $config["baseurl"] = "http://".$_SERVER["SERVER_NAME""]....
i think this would be a more accurate usage than the current setup. Every virtual host i had kept using the server_same (the wrong domain) instead of the actual http hostname for their virtual setup.
Just an FYI it might be wrong to do this... but it fixed things for me.
Oh, man, thank you very much for this! I didn't have same problem as your, but this done job! In galleries, every link Plogger created was sending to non-www domain of site (for example to http://site.com/...) and my default view is with www and I even entered code in .httacces for redirection.
jammindice, I plan to upgrade from 2.1 to 3 and I want to just ask you do I need to again put this old line, then upgrade to Plogger 3 and then again replace with new one, since i don't understand your comment here? Thank you.
no you just want to replace the SERVER_NAME with HTTP_HOST on those lines, not replace the whole line
In version 3 i found SERVER_NAME in these files, if you're upgrading you will want to make these changes BEFORE you run the upgrade.php to upgrade the database as it will insert an invalid url into the database
plog-load_config.php line 42 plog-functions.php line 1695 plog-remote.php line 191 _upgrade.php line 189
nope that should do it.... that's pretty much what i did except i ran _upgrade.php first and everything broke, then i changed all the files and ran _upgrade.php again and it fixed everything