Announcement

Collapse
No announcement yet.

repair.php confused by PHP's path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • repair.php confused by PHP's path

    I am running vBulletin on a shared server at viperhost, and the path provided by php seems to be confusing some php files which try to directly access files on the board. namely, the repair.php file included with vBulletin, and certian hacks, which I know are unsupported here, such as vBFTP.

    The problem is, the script is looking in the entire directory structure, aka /home/username/public_html/forum/admin/repair.php

    It is then unable to find the correct files, and errors out.

    Warning: main(./global.php): failed to open stream: No such file or directory in /home/ultimat/public_html/forum/admin/extras/repair.php on line 85

    Warning: main(): Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ultimat/public_html/forum/admin/extras/repair.php on line 85

    Fatal error: Call to a member function on a non-object in /home/ultimat/public_html/forum/admin/extras/repair.php on line 91
    The above error is caused by repair.php when trying to run it with options: repair.php?html=1&check=1

    Basically, I'm hoping the more PHP savvy can explain this, and maybe offer up a fix I could apply.

  • #2
    Move repair.php to the admin directory and try again.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Well now i feel dumb concerning having it in the wrong folder, and repair.php ran as it was supposed to. Now I have one table error in table "session", I get the error "The handler for the table doesn't support check" when it tries to repair the table. Any explination for this? Thanks!

      Comment


      • #4
        That's normal. The session table is help in memory and as a consequence it's not 'repairable' via repair.php. It's safe to ignore that message.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

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