Review: A non-numeric value encountered

Posted in: Newspaper
Post count: 45

For the longest time we have used Point reviews, and the team has used values such as “6/10”, “8/10” etc.
Newspaper never had an issue with it, as it only showed “6” and “8” in the review box, which is what we wanted.
You could say that adding “/10” was unnecessary on our part, but we always did it that way.

Exploring the debug log, I now see stuff like:

[30-Aug-2025 08:06:54 UTC] PHP Warning: A non-numeric value encountered in /home/s132845/domains/domain.com/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_review.php on line 149

My question is, how should we approach this? SQL Query through all the reviews and get rid of “/10”?

I think it would make more sense for the review box to have a validation phase where the text field only accepts numbers, perhaps.

Any input?

  • This topic was modified 11 months by SnakeEater.
Post count: 35449

Hi,
I think this is something related to the PHP version. If you have the possibility, please make a test, set PHP 7.4, and see if the situation persists, if no, then it is related to the new restrictions added in php versions 8+. I also informed our developers to check the code for td_review.php
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.