Thread Tagging Improvements

Thread Tagging Improvements 1.0.7 Patch Level 6

No permission to download
After removing the addon:

Code:
Server error log:
 
Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: setupCollectWords). Skipping.
3 minutes ago src/XF/Job/Manager.php:246

Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: collectWordsCron). Skipping.
Today at 5:45 PM src/XF/Job/Manager.php:246

Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: a700750e6f92e8634b4600ac08cf1654). Skipping.
Today at 5:39 PM src/XF/Job/Manager.php:246
 
After removing the addon:

Code:
Server error log:
 
Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: setupCollectWords). Skipping.
3 minutes ago src/XF/Job/Manager.php:246

Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: collectWordsCron). Skipping.
Today at 5:45 PM src/XF/Job/Manager.php:246

Could not get runner for job MaZ\PotentialTagHelper:RebuildPotentialTagWords (unique: a700750e6f92e8634b4600ac08cf1654). Skipping.
Today at 5:39 PM src/XF/Job/Manager.php:246
Hmm, sounds like some jobs were scheduled to run after the add-on had been deleted...

Did this happen more than once, or just when uninstalling it? i.e. has this error triggered since then?
 
I must say this is an awesome plugin!

I'm running into a few little problems though.

1. On the "Potential Tags" screen /admin.php?tags/potential if I try to filter by a word or change the sorting order I get the following:

Screenshot from 2023-03-11 12-42-08.webp

2. On the "Explore words" screen /admin.php?tags/potential-explore, if I type in a word and then click "Go" I get the same:

Screenshot from 2023-03-11 12-42-08.webp

3. After I add a thread to the ignore list and then go to click on "(Excluding 1 ignored)"
Screenshot from 2023-03-11 12-45-40.webp

I can't see the ignored threads and I get the following error message:

Screenshot from 2023-03-11 12-47-24.webp
 
I must say this is an awesome plugin!

I'm running into a few little problems though.

1. On the "Potential Tags" screen /admin.php?tags/potential if I try to filter by a word or change the sorting order I get the following:

View attachment 282770

2. On the "Explore words" screen /admin.php?tags/potential-explore, if I type in a word and then click "Go" I get the same:

View attachment 282770

3. After I add a thread to the ignore list and then go to click on "(Excluding 1 ignored)"
View attachment 282771

I can't see the ignored threads and I get the following error message:

View attachment 282772
Hmm, that's a bit weird, need to look into what could be the reason for those..

Does anything show up in the server error logs when this happens? 🤔
 
i found that stop words are case sensitive (checked only on cyrillic)
any chance to make them insensitive ?
 
one more question
if I have a thread that fits to have both tags - should this thread be displayed as a potential tag for both (few) tags or not?
I have examples of topics that fit multiple tags, but only in one tag thread is displayed as a potential to tag
is this a bug or a feature? and is it possible to make a thread be displayed as a potential tag for all tags that are suitable for it at once?
 
When I do a search for potential tags, it sends me to a url like this https://tacoma3g.com/admin.php?//tacoma3g.com/admin.php?tags/potential&containing=victory&order=use_count&page=1
 
When I do a search for potential tags, it sends me to a url like this https://tacoma3g.com/admin.php?//tacoma3g.com/admin.php?tags/potential&containing=victory&order=use_count&page=1
Any ideas here? I appreciate your work and I'm excited to hopefully make use of this add-on.
 
