• Resolved peppinl

    (@peppinl)


    Hi,

    I updated a couple of sites to 3.2 successfully so then decided to do my main site https://gardeningregisterblog.co.uk/. I was unable to upgrade automatically so in the end I followed the instructions for a manual upgrade.

    I can get into my admin screen OK but the follow error is appearing on my home page:

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in D:\virtualservers\gardenin\gardeningregisterblog.co.uk\wwwroot\index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.;C:\php5\pear’) in D:\virtualservers\gardenin\gardeningregisterblog.co.uk\wwwroot\index.php on line 17

    I have read a few topics and tried some troubleshooting methods suggested but without success, can anyone help?

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter peppinl

    (@peppinl)

    Did that without success. The only thing is that I don’t have a .htaccess file due to the type of server I’m on. Spoken to my host a few times about this.

    Thread Starter peppinl

    (@peppinl)

    Sorry forgot to give you the url: https://gardeningregisterblog.co.uk

    Since you do not have an .htaccess, you more than likely have a web.config file. Do you know how to reset the rewrite rules?

    There should be a block like this:

    <rewrite>
    <rules>
        <clear />
    <rule name="Wordpress Pretty Permalinks" enabled="true" patternSyntax="Wildcard">
                        <match url="*" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php" />
                    </rule>
    </rules>
           </rewrite>

    remove the block for now (save it somewhere), follow esmi’s instructions and see if that allows the site to display.

    Thread Starter peppinl

    (@peppinl)

    This is my web.config file which is slightly different. Do you still want me to remove the block?

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <directoryBrowse enabled=”false”/>
    <defaultDocument>
    <files>
    <clear/>
    <add value=”Default.htm”/>
    <add value=”Default.asp”/>
    <add value=”index.htm”/>
    <add value=”index.html”/>
    <add value=”iisstart.htm”/>
    <add value=”default.aspx”/>
    <add value=”index.php”/>
    </files>
    </defaultDocument>
    <rewrite>
    <rules>
    <rule name=”wordpress” patternSyntax=”Wildcard”>
    <match url=”*”/>
    <conditions>
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true”/>
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true”/>
    </conditions>
    <action type=”Rewrite” url=”index.php”/>
    </rule></rules>
    </rewrite>
    </system.webServer>
    </configuration>

    Remove the block that starts with <rewrite> and ends with </rewrite>

    <rewrite>
    <rules>
    <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*"/>
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
    </conditions>
    <action type="Rewrite" url="index.php"/>
    </rule></rules>
    </rewrite>

    I copied the block to remove above.

    Leave the rest of the file intact.

    Thread Starter peppinl

    (@peppinl)

    Done that but no change. I am clearing cache, cookies etc.

    Ok. So you have removed the rewrite rules, but still cannot access the front end.

    You have told us that the files exist in the root director. From the error message this is reported as the site root directory –>
    D:\virtualservers\gardenin\gardeningregisterblog.co.uk\wwwroot\

    When you upload the files what is the path your FTP client sees? is it /gardenin/gardeningregisterblog.co.uk/wwwroot/ ?

    Since you can access the admin side of the site I would also force an update of the rewrite rules. Go to Settings Permalinks and choose the Default option and save changes.

    If this fails, check with your host, thye may be able to see an issue on the server that is preventing ./wp-blog-header.php from loading.

    Thread Starter peppinl

    (@peppinl)

    Yes, the path my FTP client sees is /gardenin/gardeningregisterblog.co.uk/wwwroot/.

    I had already changed to the default option of permalinks as per Esmi’s instructions.

    I’ll speak to my host to see if they can help.

    Please leave this thread open in case they can’t help me.

    Thread Starter peppinl

    (@peppinl)

    Don’t know if this is relevant but I just tried to update another website to 3.2 and although I can see the home page https://lpflowers.co.uk/, I can’t access the admin page with a HTTP Error 500.0 – Internal Server Error.

    Here is the web-config from this and my gardeningregisterblog website:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <directoryBrowse enabled=”false”/>
    <defaultDocument>
    <files>
    <clear/>
    <add value=”Default.htm”/>
    <add value=”Default.asp”/>
    <add value=”index.htm”/>
    <add value=”index.html”/>
    <add value=”iisstart.htm”/>
    <add value=”default.aspx”/>
    <add value=”index.php”/>
    </files>
    </defaultDocument>
    </system.webServer>
    </configuration>

    compared with the web-config from a website not yet updated:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <security>
    <authentication>
    <basicAuthentication enabled=”false” />
    </authentication>
    </security>
    <defaultDocument>
    <files>
    <clear />
    <add value=”index.php” />
    </files>
    </defaultDocument>
    <httpRedirect enabled=”false”>
    <clear />
    </httpRedirect>
    <httpProtocol>
    <customHeaders>
    <clear />
    <add name=”X-Powered-By” value=”ASP.NET” />
    </customHeaders>
    </httpProtocol>
    <handlers>
    <remove name=”php” />
    <add name=”PHP via ISAPI (*.php)” path=”*.php” verb=”GET,HEAD,POST,DEBUG”

    modules=”IsapiModule” scriptProcessor=”C:\Php\php5isapi.dll” resourceType=”File” />
    </handlers>
    </system.webServer>
    </configuration>

    They are quite different so I was wondering if the change needs to be here.

    Waiting for host to get back to me.

    Thread Starter peppinl

    (@peppinl)

    My host says it was the theme so I switched to the default theme and despite trying this about 3 hours ago it worked.

    there are still some small issues with things but I suspect it must be the theme so I’ll talk to them.

    Do I need to put the rewrite code back into the web-config?

    Thread Starter peppinl

    (@peppinl)

    I’m thinking of reverting to the version I had before using my backup – any advice?

    For what its worth, I’d look into fixing the theme rather than reverting. That’s just my opinion, but moving forward is a better option than moving backwards.

    Thread Starter peppinl

    (@peppinl)

    Hi,

    It turned out that my host changed the line in index.php that said require(‘./wp-blog-header.php’); to require(‘wp-blog-header.php’);. This got the site up.

    Although it was up the sidebar was missing so I did some fiddling last night and finally got it working properly. I had to activate my Share and Follow plugin to get the sidebar to show! Don’t know why that would be but it’s working now so that’s fine.

    Thanks to you and Esmi for all your help. Hopefully this will help others in the future.

    I have tried the automatic upgrade to 3.2 after saving to the Database.

    My site at https://www.Home-Worker.biz is not accessible and I get the folloing error message when I try to access my site directly and also when I try to log in to WP:

    Fatal error: Call to undefined method Arras_Widget_Tag_Cloud::WP_Widget_Tag_Cloud() in /websites/123reg/LinuxPackage21/ho/me/_w/home-worker.biz/public_html/blogs/wp-content/themes/arras/library/widgets.php on line 404

    Can anyone please help me?

    Thank You

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Mustbe, please make a NEW topic for yourself. Unless you have this exact problem, it’s too hard to help two of you in one thread ??

    Peppini if this is all good, I’m flagging this resolved ?? rock stars everyone! (I know nothing about IIS)

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Error after upgrade to 3.2’ is closed to new replies.