Sudden missing table error for a table that was never there

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Sudden missing table error for a table that was never there

Post by htmanning »

I have a forum that all of a sudden returned an error that the table "phpbb_words" was not found. "phpbb_" is the wrong prefix for this forum and that table was never there. My first thought was someone compromised the files so I renamed the entire forum folder, and restored from a backup from a time when the forum was working. I got the same error. I looked at a backup of the database and phpbb_words was never in the database. I created a table called phpbb_words, and the forum works.

My question is in what file does phpbb point to the table for badwords? I know that in a previous version of phpbb I was able to share one badwords table for 3 forums, but I can't remember where that is.

If anyone has any other ideas I could use them. If I delete this table, the forum breaks.

Thanks.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Sudden missing table error for a table that was never there

Post by david63 »

Is it from an extension or a MOD?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Re: Sudden missing table error for a table that was never there

Post by htmanning »

No extensions or mods and the forum was working perfectly without changes. I have not made any changes and this error occurred suddenly. We cannot find any corrupt tables in the database either. This is very strange. I also have 2 other forums working on the same files with the same setup and they are fine. I'm wondering if someone tried to upload something weird or if someone actually hacked us. The security team at the server company found nothing though.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Sudden missing table error for a table that was never there

Post by david63 »

Do a file search for that table to see where it is referenced
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Re: Sudden missing table error for a table that was never there

Post by htmanning »

I did. The only place it shows up is in a file called schema.json with the following:

"phpbb_words": {
"COLUMNS": {
"word_id": [
"ULINT",
null,
"auto_increment"
],
"word": [
"VCHAR_UNI",
""
],
"replacement": [
"VCHAR_UNI",
""
]
},
"PRIMARY_KEY": "word_id"
},
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Sudden missing table error for a table that was never there

Post by 3Di »

htmanning wrote: Mon Sep 13, 2021 9:12 pm "phpbb_" is the wrong prefix for this forum
What's the prefix?

That table is for censor words and should be there, you can rebuild it
change myprefix_words with your prefix + words

Code: Select all

DROP TABLE IF EXISTS `phpbb_words`;

CREATE TABLE IF NOT EXISTS `myprefix_words` (
  `word_id` int UNSIGNED NOT NULL AUTO_INCREMENT,
  `word` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `replacement` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`word_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Re: Sudden missing table error for a table that was never there

Post by htmanning »

The prefix is phpbb3_platform_

phpbb_ is an old prefix from a previous version of the forum, but we did not reinstall on top of the old one. We created an entire new install and changed the database to a completely different server. Interestingly, I just deleted the phpbb_words table that I created in the database. The site still works.

My only thought is maybe an old cache file or something was copied on the server the by something the server host did, even though they swear they didn't. I didn't do anything to the site. This is very perplexing.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Sudden missing table error for a table that was never there

Post by 3Di »

Do you have a phpbb3_platform_words table there?
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Re: Sudden missing table error for a table that was never there

Post by htmanning »

Yes. It's there.
htmanning
Registered User
Posts: 106
Joined: Sun Jan 26, 2003 2:51 am

Re: Sudden missing table error for a table that was never there

Post by htmanning »

This problem has happened again on a different forum. The fix was to create the phpbb_words table in the database, load the site successfully, then delete the table. This is very bizarre. The hosting company could find no intrusion to the server so something else is going on. The last post in the forum happened about 4 weeks prior to receiving the error so I don't think a post caused it. I see no recent registrations. The only activity is Bing and Google bots.
Post Reply

Return to “[3.2.x] Support Forum”