WikiPost

WikiPost [Paid] 1.0.2

No permission to buy ($40.00)

electrogypsy

Well-known member
@JulianD Unfortunately I've run across some errors after installing this addon:

Code:
    ErrorException: Fatal Error: Access level to SV\UserEssentials\XF\Pub\Controller\Thread::finalizeThreadReply() must be public (as in class Laneros\WikiPost\XF\Pub\Controller\Thread) src/addons/SV/UserEssentials/XF/Pub/Controller/Thread.php:0

    Generated by: Unknown account Aug 19, 2020 at 4:43 PM

Stack trace

#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/seattle-wa.1095/post-41758"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/seattle-wa_1095/post-41758"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

and

Code:
    ErrorException: Template error: Method canWatchWikiPost is not callable on the given object (SV\ModeratorEssentials\XF\Entity\Thread) src/XF/Template/Templater.php:994

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canWatch...', '/home/nginx/dom...', 994, Array)
#1 src/XF/Template/Templater.php(994): trigger_error('Method canWatch...', 512)
#2 internal_data/code_cache/templates/l3/s117/public/wikipost_wikitools_menu.php(53): XF\Template\Templater->method(Object(SV\ModeratorEssentials\XF\Entity\Thread), 'canWatchWikiPos...', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
# 4 src / XF / Template / Templater.php (1388): XF \ Template \ Templater-> renderTemplate ('wikipost_wikito ...', Array)
#5 internal_data/code_cache/templates/l3/s117/public/thread_view.php(506): XF\Template\Templater->includeTemplate('public:wikipost...', Array)
#6 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Code:
    InvalidArgumentException: Accessed unknown getter 'WikiPostApprovalQueue' on XF:Post[210522] src/XF/Mvc/Entity/Entity.php:194

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get('WikiPostApprova...')
#1 internal_data/code_cache/templates/l3/s117/public/thread_view.php(323): XF\Mvc\Entity\Entity->offsetGet('WikiPostApprova...')
#2 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#4 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#5 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#6 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Code:
    InvalidArgumentException: Accessed unknown getter 'wikipost' on XF:Thread[28955] src/XF/Mvc/Entity/Entity.php:194 

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM 

Stack trace 

#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get('wikipost') 
#1 internal_data/code_cache/templates/l3/s117/public/thread_view.php(323): XF\Mvc\Entity\Entity->offsetGet('wikipost') 
#2 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array) 
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array) 
#4 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render() 
#5 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array) 
#6 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) 
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) 
#8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html') 
#9 src/XF/App.php(2190): XF\Mvc\Dispatcher->run() 
#10 src/XF.php(391): XF\App->run() 
#11 index.php(20): XF::runApp('XF\\Pub\\App') 
#12 {main} 

Request state 

array(4) { 
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/" 
  ["referrer"] => bool(false) 
  ["_GET"] => array(1) { 
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) "" 
  } 
  ["_POST"] => array(0) { 
  } 
}

those are the main errors, about 20,000 in the past 24 hours. seems to be a conflict between your addon and @Xon's Moderator Essentials and User Essentials addons. I've had to disable the wiki addon for now but let me know if you need an admin login to test with.
 

JulianD

Well-known member
@JulianD Unfortunately I've run across some errors after installing this addon:

Code:
    ErrorException: Fatal Error: Access level to SV\UserEssentials\XF\Pub\Controller\Thread::finalizeThreadReply() must be public (as in class Laneros\WikiPost\XF\Pub\Controller\Thread) src/addons/SV/UserEssentials/XF/Pub/Controller/Thread.php:0

    Generated by: Unknown account Aug 19, 2020 at 4:43 PM

Stack trace

#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/seattle-wa.1095/post-41758"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/seattle-wa_1095/post-41758"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

and

Code:
    ErrorException: Template error: Method canWatchWikiPost is not callable on the given object (SV\ModeratorEssentials\XF\Entity\Thread) src/XF/Template/Templater.php:994

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canWatch...', '/home/nginx/dom...', 994, Array)
#1 src/XF/Template/Templater.php(994): trigger_error('Method canWatch...', 512)
#2 internal_data/code_cache/templates/l3/s117/public/wikipost_wikitools_menu.php(53): XF\Template\Templater->method(Object(SV\ModeratorEssentials\XF\Entity\Thread), 'canWatchWikiPos...', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
# 4 src / XF / Template / Templater.php (1388): XF \ Template \ Templater-> renderTemplate ('wikipost_wikito ...', Array)
#5 internal_data/code_cache/templates/l3/s117/public/thread_view.php(506): XF\Template\Templater->includeTemplate('public:wikipost...', Array)
#6 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Code:
    InvalidArgumentException: Accessed unknown getter 'WikiPostApprovalQueue' on XF:Post[210522] src/XF/Mvc/Entity/Entity.php:194

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get('WikiPostApprova...')
#1 internal_data/code_cache/templates/l3/s117/public/thread_view.php(323): XF\Mvc\Entity\Entity->offsetGet('WikiPostApprova...')
#2 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#4 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#5 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#6 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Code:
    InvalidArgumentException: Accessed unknown getter 'wikipost' on XF:Thread[28955] src/XF/Mvc/Entity/Entity.php:194

    Generated by: Unknown account Aug 20, 2020 at 7:10 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get('wikipost')
#1 internal_data/code_cache/templates/l3/s117/public/thread_view.php(323): XF\Mvc\Entity\Entity->offsetGet('wikipost')
#2 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#4 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#5 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#6 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(35) "/threads/throw-tent-and-tarp.28955/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/throw-tent-and-tarp_28955/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

those are the main errors, about 20,000 in the past 24 hours. seems to be a conflict between your addon and @Xon's Moderator Essentials and User Essentials addons. I've had to disable the wiki addon for now but let me know if you need an admin login to test with.
Thank you very much for reporting it to me. I have fixed the problem and the bugfix will be included in the next release.
 
  • Like
Reactions: arn

JulianD

Well-known member
Suggestion: Override default wiki post history date to retain all edits (or for a longer duration) than set in the ACP.

:)
There is an option to disable the history pruning although it applies site wide:

 

JulianD

Well-known member
If I am to understand this correctly, it's just for the posts that are wikis, right?
No, it applies to the entire edit history regardless if it's a WikiPost or not. I decided to do it this way because it is better to protect WikiPosts that are disabled temporarily.
 

frm

Well-known member
No, it applies to the entire edit history regardless if it's a WikiPost or not. I decided to do it this way because it is better to protect WikiPosts that are disabled temporarily.
I would suggest making it do it to wikis and disabled wikis at this point then. The pruning could take up a lot of room...
 

JulianD

Well-known member
I would suggest making it do it to wikis and disabled wikis at this point then. The pruning could take up a lot of room...
I will consider it for a future version. Thanks for the invaluable feedback!
 
  • Like
Reactions: frm
Top