Upgrade - now breadcrumb goes to wrong forum URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • slinky
    Senior Member
    • Mar 2001
    • 3113
    • 1.1.x

    Upgrade - now breadcrumb goes to wrong forum URL

    This may have to do with legacy work done from way back in 4.0.x. I overwrote all files with the latest vBulletin 4 package. Take a look at the navigation.



    I get forums/.php when I hover over the forum link in the navbar. This may have to do with a config or php file which needs adjustment.
    My law forum, lawyers and legal help site
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    What vBulletin version are you running?
    Did you upload the same files for that version?
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • slinky
      Senior Member
      • Mar 2001
      • 3113
      • 1.1.x

      #3
      As per the latest version I can see - 4.2.2 PL4 the latest. Uploaded all files, overwrite.
      My law forum, lawyers and legal help site

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #4
        What do you have set here?
        AdminCP > Settings > Options > Forum Home: Options > Script Name for Forum Home Page
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #5
          Is the navbar template customized? As it is only the one link the goes back to the Forums, I believe the customization there is out of date.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • slinky
            Senior Member
            • Mar 2001
            • 3113
            • 1.1.x

            #6
            1. The forumhome URL setting is empty.

            2. The navbar is styled - but whatever was done worked with 4.2.2 PL1. I upgraded because I thought it was supposed to stop the double posting issue - and then this happened. Very odd. Can't seem to determine where it is but in the specific file that generates URLs. It's not in the navbar templates hence I think it's in a php file. Thanks for the help guys.
            My law forum, lawyers and legal help site

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24286
              • 6.0.X

              #7
              Try setting the forumhome URL to:

              index

              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • slinky
                Senior Member
                • Mar 2001
                • 3113
                • 1.1.x

                #8
                Great Idea, Mark, but didn't work. Here's the issue. It must be in the navbar_link template:

                <vb:if condition="$show['breadcrumb']">
                <li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li>
                <vb:else />
                <li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li>
                </vb:if>

                The issue appears in the generation of the raw nav_url. I'd have to look in that template. It's tacking on the extra ".php" and I recall this being a problem with earlier installations. It had to do with the way vB was originally set up and the need to rename forum.php to index.php and get it to work properly. I tried doing that and it didn't work either. Now if I can look in the file responsible for the above URL generation in the backup, perhaps I can see what went on and if it was fixed...
                My law forum, lawyers and legal help site

                Comment

                • slinky
                  Senior Member
                  • Mar 2001
                  • 3113
                  • 1.1.x

                  #9
                  OK - That is in class_friendly_url.php -- and there is code that needs to be changed. Don't know if it is a bug but it is on my site in standard breadcrumbs.

                  Line 1534

                  $this->script = $registry->options['forumhome'] . ".php";

                  I added "index.php" because leaving it blank creates a problem. I'll have to figure that one out. I'll make a canonical URL for the forumhome but at least this solves this mystery. Now the more challenging problem of double posting.
                  My law forum, lawyers and legal help site

                  Comment

                  • slinky
                    Senior Member
                    • Mar 2001
                    • 3113
                    • 1.1.x

                    #10
                    Another solution, works even better.

                    $this->script = "http://www.yoursite.tld/forums/";
                    My law forum, lawyers and legal help site

                    Comment

                    • Mark.B
                      vBulletin Support
                      • Feb 2004
                      • 24286
                      • 6.0.X

                      #11
                      There's something wrong somewhere here.

                      There is no bug.

                      $this->script = $registry->options['forumhome'] . ".php";
                      That line adds ".php" onto the end of the setting I suggested changing earlier.

                      That behaviour works on every 4.2.2 install I've ever worked on.

                      Either your navbar_link template needs reverting, or you've got a modification that it changing the default behaviour.
                      MARK.B
                      vBulletin Support
                      ------------
                      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                      Comment

                      • slinky
                        Senior Member
                        • Mar 2001
                        • 3113
                        • 1.1.x

                        #12
                        My navbar_link template appears standard. The only way this will work is to put in a custom URL for the forum as www.site.tld/forums/index because the software tacks on a ".php" onto the end. But it's no matter - it works better like this so I can get rid of the index.php. No big deal as long as it works. The other issue is more of a problem. Thanks for the help.
                        My law forum, lawyers and legal help site

                        Comment

                        • Mark.B
                          vBulletin Support
                          • Feb 2004
                          • 24286
                          • 6.0.X

                          #13
                          It's *supposed* to tack a .php on the end.

                          AdminCP > Settings > Options > Forum Home: Options > Script Name for Forum Home Page

                          If you set that to "index", the software will add ".php" to the end so you get "index.php".

                          That was the reasoning behind asking you to change that setting earlier - it was blank, which would explain why you just got ".php" with nothing in front.
                          MARK.B
                          vBulletin Support
                          ------------
                          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                          Comment

                          Related Topics

                          Collapse

                          Working...