• Resolved Litalino

    (@macken)


    PHP Fatal error:  Uncaught TypeError: Unsupported operand types: int * string in /home/domain/public_html/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php:516
    
    0 /home/domain/public_html/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php(44): GoogleSitemapGeneratorStandardBuilder->build_taxonomies()
    
    1 /home/domain/public_html/wp-includes/class-wp-hook.php(308): GoogleSitemapGeneratorStandardBuilder->content()
    
    2 /home/domain/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    3 /home/domain/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    4 /home/domain/public_html/wp-content/plugins/google-sitemap-generator/sitemap-core.php(1965): do_action()
    
    5 /home/domain/public_html/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorloader.php(387): GoogleSitemapGenerator->show_sitemap()
    
    6 /home/domain/public_html/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorloader.php(250): GoogleSitemapGeneratorLoader::call_show_sitemap()
    
    7 /home/domain/public_html/wp-includes/class-wp-hook.php(306): GoogleSitemapGeneratorLoader::do_template_redirect()
    
    8 /home/domain/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    9 /home/domain/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    10 /home/domain/public_html/wp-includes/template-loader.php(13): do_action()
    
    11 /home/domain/public_html/wp-blog-header.php(19): require_once('…')
    
    12 /home/domain/public_html/index.php(19): require('…')
    
    13 {main}
    
    thrown in /home/domain/public_html/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php on line 516
    • This topic was modified 1 year, 10 months ago by Litalino.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @macken thanks for providing the information. We will put this into our backlog and fix it in the upcoming version. In the meantime, can you please ensure you have given a positive number in the pagination textbox?

    FWIW I get this error when the plugin encounters taxonomy names containing a hyphen. Specifically event-venue and event-category generated by the Event Organiser plugin.

    More details here.

    As an attempt to work round the problem, I’ve updated settings:

    • Deselected ‘Include taxonomy pages for Venues’ and ‘Include taxonomy pages for Categories’ under ‘Custom taxonomies’ – but I suspect that will have no effect.
    • Updated ‘Links per page’ to 500 – I’m more hopeful

    Unfortunately neither work-around fixed the problem.

    For the time being I’ve added some code before the offending section to replace “event-” with “event<>” and, after the offending section to replace “event<>” with “event-“. But that’s obviously not a generic solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught Type: class-googlesitemapgeneratorstandardbuilder.php’ is closed to new replies.