Not signed in (Sign In)

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

  1.  
    great script just ran into a little bump when setting it up.

    when i turn on the cruft-free urls the links generate 404 errors

    the link generated before turing on the cruft-free urls would look like this:
    http://domain.com/index.php?level=picture&id=2

    when i turn it on it look like this:
    http://domain.com//just-moobell/fall-2009/mo/

    notice it has two slashes aftr the domain name. anyone know how i can fix this as this is the problem thats making 404 errors?
    • CommentAuthorsamir
    • CommentTimeDec 1st 2009
     
    Hi,

    In the file plog-functions look for the line around line 1426:
    relace the line below by removing the slash at the end:
    $rv = $config['baseurl'].rawurlencode(SmartStripSlashes($row['collection_path'])).'/'.rawurlencode(SmartStripSlashes($row['album_path'])).'/'.$args;

    to
    $rv = $config['baseurl'].rawurlencode(SmartStripSlashes($row['collection_path'])).'/'.rawurlencode(SmartStripSlashes($row['album_path'])).$args;

    See if it works.

    thanks
    • CommentAuthorsamir
    • CommentTimeDec 1st 2009
     
    Hi,

    May be try replacing the line 1415

    from $rv = $config['baseurl'].rawurlencode(SmartStripSlashes($row['path'])).'/'.$args; to

    $rv = $config['baseurl'].rawurlencode(SmartStripSlashes($row['path'])).$args;

    Thanks
    • CommentAuthorphpnovice
    • CommentTimeDec 1st 2009
     
    I just upgraded to version 1.0 RC1 and my gallery now has this issue as well.

    Neither of the above solutions was successful at removing the extra slash.
    •  
      CommentAuthorsidtheduck
    • CommentTimeDec 1st 2009
     
    This should be fixed now in the current SVN code. You can download it here or you can change the plog-load-config.php file as shown here -> http://dev.plogger.org/changeset/607/trunk/plog-load-config.php
    • CommentAuthorphpnovice
    • CommentTimeDec 1st 2009
     
    Thank you! I had to toggle off and on the Cruft-Free URL option to fix the 404 error after uploading trunk r607, but it works now.
    • CommentAuthorelias75
    • CommentTimeJan 17th 2010
     
    I have the same problem too, using this version: VERSION: 1.0-RC1-RevLastChangedRevision

    what would be my best solution?
    • CommentAuthorelias75
    • CommentTimeJan 21st 2010
     
    anyone?
    • CommentAuthorelias75
    • CommentTimeJan 27th 2010
     
    please help
    •  
      CommentAuthorsidtheduck
    • CommentTimeJan 27th 2010
     
    elias75,

    Did you follow the changes from the link above? (http://dev.plogger.org/changeset/607/trunk/plog-load-config.php)
    Thankful People: mrzippy
    • CommentAuthorelias75
    • CommentTimeJan 27th 2010
     
    yes I have uploaded the updated plog-load-config.php file and toggle on the Cruft-Free URL option but I still get 404 error pages

    I am using the plogger-SVN-with custom titles version so there might be an issue with this version....
    Also I suspect that I might be having something wrong in the path to the gallery, if you want to have a look : www.FreeFilmPosters.com
    • CommentAuthorelias75
    • CommentTimeFeb 4th 2010
     
    so is there a fix in my issue? :)
    •  
      CommentAuthorsidtheduck
    • CommentTimeFeb 5th 2010 edited
     
    elias75,

    It's probably not a path error, but the fact that you are using Plogger as an embedded script in a separate file (gallery.php). If you enable the Cruft Free URLs, it should work on your site using the path "http://www.freefilmposters.com/ploggerb3/" (but not if you use "http://www.freefilmposters.com/gallery.php"). However, this will not look the same as the rest of your site as you are embedding Plogger into a site template instead of editing the theme or Plogger index to incorporate the rest of your site design.

    There is a way to get it to work on your system WITH the 'gallery.php" ending, but you will have to manually edit an .htaccess file on your server's root folder. If you are interested in this route, let me know and I can try to step you through the process.
    • CommentAuthorelias75
    • CommentTimeFeb 8th 2010
     
    sidtheduck,

    yes please lets try editing the .htaccess file..... please also note that I haven't done this before and I know nothing about editing .htaccess files

    thanx in advance
    •  
      CommentAuthorsidtheduck
    • CommentTimeFeb 8th 2010
     
    elias75,

    Log in to your admin panel and turn on the Cruft-Free URLs. After you have done that, please open up the .htaccess file within the Plogger folder and post the code from that file to the board here. Also, if you have an existing .htaccess file within your root directoy, please post the code from that file to the board as well (if not, don't worry about it). I can then help you to manually generate the code for the .htaccess file in the parent directory of Plogger (the root directory of your website).

    Thanks.
    • CommentAuthorelias75
    • CommentTimeFeb 8th 2010
     
    here is the code from Plogger
    # BEGIN Plogger
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /ploggerb3
    RewriteCond %{REQUEST_URI} !(\.|/$)
    RewriteRule ^.*$ http://www.freefilmposters.com%{REQUEST_URI}/ [R=301,L]
    RewriteCond %{HTTP_HOST} !^www [NC]
    RewriteRule ^(.*)$ http://www.freefilmposters.com/ploggerb3/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^.*$ - [S=2]
    RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
    RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
    </IfModule>
    # END Plogger


    there is also a .htaccess in the root directory of the site (which is not created by me... maybe some default file from the host?) which appears to be blank cause I can't view or edit it from cPanel....
    • CommentAuthormrzippy
    • CommentTimeFeb 11th 2010 edited
     
    These changes worked for me.

    http://dev.plogger.org/changeset/607/trunk/plog-load-config.php
    • CommentAuthorelias75
    • CommentTimeFeb 12th 2010
     
    I have tried those changes but it didn't work
    • CommentAuthorelias75
    • CommentTimeFeb 18th 2010
     
    bump :)
    •  
      CommentAuthorsidtheduck
    • CommentTimeFeb 18th 2010
     
    I forgot that this was a bit more in-depth than I remembered. I'll have to take some time to test some things out so you are not significantly hacking the core code to get this to work.
    • CommentAuthorelias75
    • CommentTimeMar 2nd 2010
     
    any updates on this one? :)
    • CommentAuthorelias75
    • CommentTimeMar 12th 2010
     
    friendly bump :)
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 16th 2010
     
    elias75,

    Sorry for that. I looked back at the way I did this with another user, and it was working with the beta 3 version (although it took quite a bit of hacking the code). I guess I am going to change my suggestion to what I suggested to Mark P in this thread. Basically, you would take the code from your gallery.php file and use it for the plogger/index.php file (with any relative paths changed). This would allow the Cruft-Free URLs to work, but would not require you to edit the theme files to match your site (you would just wrap the Plogger theme in your site layout like your currently embedded installation at gallery.php).

    Hope that helps.
    • CommentAuthorelias75
    • CommentTimeMar 18th 2010
     
    sidtheduck,
    ok I am gonna try this but I just need to be sure about a couple of things...

    I am using the plogger-SVN-with custom titles version so is it ok to proceed? Any issues with this particular version?

    So basically I take this code from gallery.php
    <?php
    /* This is a backwords compatible file to make old installations work correctly */

    include_once(dirname(__FILE__).'/plogger.php');

    function the_gallery_head() {
    return the_plogger_head();
    }

    function the_gallery() {
    return the_plogger_gallery();
    }

    ?>


    and paste it to the plogger/index.php file deleting the code below:

    <?php
    /*
    * Plogger - A web based photo gallery
    * Copyright (C) 2005-2009 Mike Johnson
    *

    */
    ?>
    <?php require('plogger.php'); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xml:lang="<?php echo $language; ?>" lang="<?php echo $language; ?>" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <?php the_plogger_head(); ?>
    </head>

    <body>

    <?php the_plogger_gallery(); ?>

    </body>
    </html>


    should I delete the gallery.php after this? and which are the paths to be changed....

    please excuse my newbiness with this :) I am just checking to see if I understood right so that I will not get paranoid if I mess things up....

    cheers
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 18th 2010
     
    no problem with the confirmation, elias75.

    Sorry about that. It should be from gallery1.php (the current page that you have the gallery shown at) from your root directory (not the gallery.php from the Plogger folder).

    Once you have updated the plogger/index.php, you will need to change your header links for the gallery from "gallery1.php" to "ploggerb3/" (or whatever you want to name your folder if renaming the directory from ploggerb3. You could name the directory and links "gallery/" and change the Gallery URL in Admin -> Options to "http://www.freefilmposters.com/gallery/" to make it look nicer).

    And yes, it should work just the same with the custom titles.