- Issue created by @Devendra Mishra
- 🇩🇪Germany yan
Similar here when I try to open Taxonomy Manager:
ParseError: syntax error, unexpected ',', expecting ']' in menu_execute_active_handler() (Zeile 1382 von /sites/all/modules/contrib/taxonomy_manager/taxonomy_manager.admin.inc).
Version: 7.x-1.2
- First commit to issue fork.
- Assigned to shalini_jha
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 7:47am 25 September 2023 - 🇮🇳India shalini_jha
Hi @Devendra Mishra
I can not able to reproduce this issue, as the taxonomy manager is working fine for me.
I am using Drupal core 7.80 , Module Version: 7.x-1.2 - 🇮🇳India muniraj.m Chennai
Hi @yan, this error might be due to the usage of older PHP version. For example, if you are using PHP 5.6 then it will throw this error. Use the latest compatible PHP version.
- 🇩🇪Germany yan
Thanks muniraj.m. I'm using PHP 7.0.33 in this case. I'll try to update to a newer version.
- 🇷🇺Russia Andrew Answer Novosibirsk
Problem is here (taxonomy_manager.admin.inc, line 1382):
[, , $bundle] = entity_extract_ids('taxonomy_term', $entity);
It is not supported in PHP 7.0.x.
You should rewrite it as
$ar = entity_extract_ids('taxonomy_term', $entity); $bundle = $ar[2];
- 🇩🇪Germany yan
Thanks @andrew-answer, that work-around does solve it for now. I imagine that there is no intention to maintain downwards compatibility to PHP 7.0, so probably we'll just leave it at that (and update to a higher PHP version).