Error when viewing New Posts on 4.0.1 in Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sharkman
    Member
    • Nov 2007
    • 37
    • 3.6.x

    [Forum] Error when viewing New Posts on 4.0.1 in Firefox

    I just upgraded to 4.0.1. No errors during the upgrade, and everything was working fine (other than known bugs) with 4.0.0.

    Now, though, when I click on New Posts from Firefox, the browser reports a page not found error. Fiddler shows the following request:

    GET /search.php?do=getnew&contenttype=vBForum_Post

    and the following response:

    HTTP/1.1 302 Redirect
    Content-Type: text/html; charset=UTF-8
    Location: http://www.mydomain.com\/search.php?searchid=834
    Server: Microsoft-IIS/7.0
    X-Powered-By: PHP/5.2.5
    Date: Wed, 13 Jan 2010 06:14:22 GMT
    Via: 1.1 bc7
    Content-Length: 180
    Connection: Keep-Alive

    Note the "\/" characters in the response. Maybe this is happening because my site is hosted at the top level of the domain, and not under "/forum/"?

    URL rewriting is not enabled. I tried standard and advanced URLs from the VB ACP, and they both have the same error.

    It works OK in IE; the same URL appears, but IE handles it OK.

    EDIT: it's not just New Posts; various other links have the same problem.
    Last edited by Sharkman; Tue 12 Jan '10, 9:33pm.
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24358
    • 5.7.X

    #2
    Are you using rewrite rules on the site? Has the following setting got a trailing slash when it shouldn't:

    AdminCP > Settings > Options > Site Name / URL / Contact Details > Forum URL
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Sharkman
      Member
      • Nov 2007
      • 37
      • 3.6.x

      #3
      No rewrite rules. Everything worked fine with 4.0.0. The Forum URL is set correctly.

      I ended up debugging it myself. Here's a fix that worked for me. In class_core.php, search for "dirname", and change the line to this:

      define('VB_URL_SCRIPT_PATH', rtrim(str_replace('\\','',dirname($url_info['script'])), '/') . '/');

      I also posted the solution on another thread, and it worked for a couple of other people, too:

      Comment

      • Dunhamzzz
        Senior Member
        • Jul 2008
        • 140
        • 3.8.x

        #4
        PL1 here we come.

        Comment

        • ALFARiS
          Member
          • Apr 2005
          • 36
          • 4.0.x

          #5
          Originally posted by Dunhamzzz
          PL1 here we come.
          Was about to say it
          Hallelujah!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...