AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] How to remove empty tag

4 Posts
3 Users
0 Reactions
2,523 Views
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@jasonjase)
New Member
Joined: 7 years ago
[#8373]

I'm testing my forum and with a test user I created a topic to see if everything worked. Then I deleted the user and all its content but the topic tag still shows up. When I click on it, I can't find any topic with that tag. How can I remove this? I deleted all forum caches, updated topic, forum and user statistics but the empty tag is still there. Any help is appreciated 🙂 


3 Replies
Sofy
Posts: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 years ago

Hi @jasonjase,

Have you deleted all caches before checking? 

If not, please navigate to Dashboard > Forums > Dashboard admin page, click on [Delete all caches] button. If you use some other cache plugins delete those plugins caches as well and check again. 


1 Reply
(@jasonjase)
Joined: 7 years ago

New Member
Posts: 2
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Yes, I deleted all forum caches and all caches in my browser. I've also tried to delete the forum but it was still there.


Robert
Posts: 10736
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

Use some SQL executing tool. Some plugin or the phpMyAdmin of your Hosting cPanel and execute this SQL query. Don't forget backup the wp_wpforo_tags table. And change the wp_ prefix with your database table prefix:

DELETE FROM `wp_wpforo_tags`
WHERE NOT EXISTS (
SELECT `wp_wpforo_topics`.`topicid`
FROM `wp_wpforo_topics`
WHERE `wp_wpforo_topics`.`tags` IN( `wp_wpforo_tags`.`tag` )
)

Share: