SecondSight Posted March 4 Share Posted March 4 (edited) Hello 🙂 I noticed that when I anonymously post a message in a topic, I get an error : and when I reopen the topic, I notice that the answer is posted twice :  Is this a known bug or really a theme error ? Thank you 🙂 Edited March 4 by SecondSight Link to comment Share on other sites More sharing options...
Jim M Posted March 4 Share Posted March 4 Please disable all third party applications/plugins, switch to an unmodified theme and language, then test again. This is not a known issue so we would need to eliminate those first. Link to comment Share on other sites More sharing options...
SecondSight Posted March 5 Author Share Posted March 5 Hello 🙂 I've disabled my third party app (Links Directory), installed a new theme and used an unmodified language (English), but I still get the same problem. I noticed this happens only in topics where I have never posted messages. Can you reproduce this ? Link to comment Share on other sites More sharing options...
Daniel F Posted March 5 Share Posted March 5 Do you see any logged errors in your system log? Link to comment Share on other sites More sharing options...
SecondSight Posted March 5 Author Share Posted March 5 (edited) Hello, 🙂 Yes, I've just noticed errors. Here they are :  Quote  TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\Post given, called in /home/forums/public_html/system/Content/Comment.php on line 1360 and defined in /home/forums/public_html/applications/forums/sources/Forum/Forum.php:343 Stack trace: #0 /home/forums/public_html/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment(NULL, Object(IPS\forums\Topic\Post)) #1 /home/forums/public_html/system/Content/Content.php(3292): IPS\Content\_Comment->changeAuthor(Object(IPS\Member), false) #2 /home/forums/public_html/system/Content/Comment.php(199): IPS\_Content->setAnonymous(true, Object(IPS\Member)) #3 /home/forums/public_html/applications/forums/sources/Topic/Post.php(140): IPS\Content\_Comment::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, Object(IPS\Member), NULL, NULL, NULL, true) #4 /home/forums/public_html/init.php(934) : eval()'d code(44): IPS\forums\Topic\_Post::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, NULL, NULL, NULL, NULL, true) #5 /home/forums/public_html/system/Content/Item.php(5138): IPS\forums\Topic\cms_hook_Post::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, NULL, NULL, NULL, NULL, true) #6 /home/forums/public_html/system/Content/Item.php(4824): IPS\Content\_Item->processCommentForm(Array) #7 /home/forums/public_html/uploads/template_13_7a734b11232065691bc1176040cb26ad_topics.php(5378): IPS\Content\_Item->commentForm() #8 /home/forums/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, true, NULL, Array) #9 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(643): IPS\Theme\_SandboxedTemplate->__call('topic', Array) #10 /home/forums/public_html/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #11 /home/forums/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #12 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #13 /home/forums/public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #14 /home/forums/public_html/index.php(13): IPS\_Dispatcher->run() #15 {main} BACKTRACE #0 /home/forums/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(TypeError), 'template_error') #1 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(643): IPS\Theme\_SandboxedTemplate->__call('topic', Array) #2 /home/forums/public_html/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #3 /home/forums/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #4 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #5 /home/forums/public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #6 /home/forums/public_html/index.php(13): IPS\_Dispatcher->run() #7 {main}  and Quote  TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\Post given, called in /home/forums/public_html/system/Content/Comment.php on line 1360 (0) #0 /home/forums/public_html/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment(NULL, Object(IPS\forums\Topic\Post)) #1 /home/forums/public_html/system/Content/Content.php(3292): IPS\Content\_Comment->changeAuthor(Object(IPS\Member), false) #2 /home/forums/public_html/system/Content/Comment.php(199): IPS\_Content->setAnonymous(true, Object(IPS\Member)) #3 /home/forums/public_html/applications/forums/sources/Topic/Post.php(140): IPS\Content\_Comment::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, Object(IPS\Member), NULL, NULL, NULL, true) #4 /home/forums/public_html/init.php(934) : eval()'d code(44): IPS\forums\Topic\_Post::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, NULL, NULL, NULL, NULL, true) #5 /home/forums/public_html/system/Content/Item.php(5138): IPS\forums\Topic\cms_hook_Post::create(Object(IPS\forums\Topic), '<p>\n\ttesta\n</p>...', false, NULL, NULL, NULL, NULL, NULL, NULL, true) #6 /home/forums/public_html/system/Content/Item.php(4824): IPS\Content\_Item->processCommentForm(Array) #7 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(141): IPS\Content\_Item->commentForm() #8 /home/forums/public_html/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #9 /home/forums/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #10 /home/forums/public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #11 /home/forums/public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #12 /home/forums/public_html/index.php(13): IPS\_Dispatcher->run() #13 {main} BACKTRACE #0 /home/forums/public_html/init.php(1036): IPS\_Log::log('TypeError: IPS\\...', 'uncaught_except...') #1 [internal function]: IPS\IPS::exceptionHandler(Object(TypeError)) #2 {main}  Edited March 5 by SecondSight Link to comment Share on other sites More sharing options...
teraßyte Posted March 5 Share Posted March 5 Install the patch in your ACP to fix the error: Link to comment Share on other sites More sharing options...
SecondSight Posted March 5 Author Share Posted March 5 8 minutes ago, teraßyte said: Install the patch in your ACP to fix the error: I think this is not the same error... Link to comment Share on other sites More sharing options...
Daniel F Posted March 5 Share Posted March 5 It is. Link to comment Share on other sites More sharing options...
SecondSight Posted March 5 Author Share Posted March 5 Ok 🙂 My community version is 4.7.15. Do I need to install the patch ? If yes where can I find it ? (I searched in the "Get support" section but there is none there). Thank you 🙂 Link to comment Share on other sites More sharing options...
Solution Marc Posted March 5 Solution Share Posted March 5 Go to the support section of your admin CP. The patch is shown in the top left box Link to comment Share on other sites More sharing options...
SecondSight Posted March 5 Author Share Posted March 5 Found it. Thank you. 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts