Sitemap: Returns error if there are no evergreen pages

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
      

            Assignee:
            Kyriakos diamantis (Inactive)
            Reporter:
            Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: