[TaylorJ] Probations

[TaylorJ] Probations 1.0.0 Beta 3

No permission to download

Taylor J

Well-known member
Taylor J submitted a new resource:

[TaylorJ] Probations - Place users on probation with a read only experience

[TaylorJ] Probations​

Description​

This addon will allow you to place users on a read only leave from your site, as if they were banned but still have the ability to read posts and visit the site.

Sometimes a full on ban isn't what is needed and a user just needs to be quiet for a few hours/days. Idea taken from SomethingAwful.

Options​

[TaylorJ] Probations - Options​

...

Read more about this resource...
 
Awesome idea. Thank you for making this.

Couple things I noticed: /probation page is returning 404.
Can you add the probation link to the moderator menu?
 
Hi, i get this error: XF\Db\Exception: MySQL statement prepare error [1146]: Table '**********.xf_taylorj_user_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
 
Wow! What an excellent idea. There have been a lot of times when this would have been more appropriate than a ban.
 
Hi, i get this error: XF\Db\Exception: MySQL statement prepare error [1146]: Table '**********.xf_taylorj_user_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
What action did you take when this error happened?

I'm about to put out Beta 2 and it removes that table and some others and consolidates them into one so that should fix any issues you were having to be fair.
 
Taylor J updated [TaylorJ] Probations with a new update entry:

1.0.0 Beta 2

  • Added a view for the probations route (functions like the reports pages)
  • Added a link to the probations page in the staff bar in the moderator drop down
  • Changed the canViewProbation permission to the moderator permission set for the addon
  • Cron entry now runs every minute to handle cases of a person being put on probation at any time that was after the beginning of an hour but before the next new hour
  • Removed the xf_taylorj_user_probations_active table and consolidated...

Read the rest of this update entry...
 
What action did you take when this error happened?

I'm about to put out Beta 2 and it removes that table and some others and consolidates them into one so that should fix any issues you were having to be fair.
I was getting this error when I clicked the "Place on probation" button and penalized the user. I installed the latest update, and unfortunately, I'm still getting the same error.


Code:
XF\Db\Exception: MySQL statement prepare error [1146]: Table '****censored.xf_taylorj_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1417
XF\Mvc\Entity\Finder->fetchOne() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 46
TaylorJ\Probations\Service\Probations\Create->createProbation() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 31
TaylorJ\Probations\Service\Probations\Create->__construct() in src/XF/Container.php at line 275
XF\Container->createObject() in src/XF/App.php at line 1968
XF\App->XF\{closure}() in src/XF/Container.php at line 233
XF\Container->create() in src/XF/App.php at line 3550
XF\App->service() in src/XF/Mvc/Controller.php at line 874
XF\Mvc\Controller->service() in src/addons/TaylorJ/Probations/ControllerPlugin/AbstractPlugin.php at line 66
TaylorJ\Probations\ControllerPlugin\AbstractPlugin->__call() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 27
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->setupProbationCreate() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 68
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->actionProbation() in src/addons/TaylorJ/Probations/XF/Pub/Controller/PostController.php at line 23
TaylorJ\Probations\XF\Pub\Controller\PostController->actionProbation() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
 
I was getting this error when I clicked the "Place on probation" button and penalized the user. I installed the latest update, and unfortunately, I'm still getting the same error.


Code:
XF\Db\Exception: MySQL statement prepare error [1146]: Table '****censored.xf_taylorj_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1417
XF\Mvc\Entity\Finder->fetchOne() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 46
TaylorJ\Probations\Service\Probations\Create->createProbation() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 31
TaylorJ\Probations\Service\Probations\Create->__construct() in src/XF/Container.php at line 275
XF\Container->createObject() in src/XF/App.php at line 1968
XF\App->XF\{closure}() in src/XF/Container.php at line 233
XF\Container->create() in src/XF/App.php at line 3550
XF\App->service() in src/XF/Mvc/Controller.php at line 874
XF\Mvc\Controller->service() in src/addons/TaylorJ/Probations/ControllerPlugin/AbstractPlugin.php at line 66
TaylorJ\Probations\ControllerPlugin\AbstractPlugin->__call() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 27
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->setupProbationCreate() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 68
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->actionProbation() in src/addons/TaylorJ/Probations/XF/Pub/Controller/PostController.php at line 23
TaylorJ\Probations\XF\Pub\Controller\PostController->actionProbation() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
Your db table wasn't created for some reason. Will have a hotfix out for you tonight.
 
Back
Top Bottom