Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

Get error message when trying to preview new post

edited November 2009 in Vanilla 2.0 - 2.8
Hello;

When I try to preview a new post the Vanilla forum here gives me an error message. It's not supposed to do that I don't think.

Here's what it says:

//--------------------------------
# FATAL ERROR IN: PHP.ErrorHandler(); "Undefined property: stdClass::$InsertUserID" LOCATION: /srv/www/vanillaforumsorg/applications/vanilla/views/post/preview.php > 6: > 7:

* > 8: 9: $Author = new stdClass(); >>> 10: $Author->UserID = $this->Comment->InsertUserID; > 11: $Author->Name = $this->Comment->InsertName; > 12: $Author->Photo = $this->Comment->InsertPhoto; > 13: echo UserPhoto($Author); > 14: echo UserAnchor($Author); BACKTRACE: [/srv/www/vanillaforumsorg/applications/vanilla/views/post/preview.php 10] PHP::ErrorHandler(); [/srv/www/vanillaforumsorg/library/core/class.controller.php 458] PHP::include(); [/srv/www/vanillaforumsorg/library/core/class.controller.php 678] Gdn_Controller->FetchView(); [/srv/www/vanillaforumsorg/library/core/class.pluggable.php 192] Gdn_Controller->xRender(); [/srv/www/vanillaforumsorg/library/core/class.pluggable.php 192] Gdn_Pluggable->__call(); [/srv/www/vanillaforumsorg/applications/vanilla/controllers/post.php 135] PostController->Render(); [/srv/www/vanillaforumsorg/library/core/class.dispatcher.php 220] PostController->Discussion(); [/srv/www/vanillaforumsorg/index.php 41] Gdn_Dispatcher->Dispatch(); JimTrail
* 11:32am
//--------------------------------

Can anybody tell me what's wrong?
Sign In or Register to comment.