Quantcast
Channel: WordPress.org Forums » [XML Sitemap & Google News] Support
Viewing all articles
Browse latest Browse all 54

A non-numeric value encountered

$
0
0

Replies: 3

Hello,
After the update to version 5.5.2 I got over 2000 lines of errors in error_log (already has 3MB of data).

PHP Warning: A non-numeric value encountered in public_html/wp-content/plugins/xml-sitemap-feed/inc/functions-sitemap.php on line 528

These are the lines for the if function. Line 528 is the one with $priority

    // Reduce by age.
    // NOTE : home/blog page gets same treatment as sticky post, i.e. no reduction by age.
    if ( \xmlsf()->timespan > 0 && ! \is_sticky( $post->ID ) && ! \in_array( $post->ID, namespace\get_blogpages(), true ) ) {
        $priority -= $priority * ( \xmlsf()->lastmodified - $post_modified ) / \xmlsf()->timespan;
    }

I have found another error message:

PHP Warning: A non-numeric value encountered in /home/ionica/public_html/wp-content/plugins/xml-sitemap-feed/inc/class-sitemap-plugin.php on line 164

This is the line: \xmlsf()->timespan = \xmlsf()->lastmodified – \get_date_from_gmt( get_firstpostdate( ‘GMT’, $feed[2] ), DATE_W3C );

  • This topic was modified 19 hours, 45 minutes ago by i0n1ca.
  • This topic was modified 19 hours, 44 minutes ago by i0n1ca.

Viewing all articles
Browse latest Browse all 54

Trending Articles