• Resolved canoock

    (@canoock)


    After upgrading wp I can no longer get to administration section (the blog works). I have tried all the normaL debugging.

    Here are the messages:

    Warning: require_once(./wp-load.php) [function.require-once]: failed to open stream: No such file or directory in ./admin.php on line 30
    
    Fatal error: require_once() [function.require]: Failed opening required './wp-load.php' (include_path='.:/opt/pware/lib/php:/local/phpinclude') in ./admin.php on line 30

    The required file wp-load.php does exist at a directory above but forcing it to include causes duplication of function definitions. I have looked at the ownership and permissions (comparing it to my other wp installation which works).

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi Canoock,

    Can you try re-uploading WordPress manually via FTP? Don’t overwrite wp-content directory and wp-config.php file.

    Thread Starter canoock

    (@canoock)

    Thank you. I have doe that – it does not help.

    Thread Starter canoock

    (@canoock)

    Update
    This happens on entirely new install of wordpress 3.3.2 including new database.

    Then the new database is what the updated WP uses and that leaves the old database unused. Check it.

    Thread Starter canoock

    (@canoock)

    Krishna, I am sorry but I fail to understand what you are saying. I install a brand new wordpress and a brand new database. I am getting the same message as I posted at the head of this thread.

    The old database does not figure in the new install at all.

    Please post your site URL

    Thread Starter canoock

    (@canoock)

    I am sorry: Posting a url without giving you access to admin is meaningless. The blo posts work, what does not work is administration. I am prepared to email or PM the access.

    Try this:
    Open admin.php and at line 30, try to replace:

    require_once(dirname(dirname(__FILE__)) . ‘/wp-load.php’);

    with

    require_once( . ‘/wp-load.php’);

    You can read a similar solved problem at this thread.

    Thread Starter canoock

    (@canoock)

    I had read the thread before I posted. I tried their (and you suggestion). What happens is that the wp-load.php does get loaded but you get series of messages regarding duplicate function definitions.

    This should not generally happen if you freshly upgraded WP. If this happens it can be either related to your DB/ config.php file or some of the core files being corrupt. Your error logs may contain this, and your host will be able to fix it quickly. For people like me, one of the easiest ways is to actually see and test the site using various tools, which in this case is not possible. Neither you can make out. Then why don’t you approach your host?

    It can also be because of server settings and permissions. With which company is your site hosted?

    Thread Starter canoock

    (@canoock)

    I have my own AIX server.. On the server, I have a working version of WordPress which I do not update.

    In the fresh install, there cannot be a problem with config.php.

    There might be a problem with the DB but is has not changed for ages. The amount of debugging I would have to do on a 5 minute install system is prohibitive.

    I am not dependent on WordPress and will defer any other attempts to install it.

    Thank you for your help.

    You are welcome!

    Thread Starter canoock

    (@canoock)

    I do not know why this was marked resolved – it was not …

    I could not resist some further testing. This suggestion

    Try this:
    Open admin.php and at line 30, try to replace:

    require_once(dirname(dirname(__FILE__)) . ‘/wp-load.php’);

    with

    require_once( . ‘/wp-load.php’);

    did not work but

    include(  '../wp-load.php');

    did – so far.

    Thread Starter canoock

    (@canoock)

    I now confirm that the above fix worked for me even after I restored the old version of the wordpress instance and upgraded. That is, as long as I modified wp-admin/admin.php line 30 to
    include( '../wp-load.php');

    No I do consider it resolved, too.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘No such file or directory in ./admin.php’ is closed to new replies.