• Resolved romanivanov

    (@romanivanov)


    I’m getting alot of records in error_log. They normally appearing

    [Mon Mar 16 14:17:59.426594 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:17:59.473111 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:17:59.512565 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:17:59.553885 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:01.584220 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:01.631255 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:01.673741 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:01.721313 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:03.575312 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:03.621723 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:03.662495 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:03.703199 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:06.848597 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:06.889511 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:06.936452 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:06.975174 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:51.148686 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:51.196306 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:51.244461 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:51.289413 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276
    [Mon Mar 16 14:18:51.339280 2020] [php7:warn] [pid 3136] [client 66.249.76.73:0] PHP Warning: A non-numeric value encountered in /home/c/consultorg/consulter.org/wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 276

    line 276:
    $interval = (strtotime(“now”) – $cache_timestamp)/60/60/24;

    ip-address is google’s crawler: https://www.infobyip.com/ip-66.249.76.73.html

    Can you please fix this? Maybe add a condition before trying to divide non-numeric?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm on 276 the only thing that _could_ (but _should_ not) be non-numeric is $cache_timestamp, so on line 274 try changing;

    if (array_key_exists('captions_timestamp',$yt_resp_array)) {

    into

    if ( array_key_exists( 'captions_timestamp', $yt_resp_array ) && is_int( $yt_resp_array["captions_timestamp"] ) ) {

    let me know if that fixes the problem, I’ll be happy to add this fix to the next version.

    frank

    Thread Starter romanivanov

    (@romanivanov)

    This fixes the problem.
    FYI, I traced
    error_log ( $yt_resp_array["captions_timestamp"] )
    value, it was an empty string.

    Thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Great, pushed to the development version on Github, will end up in the next LYTE version when that comes out.

    Thanks for the help!
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warnings in error log’ is closed to new replies.