Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjammindice
    • CommentTimeJun 22nd 2007 edited
     
    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.
    • CommentAuthordime
    • CommentTimeJun 26th 2007
     
    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.
    • CommentAuthordime
    • CommentTimeAug 6th 2007
     
    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.
  1.  
    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

    you just do a find and replace on these files
    • CommentAuthordime
    • CommentTimeAug 7th 2007
     
    I typed wrong, I meant to replace the SERVER_NAME and HTTP_HOST. So, correct steps to do:

    extract version 3; find this files you listed; replace the SERVER_NAME with HTTP_HOST; then upgrade from 2.1 to 3.

    If I understood wrong, please correct me.
  2.  
    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