Notice: Undefined property: stdClass::$node_comment in advanced_forum_handler_field_node_topic_icon->render() (line 44 of /var/www/drupal/sites/all/modules/advanced_forum/includes/views/advanced_forum_handler_field_node_topic_icon.inc).

I updated Advanced Forum and now get the error shown above when the Unanswered Topics tab is selected (one occurrence for each qualifying topic apparently).

It may be that I didn't install it the right way -- I followed the instructions here: http://drupal.org/node/672472 as drupal wouldn't install the module from modules install; said it was already installed.

The available updates list shows that 7.x-2.x-dev (2011-May-04) is installed but notes that

Recommended version: 7.x-2.0-alpha1 (2011-Apr-04)

and

Development version: 7.x-2.x-dev (2011-May-08)

are available. I copied the files for the latter into place and ran update.php with the site in maintenance mode, however the date of the installed version didn't change.

Should I have done something different?

Now using:

Author Pane 7.x-2.x-dev (2011-Mar-11)
Views 7.x-3.x-dev (2011-May-08)
Chaos tool suite 7.x-1.x-dev (2011-May-06)
Wysiwyg 7.x-2.0

(otherwise vanilla drupal 7). Sorry, I had to guess what Component might be involved.

Comments

troky’s picture

uninstall advanced forum module, download latest 7.x-2.x-dev (2011-May-08) and replace/overwrite all files, install module again and clear cache twice.

... and report back

harmlessdrudge’s picture

I deactivated and uninstalled the module, then cleared the cache twice and tried to install the new one using a downloaded file. I get a message:

Advanced Forum is already installed.

This is wrong, of course. But why?? I went in with PhpMyAdmin and did

DELETE FROM system WHERE name = 'Advanced_Forum' AND type = 'module';

Next, trying again:

Error message Installation failed! See the log below for more information.
advanced_forum

Error installing / updating
File Transfer failed, reason: Cannot create directory /var/www/drupal/sites/all/modules/advanced_forum

Turns out that uninstalling left the original directory and all the files (it shouldn't in my view, or deleting them should be on the menu).

So.... on reinstallation the problem disappeared. Thanks!!

However: I was surprised and pleased not to lose any forum messages, although I'm still working on a test system. I thought uninstalling a module deleted the associated data; so what did I lose (and might I lose in future if I have to reinstall the module)?

michelle’s picture

AF doesn't store any data outside of settings. Your posts are nodes and comments handled in the normal means and your forums are taxonomy handled by the core forum module.

Michelle

troky’s picture

Status: Active » Fixed

I suppose we can close this then :)

harmlessdrudge’s picture

Well, you could! Indeed. Thanks.

I'm still wondering if I should expect to have use PhpMyAdmin to get rid of a module and then have to set permissions and ownership even after an install using drupal (yes, I'm completely new to drupal).

troky’s picture

I doubt. It must been something else messed up.

Status: Fixed » Closed (fixed)

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