• Resolved alx359

    (@alx359)


    Today noticed getting the debug.log slowly filled with this block of entries:

    PHP Warning: fopen(https://www.quic.cloud/ips): failed to open stream: Connection timed out in /wp-content/plugins/pareto-security/pareto_functions.php on line 2525
    PHP Warning:  stream_set_blocking() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2526
    PHP Warning:  fread() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2527
    PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2528

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author te_taipo

    (@te_taipo)

    Thanks again, yes I can see the follow on effects of the server not being able to reach quic.cloud. The next update will address this.

    Thread Starter alx359

    (@alx359)

    The issue seems to have become quite more severe. It’s trashing my live droplet right now, with 100% memory utilization of php7.4-fpm-sp (CPU is ok with just 2.2%), while quickly filling the debug.log with these:

    [21-Nov-2021 10:44:03 UTC] PHP Warning:  fopen(https://www.quic.cloud/ips): failed to open stream: HTTP request failed! in /wp-content/plugins/pareto-security/pareto_functions.php on line 2525
    [21-Nov-2021 10:44:03 UTC] PHP Warning:  stream_set_blocking() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2526
    [21-Nov-2021 10:44:03 UTC] PHP Warning:  fread() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2527
    [21-Nov-2021 10:44:03 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /wp-content/plugins/pareto-security/pareto_functions.php on line 2528

    Had to disable PS altogether to workaround the issue: /wp-content/plugins/~pareto-security.

    That’s obviously sub-optimal. Please advise.

    Plugin Author te_taipo

    (@te_taipo)

    I have updated Pareto Security over at Github https://github.com/Taipo/pareto_security to version 2.9.7.1 which is a test version. It likely has the fixes in it for the connection issues to quic cloud which are causing those error logs.
    If you want, try that version and if that fixes the errors let me know and I will send it live as version 2.9.8

    Thread Starter alx359

    (@alx359)

    I’ve uploaded 2.9.7.1 via ftp and the PHP Warnings and memory leak issues seem resolved atm for me, with no immediately apparent side-effects. Thank you!

    Plugin Author te_taipo

    (@te_taipo)

    Great news.

    I just uploaded a new version of pareto_functions.php to Github with another fix concerning writing logs to logfiles. I recommend you update that file again. I will also release an official update in the next day or so.

    • This reply was modified 3 years ago by te_taipo.
    Thread Starter alx359

    (@alx359)

    Updated with the newest pareto_functions.php file from Github, and at glance it seems to continue working well so far. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘fclose() expects parameter 1 to be resource’ is closed to new replies.