Okay
  Public Ticket #1808026
Error Message
Open

Comments

  • Rodrigo started the conversation

    Hi, I'm seeing an error message in every review post I publish. It says

    Warning: A non-numeric value encountered in /home3/litonthe/public_html/litonthespot.com/wp-content/themes/techwise/functions/reviews.php on line 361

    How can I make it disappear? 

    Thanks for your attention.

  •  308
    Brian replied

    You need to make sure you're actually adding a review to the post when you publish it.

  • Rodrigo replied

    Hi, thanks for the quick reply!

    However, I didn't understand the solution.

    Here is one of my review pages with the error message: http://litonthespot.com/new-super-mario-bros-2-game-review/

    When editting the post I have already chosen "Review" in "Post Type".  Is that what you mean?

    Thanks for your attention.

  • Rodrigo replied

    Hi! I have just discovered that the Warning message goes away if I or someone else puts a user score. Is there a fix for that or I must always put a user score after publishing the review to make the message disappear? 

    Thanks for your attention.

  •  308
    Brian replied

    That's what I meant by "add a review" - I actually meant add at least one rating to it. Yes, that is necessary otherwise there will be a warning. But it shouldn't display the warning on the front-end, only in your error_log. If it is displaying to the user then you just need to turn off debugging.