Error Found – Line 507 in class-googlesitemapgeneratorstandardbuilder.php
-
In the build_taxonomies() function within class-googlesitemapgeneratorstandardbuilder.php on line 507 the
$offset
can be the string: “category” because it is assigned to it by$taxonomy
. But because “category” doesnt have a “-” and a numerical value to be parsed (for line 503)$offset
remains a string and so line 507 fails since u can’t decrement a non-numeric string.So, the line:
$offset = ( --$offset ) * $links_per_page;
becomes:$offset = (--"category") * $links_per_page;
This triggers the PHP error:
PHP Warning: non-numeric expression.
- The topic ‘Error Found – Line 507 in class-googlesitemapgeneratorstandardbuilder.php’ is closed to new replies.