[OzzModz] Badges

[OzzModz] Badges 2.3.1

No permission to download

Painbaker

Well-known member
InvalidArgumentException: Macro public:eek:zzmodz_badges_featured_badges_macros :: featured_badges() error: Container key 'ozzmodz_badges.tiers' was not found src/XF/Container.php:46 Generated by: Icywhisper Jul 18, 2022 at 7:13 PM
How often do you see this error? This usually happens during the process of updating or rebuilding an addon, when XF disables the add-on code event listeners.
 

Painbaker

Well-known member
I keep getting Notices on badges
Like every 15 mins 😱
Do you mean this error or badge award notifications?


If about "Container key 'ozzmodz_badges.tiers' was not found" error, re-upload addon files with replacement and rebuild the addon data.
 

Fullmental

Member
Just tried installing this for the first time on a test site, and we are running into the following issue when attempting to set up a new badge tier:


Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'color' in 'field list' in src/XF/Db/AbstractStatement.php at line 230

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1516
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1248
    XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 71
    XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 189
    XF\Mvc\FormAction->run() in src/addons/OzzModz/Badges/Admin/Controller/BadgeTiers.php at line 101
    OzzModz\Badges\Admin\Controller\BadgeTiers->actionSave() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2353
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in admin.php at line 13

It would seem there is a column missing in the database from the install? Re-installing the addon did not help, and no errors were displayed during the installation process.

Also, we are unable to find how a user is supposed to pick their featured badges. Where is this done?
 
Last edited:

erdembekci

New member
another error

Code:
ErrorException: Template error: [E_USER_WARNING] Method canTakeAwayBadge is not callable on the given object (SV\WarningImprovements\XF\Entity\User) src/XF/Template/Templater.php:1186
Generated by: Zazze89 Jul 20, 2022 at 5:54 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/interfan/...', 1186, Array)
#1 src/XF/Template/Templater.php(1186): trigger_error('Method canTakeA...', 512)
#2 internal_data/code_cache/templates/l5/s9/public/member_ban_edit.php(57): XF\Template\Templater->method(Object(SV\WarningImprovements\XF\Entity\User), 'canTakeAwayBadg...', Array)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_ban_edit', Array)
#5 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Member\\Ban\\E...', 'public:member_b...', Array)
#7 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('XF:Member\\Ban\\E...', 'public:member_b...', Array)
#8 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(226) "/forum/members/kroger.92816/ban?_xfRequestUri=%2Fforum%2Fthreads%2Fcalciomercato-edizione-gennaio-2020-topic-generale.2360377%2Fpage-902&_xfWithData=1&_xfToken=1658289248%2Ce3dbc08a76a6f78feda2cd3e8087982b&_xfResponseType=json"
  ["referrer"] => string(103) "https://interfans.org/forum/threads/calciomercato-edizione-gennaio-2020-topic-generale.2360377/page-902"
  ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(82) "/forum/threads/calciomercato-edizione-gennaio-2020-topic-generale.2360377/page-902"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1658289248,e3dbc08a76a6f78feda2cd3e8087982b"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
I am also getting the same error. This error occurs when the user is banned. Did they fix this problem?
 

Zakhiel

New member
Just tried installing this for the first time on a test site, and we are running into the following issue when attempting to set up a new badge tier:


Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'color' in 'field list' in src/XF/Db/AbstractStatement.php at line 230

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1516
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1248
    XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 71
    XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 189
    XF\Mvc\FormAction->run() in src/addons/OzzModz/Badges/Admin/Controller/BadgeTiers.php at line 101
    OzzModz\Badges\Admin\Controller\BadgeTiers->actionSave() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2353
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in admin.php at line 13

It would seem there is a column missing in the database from the install? Re-installing the addon did not help, and no errors were displayed during the installation process.

Also, we are unable to find how a user is supposed to pick their featured badges. Where is this done?

I also get the same error. Found any fix? @Fullmental @Painbaker @Ozzy47 ?
 

Dragonfruit

Well-known member
This plugin seems no longer supported
I had to remove it as I got many errors

Why would you say that? Painbaker been replying. They manage hundreds of plugins and do custom work as well. Just because they're not replying instantly doesn't mean it's no longer supported.
 

interforo

Active member
Why would you say that? Painbaker been replying. They manage hundreds of plugins and do custom work as well. Just because they're not replying instantly doesn't mean it's no longer supported.
My queries on june and july 2022 still have no answers.
I understand it's a free plugin, but when you get errors you would expect a faster support
 

Forsaken

Well-known member
My queries on june and july 2022 still have no answers.
I understand it's a free plugin, but when you get errors you would expect a faster support

So @Ozzy47 do we have a bug now since the users can’t choose which badges to feature on their profile postbit?
Tks

