Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-2191

Sitemap: Returns error if there are no evergreen pages

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 1.18.0
    • None
    • 1
    • Sprint #40

      On handbook, where there are no evergreen pages, the sitemap returns the following fatal error:

       PHP Fatal error: Uncaught TypeError: Return value of P4_Sitemap::get_evergreen_pages() must be of the type array, null returned in /var/www/html/public/wp-content/themes/planet4-master-theme/classes/class-p4-sitemap.php:117
      

            kdiamant Kyriakos diamantis
            kkokkoro Konstantinos Kokkorogiannis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: