Tag Essentials - with AI auto tagging and XFRM support

Tag Essentials - with AI auto tagging and XFRM support [Paid] 2.6.8

No permission to buy (£35.00)
And occasionally I get this:

Server error log
  • TypeError: XF\Util\Str::strtolower(): Argument #1 ($string) must be of type string, array given, called in /home/.../public_html/src/XF/Repository/TagRepository.php on line 31
  • src/XF/Util/Str.php:250
  • Generated by: Unknown account
  • 29. Oct 2024 at 05:53

Stack trace​

#0 src/XF/Repository/TagRepository.php(31): XF\Util\Str::strtolower(Array)
#1 src/XF/Repository/TagRepository.php(222): XF\Repository\TagRepository->normalizeTag(Array)
#2 src/addons/AVForums/TagEssentials/XF/Service/Tag/Changer.php(52): XF\Repository\TagRepository->getTags(Array, Array)
#3 src/addons/AVForums/TagEssentials/XF/Service/Thread/Creator.php(120): AVForums\TagEssentials\XF\Service\Tag\Changer->_addTags(Array)
#4 src/XF/Service/Thread/CreatorService.php(485): AVForums\TagEssentials\XF\Service\Thread\Creator->finalSetup()
#5 src/XF/Service/ValidateAndSavableTrait.php(19): XF\Service\Thread\CreatorService->_validate()
#6 src/XF/Service/Feed/FeederService.php(132): XF\Service\Thread\CreatorService->validate(NULL)
#7 src/XF.php(907): XF\Service\Feed\FeederService->XF\Service\Feed\{closure}()
#8 src/XF/Service/Feed/FeederService.php(129): XF::asVisitor(Object(Andrew\ModeratorPanel\XF\Entity\User), Object(Closure))
#9 src/XF/Service/Feed/FeederService.php(121): XF\Service\Feed\FeederService->importEntry(Array)
#10 src/XF/Job/Feeder.php(44): XF\Service\Feed\FeederService->importEntries()
#11 src/XF/Job/Manager.php(275): XF\Job\Feeder->run(8)
#12 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#13 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8)
#14 job.php(46): XF\Job\Manager->runQueue(false, 8)
#15 {main}
 
And occasionally I get this:

Server error log
  • TypeError: XF\Util\Str::strtolower(): Argument #1 ($string) must be of type string, array given, called in /home/.../public_html/src/XF/Repository/TagRepository.php on line 31
  • src/XF/Util/Str.php:250
  • Generated by: Unknown account
  • 29. Oct 2024 at 05:53

Stack trace​

#0 src/XF/Repository/TagRepository.php(31): XF\Util\Str::strtolower(Array)
#1 src/XF/Repository/TagRepository.php(222): XF\Repository\TagRepository->normalizeTag(Array)
#2 src/addons/AVForums/TagEssentials/XF/Service/Tag/Changer.php(52): XF\Repository\TagRepository->getTags(Array, Array)
#3 src/addons/AVForums/TagEssentials/XF/Service/Thread/Creator.php(120): AVForums\TagEssentials\XF\Service\Tag\Changer->_addTags(Array)
#4 src/XF/Service/Thread/CreatorService.php(485): AVForums\TagEssentials\XF\Service\Thread\Creator->finalSetup()
#5 src/XF/Service/ValidateAndSavableTrait.php(19): XF\Service\Thread\CreatorService->_validate()
#6 src/XF/Service/Feed/FeederService.php(132): XF\Service\Thread\CreatorService->validate(NULL)
#7 src/XF.php(907): XF\Service\Feed\FeederService->XF\Service\Feed\{closure}()
#8 src/XF/Service/Feed/FeederService.php(129): XF::asVisitor(Object(Andrew\ModeratorPanel\XF\Entity\User), Object(Closure))
#9 src/XF/Service/Feed/FeederService.php(121): XF\Service\Feed\FeederService->importEntry(Array)
#10 src/XF/Job/Feeder.php(44): XF\Service\Feed\FeederService->importEntries()
#11 src/XF/Job/Manager.php(275): XF\Job\Feeder->run(8)
#12 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#13 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8)
#14 job.php(46): XF\Job\Manager->runQueue(false, 8)
#15 {main}
What versions of XF and Tag Essentials?
And knowing what tag is causing the error would be a big help.
 
