I don’t have these lines in the file you mention…
Litespeed, is it a cache problem?
It’s strange because I don’t think this cache is activated…
https://ibb.co/Z2PvZNX
I did a search in the whole document, it does not appear.
@rezocom : The code is in the latest version 4.4.2, not 4.4.
I patched it for you:
1. Download this new version: https://nintechnet.com/share/ninjafirewall.zip
2. Go to WordPress “Plugins” page, click “Add New”, then “Upload Plugin” and upload it.
Does it fix the problem?
Litespeed is your PHP interpreter (LSAPI). If you’re on a shared hosting plan, I recommend that you contact your host and show them that error:
Fatal error: Uncaught Error: Undefined constant "MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT" in /home/xxxxxxxxxxxx/xxxxxxxxxxxx/wp-db.php:52
They could fix it.
@peterkrebs : Can you run the troubleshooter script:
https://nintechnet.com/share/wp-check.txt
Make sure you’re logged in to WP as an admin before running it.
Okay thanks, I have run the script as admin. Here are the results (real paths removed):
NinjaFirewall (WP edition) troubleshooter
HTTP server : Apache
PHP version : 7.2.34
PHP SAPI : FPM-FCGI
auto_prepend_file : none
wp-config.php : found in /.../wp-config.php
Yes, thank you very much, it seems to have solved the problem! 🙂
In any case the update could be done, and the site did not crash…
Is it likely to happen again, as long as the web host has not fixed this type of error ?
@nintechnet Regarding my error: I have informed our client that the error does not affect the login protection. They are currently fine with it.
I am on vacation the following two weeks, so any responses will be answered after that.
Thanks so far for the support!
@rezocom : I’ll make the same changes to the next version of NinjaFirewall so that it won’t throw a fatal error in any future version. But you should see the error message with your host, because if one day you install a theme or plugin that uses that constant, your site will crash again.
Ok thank you very much for your answer and for solving the problem…
I checked with the web host, he doesn’t seem to be very motivated in the matter…………….
He told me that it could be from the PHP version, and that it was a PHP error ………………….
So, here it is….. But I will know if the fatal error in question happens again, thanks.
You can close this topic if you want, if it’s also fixed on @peterkrebs side.
Thanks again.
For the record I had to use the solution you gave @rezocom to get Ninjafirewall to run in Full WAF Mode.
I’m running LITESPEED ~ 8.0.12
Screenshot of changes after Ninjascanner