Table "forum_subscriptions" does not exist

Table "forum_subscriptions" does not exist

by Manuri Perera -
Number of replies: 2

Hello,

I wrote a plugin and I created a table called forum_subscriptions for that plugin for some reason. Then I wanted to uninstall the plugin so I did it. Now when I log in from administrator or any other account and go to a course and try to view a forum, I get the error, "Table "forum_subscriptions" does not exist ".

Is this because I have overwritten an existing table which was already in Moodle database.? I thought Moodle does not allow doing that.

Does anyone have any idea about what could have happened?

Thank you.

Average of ratings: -
In reply to Manuri Perera

Re: Table "forum_subscriptions" does not exist

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear Manuri,

There is a table called 'forum_subscriptions' so maybe you did not spot the error of overwriting when the plugin installed and it worked with the attributes already there.

For a list of all core tables look in '/lib/db/install.xml'.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Table "forum_subscriptions" does not exist

by Manuri Perera -

Hello Gareth,

Thank you for the reply. Yeah I found out that there had been a table. I manually created the missing table. smile