User Agents don’t look wrong, but you should remove “/” from Silk.
Plugin Support
qtwrk
(@qtwrk)
Hi,
please try this
create a php file , name it like test.php
fill it with code :
<?php preg_match( '#Mobile#', null );
then access it by browser,with URI like https://yourdomai.com/test.php
does it produce any error on the page ? or in the PHP error log ?
Best regards,
Thread Starter
JRMora
(@jrmora)
Hello, @qtwrk
Thanks for your help
When I access /test.php I don’t get any errors in the browser.
But now I find that my error_log is 1,5Gb and I can’t open it (I have to investigate this, I don’t know if I can delete/regenerate it).
Apparently everything works fine, the agent list error message only appears in the Litespeed admin.
-
This reply was modified 4 years, 3 months ago by
JRMora.
-
This reply was modified 4 years, 3 months ago by
JRMora.
@jrmora
To make a huge logfile smaller to open it, you can use “HJSplit”. A free application to split large files in smaller one.
http://www.hjsplit.org/solusi-untuk-ukuran-file-yang-besar/
or use Notepad++, a free but state of the art application as an alternative to Windows Notepad.
https://notepad-plus-plus.org/
Or the best application especially for huge logfiles:
https://www.mommos-software.com/index.php
Plugin Support
qtwrk
(@qtwrk)
delete or rename current error_log file , then re-try the test.php file.
Thread Starter
JRMora
(@jrmora)
Done @qtwrk
Now have this in the error_log (no error in browser)
[11-Mar-2022 15:28:17 Europe/Madrid] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in public_html/staging/test.php on line 1
-
This reply was modified 4 years, 3 months ago by
JRMora.
Confirmed and reproduced. It happens only on PHP v8.1+.
This is fixed in v4.6-a6. You can try via Toolbox: https://github.com/litespeedtech/lscache_wp/commit/3caf1e5c53a9d1f4f044ac4e089cf7eaa967271c
Thanks for the feedback.
Thread Starter
JRMora
(@jrmora)
Hi, @hailite
That’s right, fixed. Tested v4.6-a6 on stagin with PHP 8.1.1
Thank you very much.
-
This reply was modified 4 years, 3 months ago by
JRMora.