[MMO] Post Edit Reason

[MMO] Post Edit Reason 2.3.0

No permission to download
Hey, it looks like XenForo has a feature for this. Is this add-on now part of core or am I missing something?
 
XF only sends the reason for an edit to the post author, it does not display it in or under the post.

1646935087798.webp
 
Ah I thought it was the same. Now I see I can download v2.1.1 there too.

Thanks!
 
Last edited:
Unfortunately I get an error with this add-on and XF 2.3.12 😟

Error: Class "MMO\PostEditReason\XF\Service\Post\XFCP_Editor" not found in src/addons/MMO/PostEditReason/XF/Service/Post/EditorService.php at line 5

include() in src/vendor/composer/ClassLoader.php at line 576
Composer\Autoload\{closure}() in src/vendor/composer/ClassLoader.php at line 427
Composer\Autoload\ClassLoader->loadClass()
spl_autoload_call() in src/XF.php at line 410
XF::createAliasForClass()
class_exists() in src/XF/Extension.php at line 213
XF\Extension->extendClass() in src/XF/App.php at line 3389
XF\App->extendClass() in src/XF/App.php at line 1964
XF\App->XF\{closure}() in src/XF/Container.php at line 250
XF\Container->create() in src/XF/App.php at line 3554
XF\App->service() in src/XF/Mvc/Controller.php at line 890
XF\Mvc\Controller->service() in src/XF/Pub/Controller/PostController.php at line 73
XF\Pub\Controller\PostController->setupPostEdit() in src/addons/OzzModz/ArticleCoverImage/XF/Pub/Controller/Post.php at line 10
OzzModz\ArticleCoverImage\XF\Pub\Controller\Post->setupPostEdit() in src/addons/TickTackk/ChangeContentOwner/XF/Pub/Controller/Post.php at line 51
TickTackk\ChangeContentOwner\XF\Pub\Controller\Post->setupPostEdit() in src/addons/SV/Threadmarks/XF/Pub/Controller/Post.php at line 42
SV\Threadmarks\XF\Pub\Controller\Post->setupPostEdit() in src/addons/MMO/PostEditReason/XF/Pub/Controller/PostController.php at line 16
MMO\PostEditReason\XF\Pub\Controller\PostController->setupPostEdit() in src/XF/Pub/Controller/PostController.php at line 154
XF\Pub\Controller\PostController->actionEdit() in src/addons/Snog/Movies/XF/Pub/Controller/Post.php at line 21
Snog\Movies\XF\Pub\Controller\Post->actionEdit() in src/addons/TickTackk/ChangeContentOwner/XF/Pub/Controller/Post.php at line 66
TickTackk\ChangeContentOwner\XF\Pub\Controller\Post->actionEdit() in src/addons/TickTackk/SignatureOnce/XF/Pub/Controller/Post.php at line 53
TickTackk\SignatureOnce\XF\Pub\Controller\Post->actionEdit() in src/addons/SV/AlertImprovements/XF/Pub/Controller/Post.php at line 24
SV\AlertImprovements\XF\Pub\Controller\Post->actionEdit() in src/XF/Mvc/Dispatcher.php at line 364
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 266
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 2830
XF\App->run() in src/XF.php at line 850
XF::runApp() in index.php at line 23
 
Yep, I can confim, not working with 2.3.12 at the moment, throwing that exact same error.
Also posted it on the MMO support forum the 29th. But it's holiday time so I disabled it for the time being.
 
Hello,

This issue has been fix by performing next changes:
  • open file src/addons/MMO/PostEditReason/XF/Service/Post/EditorService.php
  • Change class EditorService extends XFCP_Editor to class EditorService extends XFCP_EditorService
You can also perform this change directly from the shell
Code:
sed -i 's/extends XFCP_Editor\b/extends XFCP_EditorService/' src/addons/MMO/PostEditReason/XF/Service/Post/EditorService.php

Don't forget to rebuild with command: php cmd.php xf:rebuild-master-data

It should then work wothout error.
 
Don't forget to rebuild with command: php cmd.php xf:rebuild-master-data
I did this, but I now still get the notice this notice:
src/addons/MMO/PostEditReason/XF/Service/Post/EditorService.php Unexpected contents
which is logical because I editted it, but there is a way to fix this too, I just don't remember how.
 
Back
Top Bottom