Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Users on my Q&A website are unable to post anything, why?

+2 votes
88 views
asked Sep 14, 2016 in Q2A Core by HansRaj
Whenever a user tries to post a question or an answer he gets the following error:

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.

And when I checked my server's error log, I saw this

[14-Sep-2016 04:17:44 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php54/root/usr/lib64/php/modules/mcrypt.so' - /opt/cpanel/ea-php54/root/usr/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

I have no idea how to solve this problem, prior to this everything was fine.
Q2A version: 1.7.4

1 Answer

+1 vote
answered Sep 15, 2016 by ProThoughts
You need to install mcrypt extension on your server. are you using shared hosting or dedicated server.

If you are using Ubuntu server then use below command to install mcrypt

> sudo apt-get install mcrypt php5-mcrypt
> sudo php5enmod mcrypt
> sudo service apache2 restart
...