![]()
![]()
Now That Ive got your attention:
- Added checks to avoid poll creation on forums where is not available poll thread type.
Is there an ability a thread gets auto moved with a prefix change once someone "approves" or "denies" a form submission?
Not by it's self, but with this free addon you can,
![]()
[OzzModz] Prefix Actions
This add-on adds the ability to open, close, stick, unstick or move threads automatically when any prefix is selected. If the original poster has permission to use a prefix, they can change the prefix at any time and the thread will be open...xenforo.com
Server error log
ErrorException: Template error: [E_WARNING] Undefined variable $conditionQuestions src/addons/Snog/Forms/Callbacks/Expected.php:63
Generated by: Lebowski 24.11.2021. at 12:14
Stack trace
#0 src/addons/Snog/Forms/Callbacks/Expected.php(63): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Und...', '/home/nginx/dom...', 63)
#1 src/XF/Template/Templater.php(1695): Snog\Forms\Callbacks\Expected::getExpected('', Array, Object(MaZ\AMP\XF\Template\XF22\Templater))
#2 internal_data/code_cache/templates/l1/s1/public/thread_view.php(1195): XF\Template\Templater->callback('Snog\\Forms\\Call...', 'getExpected', '', Array)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#5 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#6 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#8 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#12 src/XF.php(512): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(81) "/threads/kratki-slatkovodni-izvjestaji-sa-ribolova-2018-2021-godina.29718/page-16"
["referrer"] => string(56) "https://www.pijanitvor.com/whats-new/posts/465615/page-2"
["_GET"] => array(1) {
["/threads/kratki-slatkovodni-izvjestaji-sa-ribolova-2018-2021-godina_29718/page-16"] => string(0) ""
}
["_POST"] => array(0) {
}
}
InvalidArgumentException: Attempted to convert NULL to integer [prefix_id] in src/XF/Mvc/Entity/Entity.php at line 761
XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 639
XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 569
XF\Mvc\Entity\Entity->__set() in src/XF/Service/Thread/Creator.php at line 162
XF\Service\Thread\Creator->setPrefix() in src/addons/SV/MultiPrefix/XF/Service/Thread/Creator.php at line 20
SV\MultiPrefix\XF\Service\Thread\Creator->setPrefix() in src/addons/Snog/Forms/Pub/Controller/Form.php at line 1608
Snog\Forms\Pub\Controller\Form->createThread() in src/addons/Snog/Forms/Pub/Controller/Form.php at line 761
Snog\Forms\Pub\Controller\Form->actionSubmit() 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 2345
XF\App->run() in src/XF.php at line 512
XF::runApp() in index.php at line 20
Apologies. After testing multiple things I realized the issue was due to the lack of perms for a user to use that prefix. Although I did notice an issue with the "Publicly visible" option. Once you check it and save the form, it will work properly, although if you return to the same form, it will appear as not ticked, so you have to tick it once again, otherwise it won't work.Disable the multi Prefix addon and see what happens.
@Ozzy47Some error
Maybe becuse php 8.0.13?
Code:Server error log ErrorException: Template error: [E_WARNING] Undefined variable $conditionQuestions src/addons/Snog/Forms/Callbacks/Expected.php:63 Generated by: Lebowski 24.11.2021. at 12:14 Stack trace #0 src/addons/Snog/Forms/Callbacks/Expected.php(63): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Und...', '/home/nginx/dom...', 63) #1 src/XF/Template/Templater.php(1695): Snog\Forms\Callbacks\Expected::getExpected('', Array, Object(MaZ\AMP\XF\Template\XF22\Templater)) #2 internal_data/code_cache/templates/l1/s1/public/thread_view.php(1195): XF\Template\Templater->callback('Snog\\Forms\\Call...', 'getExpected', '', Array) #3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet)) #4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL) #5 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array) #6 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render() #7 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array) #8 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #9 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #10 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html') #11 src/XF/App.php(2345): XF\Mvc\Dispatcher->run() #12 src/XF.php(512): XF\App->run() #13 index.php(20): XF::runApp('XF\\Pub\\App') #14 {main} Request state array(4) { ["url"] => string(81) "/threads/kratki-slatkovodni-izvjestaji-sa-ribolova-2018-2021-godina.29718/page-16" ["referrer"] => string(56) "https://www.pijanitvor.com/whats-new/posts/465615/page-2" ["_GET"] => array(1) { ["/threads/kratki-slatkovodni-izvjestaji-sa-ribolova-2018-2021-godina_29718/page-16"] => string(0) "" } ["_POST"] => array(0) { } }
![]()
![]()
Now That Ive got your attention:
This is a beta release, take a full backup before installing on a production site. Optimally try it out on a test site that is a replication of your live site before installing on the live site. It has had limited testing.
- Refactor: Render report message for...
Any news?I’ll look into is as soon as I can.
Are you running beta 12?Any news?
Every day I get 50+ server errors in ACP.
Thanks
Nop. Still on stable v2.1.2Are you running beta 12?
We use essential cookies to make this site work, and optional cookies to enhance your experience.