• Resolved stanxxx

    (@stanxxx)


    Suddenly wordfence put the site down. I removed it from extensions, all is working. And strangely, when I enabled it again, … all is working too!

    Apache log shows hundreds of such lines (with or without referer). Any suggestion to avoid such problem?

    Thank you!

    [Wed Jan 24 02:31:49.143177 2024] [proxy_fcgi:error] [pid 3314:tid 140652957226752] [client x.x.x.x:37462] AH01071: Got error ‘PHP message: PHP Warning: A non-numeric value encountered in /home/XXX/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 446PHP message: PHP Warning: A non-numeric value encountered in /home/XXX/public_html/wp-content/plugins/wordfence/waf/pomo/streams.php on line 68’, referer: https://www.google.com/

    Almalinux8 on a dedicated box, apache php-fpm mariadb

    • This topic was modified 10 months ago by stanxxx.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @stanxxx, thanks for highlighting this.

    Both of the lines in the error messages use ini_get( 'mbstring.func_overload' ). If you didn’t change this config value before/after deactivating and reactivating Wordfence, it’s likely to be an issue in PHP itself.

    If our code isn’t getting the value returned from ini_get(), we’d recommend checking if pm.max_requests in the PHP-FPM pool config is set to a high number, or 0 (which is unlimited). A lower number like 100 or 200 can help recover from errors in PHP itself.

    Thanks,
    Peter.

    Thread Starter stanxxx

    (@stanxxx)

    Thank you for replying! pm.max_requests is set to default (0).

    Before turning OFF Wordfence we restarted php-fpm, and at the first connection on the site, the error came back. So it is probably not a question of capacity. Site displays about 100.000 pages by day, all going normally… until this error this morning.

    I looked around, this error seems to be frequent with wordfence, but seems nothing can fix it really… Of course we can ignore it …until it crashes the site, but it isn’t the correct way ??

    Plugin Support wfpeter

    (@wfpeter)

    Hi @stanxxx,

    I may have been unclear in my reply, I think it’s worth trying 100 or 200 as the value (rather than higher or unlimited) to see if the previous value preventing recovery from errors.

    Let me know if that prevents the issue from appearing, or if you see it more frequently/about the same.

    Thanks again,
    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence suddenly putting site down’ is closed to new replies.