#5176 - Sitemap: $child_row[$cma_info['category_is_string']] is NULL when the category is a string

  • By
  • Added
  • 32 views
Identifier #5176
Issue type Minor issue (breaks specific functionality)
Title Sitemap: $child_row[$cma_info['category_is_string']] is NULL when the category is a string
Status Open
Handling member Chris Graham
Addon General / Uncategorised
Description When trying to use the menu block, I get this error:

PHP NOTICE [8] type strictness error (_zval_get_string_func) in sources/sitemap.php on line 1210 (version: 11 alpha1, PHP version: 7.3.8-dev, URL: http://localhost/composr/data/preview.php?page=home&type=step2&keep_devtest=1&keep_fatalistic=2&keep_devtest=1&keep_fatalistic=2&utheme=admin)

It seems around that line is the presence of $child_row[$cma_info['category_is_string']], which $cma_info['category_is_string'] is NULL, and I'm questioning if that should even be part of the array index.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated