Support » How-To and Troubleshooting » Warning and Fatal error-failed to open stream

Warning and Fatal error-failed to open stream

  • Here is my page that I am suddenly having problems with:

    Here is the actual error:

    Warning: main(admin.php) [function.main]: failed to open stream: No such file or directory in /nfs/c01/h05/mnt/9934/domains/blog.accsocal.com/html/index.php on line 10

    Fatal error: main() [function.require]: Failed opening required ‘admin.php’ (include_path=’.:/usr/local/php-4.4.8-1/share/pear’) in /nfs/c01/h05/mnt/9934/domains/blog.accsocal.com/html/index.php on line 10

    Everything was working fine and then I suddenly received this error. I reinstalled the main wp-admin files and cannot seem to figure out why it keeps doing this. Any help would be great!

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi


    Forum Moderator

    What’s in index.php? There is no /admin.php file in WordPress.

    Here is my index.php
    * Dashboard Administration Panel
    * @package WordPress
    * @subpackage Administration

    /** Load WordPress Bootstrap */

    /** Load WordPress dashboard API */
    require_once(ABSPATH . ‘wp-admin/includes/dashboard.php’);


    wp_enqueue_script( ‘dashboard’ );
    wp_enqueue_script( ‘plugin-install’ );
    wp_enqueue_script( ‘media-upload’ );
    wp_admin_css( ‘dashboard’ );
    wp_admin_css( ‘plugin-install’ );

    $title = __(‘Dashboard’);
    $parent_file = ‘index.php’;

    $today = current_time(‘mysql’, 1);

    <div class=”wrap”>
    <?php screen_icon(); ?>
    <h2><?php echo esc_html( $title ); ?></h2>

    <div id=”dashboard-widgets-wrap”>

    <?php wp_dashboard(); ?>

    <div class=”clear”></div>
    </div><!– dashboard-widgets-wrap –>

    </div><!– wrap –>

    <?php require(ABSPATH . ‘wp-admin/admin-footer.php’); ?>



    Forum Moderator

    That’s the wp-admin/index.php file! Download a fresh copy of your version of WordPress and re-upload the index.php file in the root wordpress folder.

    I did re-upload the entire wp-admin folder over. Is it possible I may have just done the wrong version?



    Forum Moderator

    It looks like you may have installed the contents of the wp-admin folder in your WordPress root folder. I’d suggest re-installing all files in the root folder plus everything in the wp-admin folder.

    I am so confused, now it is doing this



    Forum Moderator

    What’s the problem?

    This is what my blog used to look like:




    Forum Moderator

    So install & activate your previous theme.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning and Fatal error-failed to open stream’ is closed to new replies.