Topic on Extension talk:TimedMediaHandler

Summary by Kghbln

Make sure that the required database tables are being created.

Ponkabonk (talkcontribs)

Hello. I am really new to TMH to please forgive me if these questions are too basic. I've installed the extension and can play the uploaded file when looking at the recent files list. But, when I click on the file name, I am taken to a page with this message: "A database query error has occurred. This may indicate a bug in the software." I see others with a similar problem and the solution was to restart the server. But, I'm on a shared server so a restart isn't possible. Does anyone have a different suggestion or could possibly point me in the right direction?

I also get the error message when I go to Special Pages/TimedMediaHandler.

Kghbln (talkcontribs)

You need to run "update.php" after installing this extension. Otherwise the required database tables are not being created which in turn results in what you are currently experiencing.

Ponkabonk (talkcontribs)

OK. I turned on verbose SQL error reporting and found that I'm missing at least one DB table. Where can I find a DB schema for TMH? Is there a .sql file available I can run to manually create the necessary tables?

Ponkabonk (talkcontribs)

I did that. Didn't work. I found a file called TimedMediaHandler.sql which gave me the SQL required to manually create the table. Seems to be working now.

Kghbln (talkcontribs)

Usually running the script should indeed create the tables. Dunno why it was not working for you. However, glad that you managed to manually create the tables.