I go to the structure -> forums and at the top is

Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 279 of /home/skiedud1/public_html/mjolnirbloc/modules/taxonomy/taxonomy.admin.inc).
Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 403 of /home/user/public_html/mjolnirbloc/modules/taxonomy/taxonomy.admin.inc).
Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 405 of /home/user/public_html/mjolnirbloc/modules/taxonomy/taxonomy.admin.inc).

on line 279 is: $tree = taxonomy_get_tree($vocabulary->vid);
on line 403: $form['#empty_text'] = t('No terms available. Add term.', array('@link' => url('admin/structure/taxonomy/' . $vocabulary->machine_name . '/add')));
on line 405: if ($vocabulary->hierarchy < 2 && count($tree) > 1) {

In Taxonomy there are 0 vocabularies. Not sure if there are supposed to be some by default.

I've found this error with some patches on previous drupal versions and tried a couple of the patches but none of them worked.

Any suggestions?

Comments

skiedude’s picture

Issue summary: View changes

A bit more info - if I try to add a container or forum regardless of those errors I get:

Notice: Trying to get property of non-object in taxonomy_term_save() (line 626 of /home/user/public_html/mjolnirbloc/modules/tax.copy/taxonomy.module).
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7721 of /home/user/public_html/mjolnirbloc/includes/common.inc).

skiedude’s picture

After some tinkering around I dropped all the tables that had forum. Forum/forum_index/taxonomy_forum (something like that) and re-enabled the forum module and it fixed it self. Guess somehow all tables weren't installed correctly the first go around.

skiedude’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

shardesty’s picture

I was experiencing the same problem, but the fixes listed above and on similar threads weren't helping at all. Dropping tables, disabling, uninstalling, reinstalling - same errors regardless.

When I tried for about the fifth time, this time via drush, saw this error when I did drush en forum:

Do you really want to continue? (y/n): y
exception 'FieldException' with message 'Attempt to create field name class="placeholder">field_field_forums which already exists and is active.' in
/Users/Stephen/Documents/Sites/omnia/modules/field/field.crud.inc:85
Stack trace:
#0 /Users/Stephen/Documents/Sites/omnia/sites/all/modules/newsletter/newsletter.module(442):
field_create_field(Array)
#1 [internal function]: newsletter_taxonomy_vocabulary_insert(Object(stdClass))
#2 /Users/Stephen/Documents/Sites/omnia/includes/module.inc(957): call_user_func_array('newsletter_taxo...',
Array)
#3 /Users/Stephen/Documents/Sites/omnia/modules/taxonomy/taxonomy.module(449):
module_invoke_all('taxonomy_vocabu...', Object(stdClass))

When I disabled the newsletter module, then re-did all the forum disabling/uninstalling/table dropping, I was able to get forum to install successfully.

Was able to re-enable newsletter without issue as well.