
Originally Posted by
Nick1973
Still got issues with the sitemap page:
[24-Jan-2020 10:18:43 UTC] PHP Fatal error: Cannot redeclare class zen_SiteMapTree in /home/MYSITE/public_html/includes/classes/site_map.php on line 19
[24-Jan-2020 10:18:43 UTC] Request URI: /index.php?main_page=site_map, IP address: 00.00.000.000
--> PHP Fatal error: Cannot redeclare class zen_SiteMapTree in /home/MYSITE/public_html/includes/classes/site_map.php on line 19.
Tried replacing includes/classes/site_map.php with the original from a fresh download and I am still getting the same error
Interesting:
On line 20 of includes/classes/site_map.php we have this:
PHP Code:
class zen_SiteMapTree { var $root_category_id = 0, $max_level = 0, $data = array(), $root_start_string = '', $root_end_string = '', $parent_start_string = '', $parent_end_string = '', $parent_group_start_string = "\n<ul>", $parent_group_end_string = "</ul>\n", $child_start_string = '<li>', $child_end_string = "</li>\n", $spacer_string = '', $spacer_multiplier = 1;
If I change
PHP Code:
var $root_category_id = 0,
to
PHP Code:
var $root_category_id = -0,
the sitemap displays correctly
Bookmarks