Hostgator error, line 44.

by Mellor
9 replies
Hey guys, im currently getting an error for my gatorhost forums, it was working originally perfectly, then my partner did something, and it stopped working. He is away for another couple of days, so I cant ask him for any help about what he changed.
I believe he was trying to add a webclient to the host or something. But anyway this is the error im getting.

Warning: require_once(../init.php) [function]: failed to open stream: No such file or directory in /home/obpk/public_html/index.php on line 44

Fatal error: require_once() [function]: Failed opening required '../init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/obpk/public_html/index.php on line 44


I was thrown in the deep end really, I only code the forums , I know nothing about this really. But im asuming that he has changed the require_once(). Saying that I have no clue.
I would like it so that when you type in the forum adress it just comes up with the forum page like it used too. Im using ipb forums , if that helps im not sure. Thanks for the help guys. Oh and the [function.require] was a link, but im not allowed to post links =)
#error #hostgator #line
  • Profile picture of the author Mellor
    Sorry that didnt really make much sense, [function.require] is the [function] in the error. Sorry about the double post.
    {{ DiscussionBoard.errors[727505].message }}
  • Profile picture of the author BlackWaterBlog
    May want to contact HostGator about this, could be a problem server-side.
    Signature

    {{ DiscussionBoard.errors[727508].message }}
  • Profile picture of the author Mellor
    Im not sure, ive been surfing the web about this problem, and its something to do with the code i believe. Although I couldn't find specific replys about line 41 the require_once line.
    {{ DiscussionBoard.errors[727510].message }}
  • Profile picture of the author BlackWaterBlog
    Open up index.php, look for lines 43-44 and post them here.
    Signature

    {{ DiscussionBoard.errors[727515].message }}
  • Profile picture of the author Mellor
    */
    /**
    * Main ACP executable wrapper.
    *
    * Set-up and load module to run
    *
    * @package InvisionPowerBoard
    * @author Matt Mecham
    * @version 2.1
    */
    /**
    * Script type
    *
    */
    define( 'IPB_THIS_SCRIPT', 'admin' );
    define( 'IPB_LOAD_SQL' , 'admin_queries' );
    require_once( '../init.php' );
    $INFO = array();



    That is lines 25-46.
    Thanks for the help by the way =)
    {{ DiscussionBoard.errors[727526].message }}
  • Profile picture of the author BlackWaterBlog
    Oh, are you running invision? Have you opened up the original file from the download archive and cross checked it?

    Seems like require_once( '../init.php' ); is causing problems because maybe the " .. " part isn't working right and not pointing to the root. Have you tried a direct URL access of that file?
    Signature

    {{ DiscussionBoard.errors[727548].message }}
  • Profile picture of the author Mellor
    I tried changing it to /home/obpk/public_html/init.php , is that the direct URL? If so , it just directs me to the admin control panel , its the board I need. But im not sure which over all file that belongs too.
    {{ DiscussionBoard.errors[727560].message }}
  • Profile picture of the author BlackWaterBlog
    No, I mean like

    http://www.yourdomain.com/init.php

    Tried that?
    Signature

    {{ DiscussionBoard.errors[727562].message }}
  • Profile picture of the author Mellor
    That gave me a couple of different errors

    Warning: require(ROOT_PATHsources/ipsclass.php) [function.r]: failed to open stream: No such file or directory in /home/obpk/public_html/index.php on line 61

    Warning: require(ROOT_PATHsources/ipsclass.php) [function.ree]: failed to open stream: No such file or directory in /home/obpk/public_html/index.php on line 61

    Fatal error: require() [function.re]: Failed opening required 'ROOT_PATHsources/ipsclass.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/obpk/public_html/index.php on line 61
    {{ DiscussionBoard.errors[727589].message }}

Trending Topics