Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
730 views
in Q2A Core by
edited by
Vote button (Ajax) did not work when I moved qa-config.php to the folder which I make my site more secure.

2 Answers

0 votes
by
edited by
I changed the following.
Step1: copy qa-config.php from ./installfolder to ../installfolder
Step2: edit ./qa-config.php >> require('../qa-config.php');

The cause was the Relative-Path... require must be Absolute-Path.

e.g.: require('/home/userroot/qa-config.php');

Because somebody does not commit the same mistake, I reported this.
0 votes
by
edited by
I noticed the problem with voting too, but it seems to be something different. On may site: http://zapytaj.co.pl when I try to vote on an question or answer I get error "Failed to connect to site". However vote is done - if we refresh page proper number of votes is shown. How to fix it ?
by
May be,  Your phenomenon is below question?
http://www.question2answer.org/qa/996/
...