What's new
[XB] Post Edit Approve

[XB] Post Edit Approve 2.0.2

You must log in or register to purchase ($0.00)

Painbaker

Administrator
Painbaker submitted a new resource:

[XB] Post Edit Approve - Moves edited posts into the moderation queue

Routes edited posts into the moderation queue, giving staff control over post changes before they become publicly visible.

Features​

  • 📝 Edited posts require approval: Automatically send edited posts to the approval queue.
  • 🔑 Bypass permission: Allow specific user groups to edit posts without triggering moderation.
  • đź”· First-post-only option: Send only the edited first post of a thread to the approval queue, without moderating the entire...

Read more about this resource...
 
Upon attempting to update from 2.0.0 to 2.0.1 - I am receiving the following error:

Prior to this upgrade attempt, I did not have any issues - so this is new to me. Any tips on how to approach this or how to troubleshoot the issue?

Code:
Stack trace
#0 src/XF/AddOn/DataType/TemplateModification.php(85): XF\Mvc\Entity\Entity->save(true, false)
#1 src/XF/Job/AddOnData.php(111): XF\AddOn\DataType\TemplateModification->importAddOnData('OzzModz/PostEdi...', Object(SimpleXMLElement), 0, 7.99336)
#2 src/XF/Job/AddOnInstallBatch.php(343): XF\Job\AddOnData->run(7.99336)
#3 src/XF/Job/AddOnInstallBatch.php(99): XF\Job\AddOnInstallBatch->stepData(Object(XF\Timer))
#4 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#5 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#7 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#8 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 admin.php(15): XF::runApp('XF\\Admin\\App')
#15 {main}



Request state
array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(56) "https://www.umbraroleplaying.com/admin.php?tools/run-job"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(93) "https://www.umbraroleplaying.com/admin.php?add-ons/install-from-archive-complete&batch_id=375"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(7) "4416799"
  }
}
 
Upon attempting to update from 2.0.0 to 2.0.1 - I am receiving the following error:

Prior to this upgrade attempt, I did not have any issues - so this is new to me. Any tips on how to approach this or how to troubleshoot the issue?

Code:
Stack trace
#0 src/XF/AddOn/DataType/TemplateModification.php(85): XF\Mvc\Entity\Entity->save(true, false)
#1 src/XF/Job/AddOnData.php(111): XF\AddOn\DataType\TemplateModification->importAddOnData('OzzModz/PostEdi...', Object(SimpleXMLElement), 0, 7.99336)
#2 src/XF/Job/AddOnInstallBatch.php(343): XF\Job\AddOnData->run(7.99336)
#3 src/XF/Job/AddOnInstallBatch.php(99): XF\Job\AddOnInstallBatch->stepData(Object(XF\Timer))
#4 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#5 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#7 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#8 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 admin.php(15): XF::runApp('XF\\Admin\\App')
#15 {main}



Request state
array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(56) "https://www.umbraroleplaying.com/admin.php?tools/run-job"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(93) "https://www.umbraroleplaying.com/admin.php?add-ons/install-from-archive-complete&batch_id=375"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(7) "4416799"
  }
}
please try the latest update
 
When I edit a post, it appears in the moderation queue, but I don't see the "reject" option; I only see "Accept," "Delete," or "Do nothing." Is this normal?
 
When I edit a post, it appears in the moderation queue, but I don't see the "reject" option; I only see "Accept," "Delete," or "Do nothing." Is this normal?
This add-on does not add new actions to the approval queue

Just adds an option that changes the behavior of deleting from the approval queue (which reverts the post to its previous version)
 
Just adds an option that changes the behavior of deleting from the approval queue (which reverts the post to its previous version)

I applied the delete option, but it didn't restore the post to its previous state; it deleted it and removed it from view. This is the set up I'm using:

1776568791269.webp
 
I applied the delete option, but it didn't restore the post to its previous state; it deleted it and removed it from view. This is the set up I'm using:

View attachment 4080
This post likely does not have a record of the last approved edit in its edit history (or the edit was made before the add-on was installed)

Anyway, I've added a separate button to roll back to the previous version to the approval queue
 
Back
Top