A site moderator deleted a duplicated user that had a post in the forum. The uid of the post had been set to 0 once the user was deleted and as anonymous users (uid=0) can't post the forum post was not showing up and we were getting errors as the post was in a feed:

Invalid argument supplied for foreach() in /home/e-smith/files/ibays/Primary/html/modules/taxonomy/taxonomy.module on line 1453.

In phpmyadmin I changed the uid to another user (a duplicate of the deleted user which is why the moderator deleted the user originally).

The post is now there and the error is gone but when you look at the forums you can't actually see the post.

Here is the post: http://www.openvpms.org/openvpms-release-11-available

And here is the forum: http://www.openvpms.org/category/forums/users/general

It should appear at the top of the list of posts in the forum. Why can't I see the post in the forum and how can I make it appear there?

Comments

rmyoung’s picture

The uid=0 was missing in the user table. Through phpmyadmin I added a user with uid=0 and left all the other entries default for that user and the post now appears as it should. Not sure why it was removed?