Armbian_Werner Posted October 9, 2020 Posted October 9, 2020 With version Invision 4.5.3 this plugin is causing the function to split topics to fail. Error: Call to a member function getRulesForumData() on null (0) #0 /var/www/forum/system/Content/Controller.php(3689): IPS\forums\hook478::formElements() #1 /var/www/forum/applications/forums/modules/front/forums/topic.php(1143): IPS\Content\_Controller->_splitForm() #2 /var/www/forum/system/Content/Controller.php(2763): IPS\forums\modules\front\forums\_topic->_splitForm() #3 /var/www/forum/applications/forums/modules/front/forums/topic.php(1164): IPS\Content\_Controller->_split() #4 /var/www/forum/system/Content/Controller.php(2178): IPS\forums\modules\front\forums\_topic->_split() #5 /var/www/forum/applications/forums/modules/front/forums/topic.php(1108): IPS\Content\_Controller->__call() #6 /var/www/forum/system/Dispatcher/Controller.php(90): IPS\forums\modules\front\forums\_topic->__call() #7 /var/www/forum/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 /var/www/forum/init.php(887) : eval()'d code(16): IPS\Content\_Controller->execute() #9 /var/www/forum/applications/forums/modules/front/forums/topic.php(39): IPS\Content\templates_hook_TemplateController->execute() #10 /var/www/forum/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\front\forums\_topic->execute() #11 /var/www/forum/index.php(13): IPS\_Dispatcher->run() #12 {main} Would be nice to get an update here. Cheers Werner
Adriano Faria Posted October 9, 2020 Author Posted October 9, 2020 2 hours ago, Armbian_Werner said: With version Invision 4.5.3 this plugin is causing the function to split topics to fail. I’ll release a new version today later to fix this. Armbian_Werner 1
Adriano Faria Posted October 9, 2020 Author Posted October 9, 2020 5 hours ago, Armbian_Werner said: With version Invision 4.5.3 this plugin is causing the function to split topics to fail. New version submitted to fix this issue. Follow the file to get notified when IPS review and approve it. Armbian_Werner 1
Adriano Faria Posted October 14, 2020 Author Posted October 14, 2020 What's New in Version 4.2.0 Enhancement: Now converted to an application to adjust to new marketplace rules Fix: Fix error when trying to split posts Upgrade from (any) plugin version to the Application: Just install this application and it will port your data (forums rules) to the new format and the old plug-in will be automatically uninstalled from your community. Armbian_Werner 1
Armbian_Werner Posted October 15, 2020 Posted October 15, 2020 (edited) Update first failed for me ("no permission") until I realized the purchase is bound to the license holders account and not shared between alternate contacts. Anyways. Update was successful then. Though it seems the rule text has not been converted. The text box is empty. Not sure if this could be our fault.... maybe you wanna double check if it works as expected. No big loss at least 🙂 Cheers Werner Edit: There is an issue when using centered text in a ruleset: Edited October 15, 2020 by Armbian_Werner
LiveG Posted May 18, 2022 Posted May 18, 2022 (edited) Hi @Adriano Faria Thank you. great app Edited May 18, 2022 by livegames.co.il Adriano Faria 1
Armbian_Werner Posted May 22, 2022 Posted May 22, 2022 Hey there, I ran into an issue that seems to be caused by New Topic Rules. When I try to split a post from a threads within a club it leads into a "something went wrong." Is this a known issue? The error is also in the admincp logs which I'd gladly provide via PM if needed. Cheers Werner
Adriano Faria Posted May 22, 2022 Author Posted May 22, 2022 1 hour ago, Armbian_Werner said: Hey there, I ran into an issue that seems to be caused by New Topic Rules. When I try to split a post from a threads within a club it leads into a "something went wrong." Is this a known issue? The error is also in the admincp logs which I'd gladly provide via PM if needed. Cheers Werner Post the error that shows in the logs please.
Armbian_Werner Posted May 24, 2022 Posted May 24, 2022 On 5/22/2022 at 4:51 PM, Adriano Faria said: Post the error that shows in the logs please. Error: Call to a member function getRulesForumData() on null (0) #0 /var/www/forum.armbian.com/system/Content/Controller.php(3670): IPS\forums\newtopicrules_hook_topicModel::formElements() #1 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1259): IPS\Content\_Controller->_splitForm() #2 /var/www/forum.armbian.com/system/Content/Controller.php(2719): IPS\forums\modules\front\forums\_topic->_splitForm() #3 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1280): IPS\Content\_Controller->_split() #4 /var/www/forum.armbian.com/system/Content/Controller.php(2207): IPS\forums\modules\front\forums\_topic->_split() #5 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1224): IPS\Content\_Controller->__call() #6 /var/www/forum.armbian.com/system/Dispatcher/Controller.php(90): IPS\forums\modules\front\forums\_topic->__call() #7 /var/www/forum.armbian.com/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 /var/www/forum.armbian.com/init.php(913) : eval()'d code(16): IPS\Content\_Controller->execute() #9 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(39): IPS\Content\templates_hook_TemplateController->execute() #10 /var/www/forum.armbian.com/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #11 /var/www/forum.armbian.com/index.php(13): IPS\_Dispatcher->run() #12 {main}
Adriano Faria Posted May 24, 2022 Author Posted May 24, 2022 5 hours ago, Armbian_Werner said: Error: Call to a member function getRulesForumData() on null (0) #0 /var/www/forum.armbian.com/system/Content/Controller.php(3670): IPS\forums\newtopicrules_hook_topicModel::formElements() #1 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1259): IPS\Content\_Controller->_splitForm() #2 /var/www/forum.armbian.com/system/Content/Controller.php(2719): IPS\forums\modules\front\forums\_topic->_splitForm() #3 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1280): IPS\Content\_Controller->_split() #4 /var/www/forum.armbian.com/system/Content/Controller.php(2207): IPS\forums\modules\front\forums\_topic->_split() #5 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1224): IPS\Content\_Controller->__call() #6 /var/www/forum.armbian.com/system/Dispatcher/Controller.php(90): IPS\forums\modules\front\forums\_topic->__call() #7 /var/www/forum.armbian.com/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 /var/www/forum.armbian.com/init.php(913) : eval()'d code(16): IPS\Content\_Controller->execute() #9 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(39): IPS\Content\templates_hook_TemplateController->execute() #10 /var/www/forum.armbian.com/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #11 /var/www/forum.armbian.com/index.php(13): IPS\_Dispatcher->run() #12 {main} So what’s happening there? Is there a rule for this forum? Is it a category? I need more information. This reported by you in Oct/2020 and was fixed. EDIT: Ok, happens when you try to split posts. Will check it out.
Adriano Faria Posted May 24, 2022 Author Posted May 24, 2022 On 5/22/2022 at 10:14 AM, Armbian_Werner said: Hey there, I ran into an issue that seems to be caused by New Topic Rules. When I try to split a post from a threads within a club it leads into a "something went wrong." Is this a known issue? The error is also in the admincp logs which I'd gladly provide via PM if needed. Cheers Werner 14 hours ago, Armbian_Werner said: Error: Call to a member function getRulesForumData() on null (0) #0 /var/www/forum.armbian.com/system/Content/Controller.php(3670): IPS\forums\newtopicrules_hook_topicModel::formElements() #1 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1259): IPS\Content\_Controller->_splitForm() #2 /var/www/forum.armbian.com/system/Content/Controller.php(2719): IPS\forums\modules\front\forums\_topic->_splitForm() #3 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1280): IPS\Content\_Controller->_split() #4 /var/www/forum.armbian.com/system/Content/Controller.php(2207): IPS\forums\modules\front\forums\_topic->_split() #5 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(1224): IPS\Content\_Controller->__call() #6 /var/www/forum.armbian.com/system/Dispatcher/Controller.php(90): IPS\forums\modules\front\forums\_topic->__call() #7 /var/www/forum.armbian.com/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 /var/www/forum.armbian.com/init.php(913) : eval()'d code(16): IPS\Content\_Controller->execute() #9 /var/www/forum.armbian.com/applications/forums/modules/front/forums/topic.php(39): IPS\Content\templates_hook_TemplateController->execute() #10 /var/www/forum.armbian.com/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #11 /var/www/forum.armbian.com/index.php(13): IPS\_Dispatcher->run() #12 {main} I just tested and can't reproduce. Post is splitted, no error in logs. You reported this in October/20. It was fixed a few days after you report. You never downloaded new version. So I went to check and you don't show as purchaser of this file, that's why you never downloaded it. So if you are talking in someone else's behalf, just ask the the purchaser to request for support.
Miss_B Posted May 24, 2022 Posted May 24, 2022 5 minutes ago, Adriano Faria said: So I went to check and you don't show as purchaser of this file, that's why you never downloaded it. According to them they run into the errors that they described when splitting a topic on their own forum. That seems to me that they are not talking on behalf of someone else, which raises the question how were they able to use your app when they did not purchase it. Maybe you should bring this to the attention of the Ipb staff...
Adriano Faria Posted May 24, 2022 Author Posted May 24, 2022 3 minutes ago, Miss_B said: Maybe you should bring this to the attention of the Ipb staff... I meant he may be an alternative contact from a license holder so I prefer to give a chance to the purchaser request support.
Armbian_Werner Posted May 25, 2022 Posted May 25, 2022 (edited) 23 hours ago, Adriano Faria said: alternative contact Correct. I do forums management in behalf of the license holder. Will talk to him to ping you in order to verify my request for support. Edit. ACP shows version 4.2.0 Edited May 25, 2022 by Armbian_Werner
Armbian_Werner Posted July 11, 2022 Posted July 11, 2022 Hey there, thank you for the quick fix after sorting out the license stuff. I wonder if it would be possible to a) copy the rule text as well to other forums and/or b) copy all settings at once to multiple other forums The copy icon is missing besides the rule boxes Thanks in advance Cheers Werner
Adriano Faria Posted July 11, 2022 Author Posted July 11, 2022 3 hours ago, Armbian_Werner said: The copy icon is missing besides the rule boxes Yeah, it is a Core thing. You can’t copy any “editor” field. Armbian_Werner 1
Armbian_Werner Posted July 11, 2022 Posted July 11, 2022 1 minute ago, Adriano Faria said: Yeah, it is a Core thing. You can’t copy any “editor” field. Ah okay, got it. What do you think about b? My issue is that I'd need to copy the same settings and rules to about 100 forums one by one which would take forever and I wonder if there is a way to optimize that process. Cheers Werner
Adriano Faria Posted July 11, 2022 Author Posted July 11, 2022 No, there isn’t it. You have to do it manually; btw you would have to do it too if it was a field from any other official IPS app. I won’t support directly queries in your database (out of support scope), so if you’re experienced with it, take a look at the core_sys_lang_words table. It’s all stored there. Armbian_Werner 1
opentype Posted June 19, 2023 Posted June 19, 2023 Hi Adriano, can you check compatibility with 4.7.11? It seemed to have stopped working after the IPS cookie changes. It’s not possible to go beyond the rules page and actually start a topic. Adriano Faria 1
Adriano Faria Posted June 19, 2023 Author Posted June 19, 2023 (edited) 51 minutes ago, opentype said: Hi Adriano, can you check compatibility with 4.7.11? It seemed to have stopped working after the IPS cookie changes. It’s not possible to go beyond the rules page and actually start a topic. Yes, it's a new (not documented) thing in IPS 4.7.11: Will upload a new version as soon as I fix it. I'll probably have to leave cookies behind and store the info on the database, as the cookies from this app are dynamic (stores the forum ID) and the new function doesn't seem to support this. Edited June 19, 2023 by Adriano Faria
Stuart Silvester Posted June 19, 2023 Posted June 19, 2023 13 minutes ago, Adriano Faria said: cookies from this app are dynamic (stores the forum ID) and the new function doesn't seem to support this We're adding this (needed for forum passwords). Use a * at the end of the cookie name in that method ( I.e. ipbforumpass_* ). Will only work for PHP set cookies. Adriano Faria 1
Adriano Faria Posted June 19, 2023 Author Posted June 19, 2023 5 minutes ago, Stuart Silvester said: We're adding this (needed for forum passwords). Use a * at the end of the cookie name in that method ( I.e. ipbforumpass_* ). Will only work for PHP set cookies. Will give it a try.
Adriano Faria Posted June 19, 2023 Author Posted June 19, 2023 Thank you, @Stuart Silvester; that did it. 👍 @opentype, the new version was just uploaded but I wouldn't wait for it in less than one week or so (I already have 12 resources awaiting). I'll send you a message with a file edit and you're done. It's just to update the version when it's available.
Stuart Silvester Posted June 19, 2023 Posted June 19, 2023 Just now, Adriano Faria said: Thank you, @Stuart Silvester; that did it. 👍 It won't work yet, I've only just written the code to handle it 🙂
Adriano Faria Posted June 19, 2023 Author Posted June 19, 2023 (edited) 17 minutes ago, Stuart Silvester said: It won't work yet, I've only just written the code to handle it 🙂 Wow, so there's another issue there as it is working. 😄 Are you going to release a patch or only next month with a new version? @Stuart Silvester, this is working for me: public function _getEssentialCookieNames(): array { $appCookie = \IPS\Settings::i()->ntr_CookiePrefix . '_*'; return array( $appCookie ); } It shouldn't? Edited June 19, 2023 by Adriano Faria
Recommended Posts