Jump to content

Error when posting as an anonymous


Go to solution Solved by Marc,

Recommended Posts

Hello 🙂

I noticed that when I anonymously post a message in a topic, I get an error :

Could contain: File, Webpage, Text

and when I reopen the topic, I notice that the answer is posted twice :

 Could contain: Page, Text, File

Is this a known bug or really a theme error ?

Thank you 🙂

Edited by SecondSight
Link to comment
Share on other sites

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

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

Posted (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 by SecondSight
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...