Got this error during install:
XF\Db\Exception: MySQL statement prepare error [1052]: Column 'title' in where clause is ambiguous in src/XF/Db/AbstractStatement.php at line 230
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
  3. XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
  4. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
  5. XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1474
  6. XF\Mvc\Entity\Finder->fetchRaw() in src/XF/Mvc/Entity/Finder.php at line 1489
  7. XF\Mvc\Entity\Finder->fetchColumns() in src/addons/MaZ/PotentialTagHelper/Repository/PotentialTags.php at line 104
  8. MaZ\PotentialTagHelper\Repository\PotentialTags->collectThreadIdsForWord() in src/addons/MaZ/PotentialTagHelper/Repository/PotentialTags.php at line 79
  9. MaZ\PotentialTagHelper\Repository\PotentialTags->collectThreadIdsForTag() in src/addons/MaZ/PotentialTagHelper/Job/RebuildPotentialThreadTags.php at line 39
  10. MaZ\PotentialTagHelper\Job\RebuildPotentialThreadTags->rebuildById() in src/XF/Job/AbstractRebuildJob.php at line 42
  11. XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 260
  12. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 202
  13. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 118
  14. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 122
  15. XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 352
  16. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  17. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  18. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  19. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
  20. XF\App->run() in src/XF.php at line 524
  21. XF::runApp() in admin.php at line 13
 
XF\Db\Exception: MySQL query error [1406]: Data too long for column 'execute_data' at row 1 in src/XF/Db/AbstractStatement.php at line 230
 
XF\Db\Exception: MySQL query error [1406]: Data too long for column 'execute_data' at row 1 in src/XF/Db/AbstractStatement.php at line 230
Do you have the full trace? That one is quite generic place where the error happened so would be good to know the path that triggered it 😊👌
 
I'll need to check that one out..

Seems to be in conflict with XFA Tournaments addon?
Got this error in server log today. I haven't tried to install the tag addon since the initial error posted above, but seems like it is trying to run the complete job.

Server error log
  • XF\Db\Exception: Job MaZ\PotentialTagHelper:RebuildPotentialThreadTags: MySQL statement prepare error [1052]: Column 'title' in where clause is ambiguous
  • src/XF/Db/AbstractStatement.php:230
  • Generated by: Unknown account
  • May 1, 2023 at 5:20 PM

Stack trace​

SELECT xf_thread.thread_id, xf_thread.title
FROM xf_thread
LEFT JOIN xf_xfa_tourn_tournament AS xf_xfa_tourn_tournament_Tournament_1 ON (xf_xfa_tourn_tournament_Tournament_1.discussion_thread_id = xf_thread.thread_id)
WHERE (xf_thread.thread_id NOT IN (136)) AND (LOWER(title) LIKE '%mythic games%') AND (xf_thread.discussion_state = 'visible') AND (xf_thread.discussion_type != 'redirect')


------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL statement...', 1052, '23000')
#1 src/XF/Db/Mysqli/Statement.php(41): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1052, '23000')
#2 src/XF/Db/Mysqli/Statement.php(56): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Mvc/Entity/Finder.php(1474): XF\Db\AbstractAdapter->query('
SELECT `xf_...')
#5 src/XF/Mvc/Entity/Finder.php(1489): XF\Mvc\Entity\Finder->fetchRaw(Array)
#6 src/addons/MaZ/PotentialTagHelper/Repository/PotentialTags.php(104): XF\Mvc\Entity\Finder->fetchColumns('thread_id', 'title')
#7 src/addons/MaZ/PotentialTagHelper/Repository/PotentialTags.php(79): MaZ\PotentialTagHelper\Repository\PotentialTags->collectThreadIdsForWord('mythic games', Array)
#8 src/addons/MaZ/PotentialTagHelper/Job/RebuildPotentialThreadTags.php(39): MaZ\PotentialTagHelper\Repository\PotentialTags->collectThreadIdsForTag(Object(MaZ\PotentialTagHelper\XF\Entity\Tag), Array)
#9 src/XF/Job/AbstractRebuildJob.php(42): MaZ\PotentialTagHelper\Job\RebuildPotentialThreadTags->rebuildById(106)
#10 src/XF/Job/Manager.php(260): XF\Job\AbstractRebuildJob->run(8)
#11 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#12 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#13 job.php(43): XF\Job\Manager->runQueue(false, 8)
#14 {main}

Request state​

array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(73) "https://www.boardgamedungeon.net/threads/mythic-games-latest-blunder.136/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Top Bottom