Last edited:
Another error with the same content I've posted before.

These are the tags in that thread:
SCR-20241104-rpey.webp

Nothing special, but the thread went to the approval queue. That could be the culprit.
 
Found a possible issue with editor not loading in XFRM when this addon is enabled.

XF 2.3.4
TAG 2.6.2

With addon enabled:
1730813314772.webp

As soon as disabled:

1730813407164.webp
 
I can confirm a problem in the Resource Manager if this add-on is enabled.

The prefixes and editor are not loading:

SCR-20241106-snfx.webp


If you edit a resource that is already published, then the editor will work. If you want to publish a new resource, I get what is shown in the above image.


This is in the browser console:

SCR-20241106-siqc.webp
 
Owkee, i'm testing this addon on our development environment and i have some small questions.
1st of all: Xenforo version: v2.2.16 / E-tagversion: 2.5.7
  1. The use of synonyms: Is there a way to use only the "upper version"? For example: Tag "light" has as synonym "lights". If in a topic title someone uses "lights" i want the tag "light" to be added, not "lights" Not sure if that's possible.
  2. In the tagcloud --> Same issue: Can i only show Tags without the synonyms?
  3. If i only use the tag "light" --> Should it be added to tags of a forumtopic if i use the word "lights" in the title? It isn't added if i try that :).
  4. I have a list of 2000 tags or so... I don't want to let users create new tags so i disabled that for normal users... If they start a new topic, they get an errormessage that they can't add new tags... If this is not possible, i have to check every hour if there are new tags added, and blacklist those who aren't needed on my forum? Correct?
Maybe this is all "standard stuff", but i'm looking to this already for some hours :p, maybe you guys can help me quicker :).

btw: nice plugin, i just need some tuning for my puposes ;)
 
The use of synonyms: Is there a way to use only the "upper version"? For example: Tag "light" has as synonym "lights". If in a topic title someone uses "lights" i want the tag "light" to be added, not "lights" Not sure if that's possible.

Ok so what you have identified is that base form of a word (your example - light) and plural variants ( your example - lights) are all stored and there is no method of limiting tags to the base version. I agree with you that only the base version should be used but I don't want to have to set the plural version up as a synonym because that would create hundreds of thousands of synonyms.
I have already done some testing with ChatGPT on this. I plan to alter Tag Essentials to only allow base words as tags (an admin option). This will mean processing all new tags and replacing any non-base versions with base versions including processing all existing tags in a batch run. How exactly I'll do this is undecided as my priority at the moment is to get AVForums to 2.3. But it's definitely something I want to do.

In the tagcloud --> Same issue: Can i only show Tags without the synonyms?

At the moment, no, the cloud shows all tags. If the above is implemented, then the cloud would only show base tags because there would only be base tags.

If i only use the tag "light" --> Should it be added to tags of a forumtopic if i use the word "lights" in the title? It isn't added if i try that

If someone enters a tag lights and it's a synonym of light, then Tag Essentials will use light. But synonyms are intended more for consolidating tags, for example, like 4K and UHD (which people will use, of course) to a single canonical tag 4K UHD.
With my planned system, all tags that people enter will be processed by Tag Essentials using ChatGPT to save the base word as a tag.

I have a list of 2000 tags or so... I don't want to let users create new tags so i disabled that for normal users... If they start a new topic, they get an errormessage that they can't add new tags... If this is not possible, i have to check every hour if there are new tags added, and blacklist those who aren't needed on my forum? Correct?

If users are not allowed to enter new tags then they shouldn't be hit with an interrupting error message. I'll ask the coder about this.
 
Stuart Wright updated Tag Essentials - with AI auto tagging and XFRM support with a new update entry:

Bug fixes


Read the rest of this update entry...
 
Back
Top Bottom