Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
684 views
in Plugins by

I am using open login on my site and as I tested that (with Twitter) it showed a message.

A Question2Answer database query failed when generating this page.

A full description of the failure is available in the web server's error log file.

Then I checked the error log file and it showed me this. 

PHP Warning:  require(qa-include/qa-index.php): failed to open stream: No such file or directory in /home3/name/public_html/index.php on line 31
PHP Warning:  require(qa-include/qa-index.php): failed to open stream: No such file or directory in /home3/name/public_html/index.php on line 31
PHP Fatal error:  require(): Failed opening required 'qa-include/qa-index.php' (include_path='.:/opt/php54/lib/php') in /home3/name/public_html/index.php on line 31
 
Can someone tell me what the issue is exactly??
Q2A version: 1.6.

1 Answer

+1 vote
by
I think you've mixed things a little bit. First of all, if the error states "A Question2Answer database query failed when generating this page." then the logs would should the SQL query that failed. So what you're seeing in the log is unrelated to the message you've pasted on top. It is unclear in your question how this could be linked to the open login plugin too.

Regarding the error you've found in the log, it has been generated after trying to use a file and PHP failed to read the file. That error would not allow Q2A to be properly loaded and would only display the white screen with a generic error. If the error is recurrent, then, it is likely that the file is not there. If the error is not often in the logs, then it is considerably likely that your hosting service is responsible for it. Maybe they were performing maintenance tasks on the server or whatever they do on them.
by
edited by
Okh so now I have seen in SQL event log file, there I got to know that when a new user register, his email gets saved there. But using open login for twitter the user's email is not saving there. Maybe that is the problem. The log file exactly shows...

user number | username | null | u_register | email= | level = 0

There is no value in email.
by
To see what the first (red) error is you need to see the error log file from apache or whatever http server you're using. There you should see some text similar to the red one and a SQL query with the explanation why it failed (that is the key).

For your second error, again, if it is happening always then I'm pretty sure you don't have the file 'qa-include/qa-index.php' file. If it happens sporadically then it is very likely that it is a hosting issue.
...