• I created a subdomain to build my blog behind scenes without disturbing the live one: https://www.work.loveandlightyogastudio.com.

    I was attempting to remove my subdomain so the URL would be just loveandlightyogastudio.com; and ran into issues first where I would only see Index of/

    I resolved that, but an now getting the following error:

    Warning: require_once(/home2/yoga5050/public_html/Workadmin.php): failed to open stream: No such file or directory in /home2/yoga5050/public_html/Work/index.php on line 10

    Fatal error: require_once(): Failed opening required ‘/home2/yoga5050/public_html/Workadmin.php’ (include_path=’.:/opt/php54/lib/php’) in /home2/yoga5050/public_html/Work/index.php on line 10

    I’m not certain how to resolve this. I reloaded my previous index and still receive the error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like your /Work/index.php file is requiring a /Workadmin.php script that it is not finding in the web root. Also none of this looks WordPress related, are you editing the index.php at the root of your installation? Assuming this is a fresh WordPress site, your root index.php should look like:

    <?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( dirname( __FILE__ ) . '/wp-blog-header.php' );
    Thread Starter Rorew

    (@rorew)

    Should it ask me to re-enter my database information? I had an existing site built under work.loveandlightyogastudio.com. Am I going to lose that?

    This is what is currently under my index.php:

    [ Excessive code moderated, please use pastebin.com ]

    Thread Starter Rorew

    (@rorew)

    Should it be asking me again for my databse information?

    This is what is currently under my index.php (i believe at the root – public_html/work/index.php.

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No such file’ is closed to new replies.