Forum url containing phppath?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aVirulence
    New Member
    • Sep 2009
    • 6

    [Forum] Forum url containing phppath?

    Hi all,

    I'm having some problems with my forum. For one reason or the other, since I upgraded to 4.0.4 some pages stopped working. For instance the new posts page:



    redirects to http://www.androidworld.nl/phppath/s...searchid=20224
    which should of course be http://www.androidworld.nl/forum/sea...searchid=20224

    Does anyone have an idea why this is happening? Can I set this path somewhere manually?

    Thanks!
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    As a temporary fix, find the following in includes/class_core.php


    PHP Code:
    $url_info['script'] = isset($_SERVER['ORIG_SCRIPT_NAME']) ? $_SERVER['ORIG_SCRIPT_NAME'] : $_SERVER['SCRIPT_NAME']; 
    to

    PHP Code:
    $url_info['script'] = $_SERVER['SCRIPT_NAME']; 
    Did that resolve your issue?

    Comment

    • soloarquitectura
      Member
      • Jun 2006
      • 42

      #3
      I had the same problem and this solution works

      I could not update to the version 4.0.4 either.
      The message was appearing: "Gone..."
      Look at: http://www.vbulletin.com/forum/showt...pgrade-to-4.04

      I have had to update changing manually the paths of every script.

      Comment

      • alan92rttt
        New Member
        • Jan 2003
        • 27

        #4
        Originally posted by Zachery
        As a temporary fix, find the following in includes/class_core.php


        PHP Code:
        $url_info['script'] = isset($_SERVER['ORIG_SCRIPT_NAME']) ? $_SERVER['ORIG_SCRIPT_NAME'] : $_SERVER['SCRIPT_NAME']; 


        to

        PHP Code:
        $url_info['script'] = $_SERVER['SCRIPT_NAME']; 
        Did that resolve your issue?
        I did this and now all I get is blank pages.


        If I try to call up tools.php I get

        Parse error: syntax error, unexpected T_STRING in /html/includes/class_core.php on line 27

        I can't see anything wring with line 27

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #5
          Likely the edit was badly done, or done with a bad editor. Can you try again on a fresh file using a simple text editor like wordpad?

          Comment

          • alan92rttt
            New Member
            • Jan 2003
            • 27

            #6
            Its not a bad edit. textpad is a basic editor its what I use for all my PHP work.

            I can run a diff on the original and unchanged version and the only difference it the change.

            updated version attached.

            Comment

            • alan92rttt
              New Member
              • Jan 2003
              • 27

              #7
              I think I found it

              Comment

              Related Topics

              Collapse

              Working...