Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.4k views
in Q2A Core by
edited by

What's this error?!

i'm done nothing exept change post content type from varchar to mediumtext.

what can i do to solve that?

my site

thank you very much

Q2A version: 1.7
by
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/shiasayc/public_html/ask/qa-include/qa-db.php on line 66
by
now 127.0.0.1
i think QA_MYSQL_HOSTNAME cause this error..in persian question2answer forum a guy told me to change that.i change to 127.0.0.1 and i think every thing ok.
is it true?
by
Correct. You should have that error using "localhost". Do you confirm that you were using localhost in your previous configuration ?
by
yes.i used localhost
Now,after change localhost to 127.0.0.1.i have very few error but still have:( (after change,error page hasn't image)
i'm confused.what cause this problem?
1.i move two weeks ago my config to home host directory and with php include the inside text to orginal config file in root directory.
i don't have any problem until yesterday but i think probebly now that i have more users,problem's happen
2.i use many tags for questions.(i will delete them today).maybe this cause that problem?
3.i change post content type varchar to mediumtext.maybe this cause that problem?
4.maybe hosting servise cause that problem?
thank you very much
---------------------
SORRY FOR MY VERY WEAK ENGLISH WRITING SKILL
by
i'm so confused.why i get more errors now?!
i get this new error in this page
http://shiasay.com/ask/16/%DA%86%D8%B1%D8%A7-%D8%A8%D8%A7%DB%8C%D8%AF-%D9%86%D9%85%D8%A7%D8%B2-%D8%A8%D8%AE%D9%88%D8%A7%D9%86%DB%8C%D9%85%D8%9F
the error  is:
Warning: Invalid argument supplied for foreach() in /home/shiasayc/public_html/ask/qa-include/qa-base.php(572) : eval()'d code on line 77
please help me solve my problem soon.my users will escape form my site:(((
thank you
by
The first thing you should do is not displaying errors or warnings on the UI, but just on the error log file.
Set in your php.ini these directives :
display_errors = Off
log_errors =On
error_reporting = E_ALL & ~E_DEPRECATED
by
About your specific warning, probably you're using the Q2A-Ultimate-SEO plugin.
In that case, check this pupi1985's answer :
http://www.question2answer.org/qa/42483/problem-in-q2a-it-shows-warning-see-description?show=42508#a42508
by
In case you've other issues, you should ask "new" questions
by
thank you very very much
the Q2A-Ultimate-SEO plugin cause that error.
where is php.ini?..i can't find that
by
yes.sorry.i think your plugin is ok.(but not reinstall it now)
i hide my comment.
sorry again
by
My comment is hidden, too. Thanks.

Please log in or register to answer this question.

...