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

Directory listing allowed! index.html required!

also direct access to files(on qa-include), making errors:

Notice: Use of undefined constant QA_INCLUDE_DIR - assumed 'QA_INCLUDE_DIR' in C:\WWW\index\question2answer\qa-include\qa-ajax-click-admin.php on line 27

Warning: require_once(QA_INCLUDE_DIRqa-app-admin.php) [function.require-once]: failed to open stream: No such file or directory in C:\WWW\index\question2answer\qa-include\qa-ajax-click-admin.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'QA_INCLUDE_DIRqa-app-admin.php' (include_path='.;C:\php5\pear') in C:\WWW\index\question2answer\qa-include\qa-ajax-click-admin.php on line 27

Q2A version: 1.5.2

1 Answer

0 votes
by
edited by

Directory listing is nothing to do with Q2A, that's a problem with your server. You can add the line Options -Indexes in your .htaccess to prevent that (or preferably in the server's http.conf if you are able to). IMO you shouldn't clog up all the directories with blank index.html files (especially since anyone can download Q2A and know what the files are anyway).

You are right about those errors though - that file should be checking that QA_VERSION is defined, just like the other files in qa-include do.

...