-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP8 Support #75
Comments
Hi. I just reinstalled my old server to upgrade it, and now i see that loganalyzer does not support php 8. Anybody knows if there is any advance on this? Thanks! |
I just commented out the content of the RemoveMagicQuotes() function in the /var/www/loganalyzer/include/functions_common.php file. It uses the get_magic_quotes_gpc() function, which was removed in PHP 8, since 7.4 it always returns false, so it is okay to just comment it. |
Eraserstp, your solution works to me! Now i can use loganalyzer with php8. |
i commented the RemoveMagicQuotes() Function but got a new error. any help would be appreciated. Fatal error: Uncaught Error: Call to a member function LogStreamFactory() on null in /var/www/html/loganalyzer/index.php:228 Stack trace: #0 {main} thrown in /var/www/html/loganalyzer/index.php on line 228 |
sooo i re-did the whole Server and now i am getting this error. any help would be much appreciated please. Fatal error: Uncaught mysqli_sql_exception: Unknown column 'processid' in 'field list' in /var/www/html/loganalyzer/classes/logstreamdb.class.php:1682 Stack trace: #0 /var/www/html/loganalyzer/classes/logstreamdb.class.php(1682): mysqli_query() #1 /var/www/html/loganalyzer/classes/logstreamdb.class.php(1624): LogStreamDB->CreateMainSQLQuery() #2 /var/www/html/loganalyzer/classes/logstreamdb.class.php(545): LogStreamDB->ReadNextRecordsFromDB() #3 /var/www/html/loganalyzer/index.php(270): LogStreamDB->ReadNext() #4 {main} thrown in /var/www/html/loganalyzer/classes/logstreamdb.class.php on line 1682 |
There are database fields missing, usually loganalyzer should create missing fields on the fly.
|
With regards to "Fatal error: Uncaught mysqli_sql_exception: Unknown column 'processid' in 'field list'", it appeared as a 500 error in the browser. After lots of troubleshooting and testing, I found that config wizard created the table, and the first 24 columns, but the table did not have columns for Checksum or processid. I have no idea why. The table create script that alorbach provide puked for me with an error (and yes I even dropped the table and tried it). Along the way I tried several other things. I eventually discovered if ran this, it would fix it:
dcc |
addition: |
Check loganalyzer for php8 support and fix compatibility issues.
The text was updated successfully, but these errors were encountered: