[Liam W.] Post Macros

Add-on [Liam W.] Post Macros 5.3.0 Fix 3

No permission to download
Hello CRUEL-MODZ,

Been getting this error since updating xenforo to 2.2.13

Code:
[LIST]
[*]Error: Call to a member function getRedirection() on bool
[*]src/addons/LiamW/PostMacros/XF/Pub/Controller/Thread.php:31
[*]Generated by: 
[*]May 22, 2023 at 9:32 PM
[/LIST]

[HEADING=2]Stack trace[/HEADING]

#0 src/addons/SV/UserEssentials/XF/Pub/Controller/Thread.php(51): LiamW\PostMacros\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#1 src/addons/SV/Threadmarks/XF/Pub/Controller/Thread.php(330): SV\UserEssentials\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#2 src/XF/Pub/Controller/Thread.php(711): SV\Threadmarks\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#3 src/XF/Pub/Controller/Thread.php(364): XF\Pub\Controller\Thread->getNewPostsSinceDateReply(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 1684805523)
#4 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionNewPosts(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'NewPosts', Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
 
Hello CRUEL-MODZ,

Been getting this error since updating xenforo to 2.2.13

Code:
[LIST]
[*]Error: Call to a member function getRedirection() on bool
[*]src/addons/LiamW/PostMacros/XF/Pub/Controller/Thread.php:31
[*]Generated by:
[*]May 22, 2023 at 9:32 PM
[/LIST]

[HEADING=2]Stack trace[/HEADING]

#0 src/addons/SV/UserEssentials/XF/Pub/Controller/Thread.php(51): LiamW\PostMacros\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#1 src/addons/SV/Threadmarks/XF/Pub/Controller/Thread.php(330): SV\UserEssentials\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#2 src/XF/Pub/Controller/Thread.php(711): SV\Threadmarks\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#3 src/XF/Pub/Controller/Thread.php(364): XF\Pub\Controller\Thread->getNewPostsSinceDateReply(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 1684805523)
#4 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionNewPosts(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'NewPosts', Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
I will publish an update, which will potentially correct this error, personally I do not have this error :(
 
I will publish an update, which will potentially correct this error, personally I do not have this error :(
Thank you.

I have been using this addon-on for years now, and it only just started misbehaving, that error I showed you stopped people from posting every so often (it came up when you hit post), whether you were using post macros or not.
 
CRUEL-MODZ updated [Liam W.] Post Macros with a new update entry:

Update 5.2.2

Changed :
  • N/A
Added :
  • Add a rebuild permission system (in rebuild cache), this should avoid the message that appears in the admin panel.
    If you're modifying post macro permissions for a user group or changing a global macro, please rebuild
  • Add a permission for the metadata thread
Removed :
  • N/A
Note :
  • N/A
If you have questions, ask us !

Read the rest of this update entry...
 
Hello, in version 5.2.2 it is no longer possible to change the permissions of global macros.
This error occurs there.
Xenforo: 2.2.13
PHP: 8.1

Code:
ParseError: syntax error, unexpected token "\", expecting "{" in internal_data/code_cache/svPermHandlerCache/Faker/LiamW/PostMacros/Permission/GlobalMacros.php at line 4
Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 428
Composer\Autoload\ClassLoader->loadClass()
class_exists() in src/XF/Extension.php at line 198
XF\Extension->extendClass() in src/XF/App.php at line 3008
XF\App->extendClass() in src/XF.php at line 980
XF::extendClass() in src/XF/Permission/Builder.php at line 115
XF\Permission\Builder->getContentHandler() in src/XF/Repository/Permission.php at line 84
XF\Repository\Permission->getPermissionHandler() in src/XF/Repository/Permission.php at line 23
XF\Repository\Permission->getContentPermissionListData() in src/addons/LiamW/PostMacros/ControllerPlugin/GlobalMacroPermission.php at line 80
LiamW\PostMacros\ControllerPlugin\GlobalMacroPermission->actionEdit() in src/addons/LiamW/PostMacros/Admin/Controller/Macros.php at line 122
LiamW\PostMacros\Admin\Controller\Macros->actionPermissionsEdit() 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 2487
XF\App->run() in src/XF.php at line 524
XF::runApp() in admin.php at line 13
 
CRUEL-MODZ if there are many pages of macros there is no way to read the other pages:
1702162105504.png

forum/account/macros/active/page-2 returns the following:
1702162083538.png
 
Hello,

I will make an update that should correct this problem ;)

Regards, CRUEL-MODZ
 
Could you take a look into this? For some reason, addon update notifier isn't picking up that I am on the latest version: 1704048582952.png
 
Hello,

It’s because we change Patch Level to Fix. It’s the « same » version. You can do nothing about this, it’s something we need to do on our end aha

Regards, CRUEL-MODZ
 
Back
Top Bottom