This may be a bug, but it's relatively minor.

I get this error

Code:
InvalidArgumentException: Macro public:ozzmodz_badges_featured_badges_macros :: featured_badges() error: Container key 'ozzmodz_badges.tiers' was not found src/XF/Container.php:46
Generated by: Icywhisper Jul 18, 2022 at 7:13 PM
Stack trace
#0 src/XF/App.php(2373): XF\Container->offsetGet('ozzmodz_badges....')
#1 src/XF/Template/Templater.php(1191): XF\App->get('ozzmodz_badges....')
#2 internal_data/code_cache/templates/l6/s9/public/ozzmodz_badges_featured_badges_macros.php(17): XF\Template\Templater->method(Object(XF\Pub\App), 'get', Array)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l6/s9/public/message_macros.php(53): XF\Template\Templater->callMacro('ozzmodz_badges_...', 'featured_badges', Array, Array)
#5 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l6/s9/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#7 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#9 internal_data/code_cache/templates/l6/s9/public/post_macros.php(152): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l6/s9/public/post_macros.php(184): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l6/s9/public/thread_view.php(811): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#17 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#23 src/XF.php(524): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}
Request state
array(4) {
  ["url"] => string(70) "/forum/threads/calciomercato-estivo-stagione-2022-23.2361962/page-6784"
  ["referrer"] => string(91) "https://interfans.org/forum/threads/calciomercato-estivo-stagione-2022-23.2361962/page-6783"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

This was answered here: https://xenforo.com/community/threads/ozzmodz-badges.196529/post-1584518

another error

Code:
ErrorException: Template error: [E_USER_WARNING] Method canTakeAwayBadge is not callable on the given object (SV\WarningImprovements\XF\Entity\User) src/XF/Template/Templater.php:1186
Generated by: Zazze89 Jul 20, 2022 at 5:54 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/interfan/...', 1186, Array)
#1 src/XF/Template/Templater.php(1186): trigger_error('Method canTakeA...', 512)
#2 internal_data/code_cache/templates/l5/s9/public/member_ban_edit.php(57): XF\Template\Templater->method(Object(SV\WarningImprovements\XF\Entity\User), 'canTakeAwayBadg...', Array)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_ban_edit', Array)
#5 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Member\\Ban\\E...', 'public:member_b...', Array)
#7 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('XF:Member\\Ban\\E...', 'public:member_b...', Array)
#8 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(226) "/forum/members/kroger.92816/ban?_xfRequestUri=%2Fforum%2Fthreads%2Fcalciomercato-edizione-gennaio-2020-topic-generale.2360377%2Fpage-902&_xfWithData=1&_xfToken=1658289248%2Ce3dbc08a76a6f78feda2cd3e8087982b&_xfResponseType=json"
  ["referrer"] => string(103) "https://interfans.org/forum/threads/calciomercato-edizione-gennaio-2020-topic-generale.2360377/page-902"
  ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(82) "/forum/threads/calciomercato-edizione-gennaio-2020-topic-generale.2360377/page-902"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1658289248,e3dbc08a76a6f78feda2cd3e8087982b"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

This was answered here: https://xenforo.com/community/threads/ozzmodz-badges.196529/post-1578784

You follow up asking if the add-on is abandoned usually 1-2 days later (think the longest was 9 days). Like have you even ever donated to support development? Have you ever offered to sponsored functionality? Where is this crazy entitlement of yours coming from :LOL:.
 

TFW

Active member
This plugin seems no longer supported
I had to remove it as I got many errors
Have you considered simply using the latest stable version? There are bugs and that's why the new version has 'beta' in its name. I don't even try to update the addon until the next stable update comes out.
 

Forsaken

Well-known member
We need premium version
The premium alternative is in a worse state, and never gets responses from the developer.

@Ozzy47 and @Painbaker both have a lot on their plate, so while frustrating, at least they are working to maintain many add-ons that many people need. It is why I requested confirmation on the license change, as originally this add-on was open source under the original dev, and then under @VersoBit.
 

Dragonfruit

Well-known member
The premium alternative is in a worse state, and never gets responses from the developer.

@Ozzy47 and @Painbaker both have a lot on their plate, so while frustrating, at least they are working to maintain many add-ons that many people need. It is why I requested confirmation on the license change, as originally this add-on was open source under the original dev, and then under @VersoBit.

Wait what? There's a premium version of this? Where? I don't see an option for it.
 

Agentos

Active member
The premium alternative is in a worse state, and never gets responses from the developer.

@Ozzy47 and @Painbaker both have a lot on their plate, so while frustrating, at least they are working to maintain many add-ons that many people need. It is why I requested confirmation on the license change, as originally this add-on was open source under the original dev, and then under @VersoBit.
I mean this add-on in the premium version
 
Top