View Single Post
Old 03-14-2023, 05:43 PM   #1902
jajaX
Junior Member
jajaX began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2022
Device: samsung galaxy Z fold 2 5G
Quote:
Originally Posted by mariosipad View Post
@jajaX

I just found out there is an error in the post #1890 I made.

Below you'll find the correction in red.

How:
1 - open file ../cops/vendor/seblucas/dot-php/doT.php
2 - change line 94
Code:
return @create_function ('$it', $func);
3 - to
Code:
return @function ($it) use ($func) {
        return eval($func);
        };
I did it like this:
Code:
        // For PHP 8 replace this line 
        //return create_function ('$it', $func);
        // with
        return function ($it) use ($func) {
        return eval($func);
        };
        // end replace
Now it should work.
Hi,

ok, thank you véry much.

I must upgrade my "server" computer to 22.04 tomorrow. I try that after !!
jajaX is offline   Reply With Quote