Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Q2A Core by
edited by

Hi Folks,

Anyone know or can help me get my site back up and running?


Message is;

"Warning: require(/var/chroot/home/content/28/7343428/html/qa-include/qa-install.php) [function.require]: failed to open stream: No such file or directory in /home/content/28/7343428/html/qa-include/qa-page.php on line 53

Fatal error: require() [function.require]: Failed opening required '/var/chroot/home/content/28/7343428/html/qa-include/qa-install.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/28/7343428/html/qa-include/qa-page.php on line 53"

This is a regular occurance.


make sure you have uploaded all q2a core files to your server properly
The site has been running fine until just a few hours ago. Suddenly it's displaying that message?
Now it's back again.... how odd... Any ideas anyone?

1 Answer

+1 vote
selected by
Best answer

As you can see the error says No such file or directory. The qa-page.php file is required almost in every request so if it wasn't there you wouldn't be able to see anything. Now, if you say this is a regular occurance it is weirder because files just are or are not there, there is nothing in the middle. So you should always see the error or never.

So the question you should tackle is actually why the file is sometimes not there to be read. One option would be that you wanted to upload that file (maybe to perform a Q2A upgrade or a core hack) and you first deleted it and then uploaded it, that way the file would have been missing until the upload finishes.

The most likely alternative, IMO, is that there is an issue with the hosting provider. That could be anything, a damaged memory slot, a bad sector on a disk, whatever. I don't think there is much you can do about this but complaining with them. You can explain to them nobody has modified that file and it happens to randomly dissappear (or at least to be unabled to be accessed). If they claim not to detect any issue you can always ask them to move your account to a different server (which will most likely result in a different path to your root (/home/content/28/7343428/).

PS: Based on your Now it's back again I would have to assume you didn't do anything to fix it and it got fixed. Which makes me believe it is more likely that the hosting provider is responsible for that.

Many thanks for such a detailed answer. I'm going to try switching hosting provider anyway, we'll see if that does it.

It's happened again today and I did add /qa-include/qa-install.php temporarily and this then removed the error message but just gave me a blank '200' page instead.

Am I right in thinking that qa-install.php deosn't need to be on my server and should be removed for security?

All the best,

You're right. It is not necessary. Regarding the removal of this file documentation states "If for some reason your MySQL database is lost or corrupted, this prevents normal users from being able to create a new database or repair tables". Note this only applies to qa-install.php and not qa-page.php
@pupi1985 I think you were correct. It was the hosting provider - Switched hosting companies and that seemed to fix things. You wrote: "The most likely alternative, IMO, is that there is an issue with the hosting provider. That could be anything, a damaged memory slot, a bad sector on a disk, whatever."