Advertisement:

Author Topic: A non-numeric value encountered  (Read 1443 times)

Offline inter

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • interlab on GitHub
A non-numeric value encountered
« on: February 15, 2018, 02:49:44 AM »
php 7.1
smf 2.015
Url: http://.../index.php?action=recent;start=%1$d
Error: A non-numeric value encountered
File: /.../Sources/Recent.php
Line: 229
Sorry for my English

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,911
  • Gender: Male
    • i30 Owners Club
Re: A non-numeric value encountered
« Reply #1 on: February 15, 2018, 02:50:58 AM »
Was this from a Tapatalk user/IP or a 66.249.* Google bot by any chance?

Offline inter

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • interlab on GitHub
Re: A non-numeric value encountered
« Reply #2 on: February 15, 2018, 02:52:55 AM »
Was this from a Tapatalk user/IP or a 66.249.* Google bot by any chance?
http://whois.arin.net/rest/ip/66.249.64.77
Sorry for my English

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,911
  • Gender: Male
    • i30 Owners Club
Re: A non-numeric value encountered
« Reply #3 on: February 15, 2018, 03:06:21 AM »
Have you recently upgraded your PHP from < 7.1?

From 7.1 upwards these non-numeric errors are tracked more vigorously and reported more often. I find the GoogleBots and Tapatalk members cause 99% of the errors you reported. Just ignore them (there's not much you can do anyway!)

Quote
New E_WARNING and E_NOTICE errors have been introduced when invalid strings are coerced using operators expecting numbers or their assignment equivalents. An E_NOTICE is emitted when the string begins with a numeric value but contains trailing non-numeric characters, and an E_WARNING is emitted when the string does not contain a numeric value.

https://stackoverflow.com/questions/42044127/warning-a-non-numeric-value-encountered

http://php.net/manual/en/migration71.other-changes.php

Offline inter

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • interlab on GitHub
Re: A non-numeric value encountered
« Reply #4 on: February 15, 2018, 03:19:58 AM »
I reported an error, whether it will be corrected by the developers of the forum - this is already a question for them, not for me.
Sorry for my English