General developer forum

 
 
Picture of Manuri Perera
Table "forum_subscriptions" does not exist
 

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: -
Gareth J Barnard
Re: Table "forum_subscriptions" does not exist
Group DevelopersGroup Particularly helpful Moodlers

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

 
Average of ratings: -
Picture of Manuri Perera
Re: Table "forum_subscriptions" does not exist
 

Hello Gareth,

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

 
Average of ratings: -