• Resolved miente

    (@miente)


    Hello,

    I hope someone can help me out. I’m pretty new at the whole wordpress concept and I try to find my way around by reading the stuff.. But now I ecountered something I can’t figure out..

    I wanted to have my wordpress files in a different folder /wp instead of the root html folder. I follow everything the wordpress guidelines say for chanhing the url but I have one problem. When I open up my index.php I can’t find the line which says: require(‘./wp-blog-header.php’);

    The only thing close to it is: require_once(‘admin-header.php’) I tried to change this to ‘wp/admin-header.php’) but it doesn’t make any difference. I still get the following message:

    Warning: require_once(admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/mientepera/www/html/wp/index.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required ‘admin.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/mientepera/www/html/wp/index.php on line 3

    I did followed the steps exactly and now I don;t know how to move on further. I can still acces my admin index etc.

    What can I do do recover this, because if I use my domainname (www.mientepera.nl/wp) it won’t work either..

Viewing 2 replies - 1 through 2 (of 2 total)
  • You are opening the wrong index.php file. You are opening the one in /wp-admin.
    You want the index.php in your root wordpress install. The line you are looking for is near the bottom.

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    Thread Starter miente

    (@miente)

    aaargh.. sorry.. stupid mistake! Thnx for your help.. everything works now.. Learned something again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: require_once(admin.php)’ is closed to new replies.