I get this warning on the forum home page when the Advanced Forum module is enabled.

Warning: Illegal string offset 'vocabulary' in advanced_forum_forum_load() (line 168 of /home/xxxxxx/public_html/sites/all/modules/advanced_forum/includes/core-overrides.inc).

and line 168:
if ($allowed_value['vocabulary'] == $vocabulary->machine_name) {

I've searched for a solution for this going on a week and a half now. I'm somewhat of a drupal rookie but if anyone has any ideas or can point me in a direction I would appreciate it.

Thanks

Comments

dmh created an issue.

Michelle’s picture

If the forum is otherwise working, try making this change for now:

if (!empty($allowed_value['vocabulary']) && $allowed_value['vocabulary'] == $vocabulary->machine_name) {

That will get rid of the notice. I need to see if I can reproduce this locally. It's possible something has changed in the structure that is making this code not work anymore but I can't tell just from reading the code. Will leave this active and have a look when I have a bit of free time.

dmh’s picture

Hi Michelle,

Yes everything else seems to be working fine.

and that got rid of the warning message.

Thank you very much