WoltLab/com.woltlab.wcf.user — Issue #28: UserOptionOutputMessage in ACP
Author: Gravatronics
Created: 2012-03-05 08:36:27+00:00
State: open

If I want to edit a user in an application's acp what requires both the user and the bbcode package, I get an exception since `MODULE_SMILEY` isn't defined in the acp.

```
error message: PHP notice in file /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/bbcode/MessageParser.class.php (49): Use of undefined constant MODULE_SMILEY - assumed 'MODULE_SMILEY'
error code: 0
file: /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/WCF.class.php (271)
php version: 5.3.6
wcf version: 2.0.0 Alpha 1 (Maelstrom)
date: Mon, 05 Mar 2012 08:33:13 +0000
request: /WoltLab/WCF%202.0/installations/2012-03-04/03/gtpm/acp/index.php/UserEdit/1-Matthias/?s=17d8fc4ffa91b68d4b70913752d9b7bfe81073c0
referer: http://localhost:8888/WoltLab/WCF%202.0/installations/2012-03-04/03/gtpm/acp/index.php/UserList/?s=17d8fc4ffa91b68d4b70913752d9b7bfe81073c0
Stacktrace:
#0 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/bbcode/MessageParser.class.php(49): wcf\system\WCF::handleError(8, 'Use of undefine...', '/Users/matthias...', 49, Array)
#1 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/SingletonFactory.class.php(27): wcf\system\bbcode\MessageParser->init()
#2 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/SingletonFactory.class.php(56): wcf\system\SingletonFactory->__construct()
#3 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/option/user/UserOptionOutputMessage.class.php(36): wcf\system\SingletonFactory::getInstance()
#4 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/data/user/option/ViewableUserOption.class.php(52): wcf\system\option\user\UserOptionOutputMessage->getOutput(Object(wcf\data\user\User), Object(wcf\data\user\option\UserOption), NULL)
#5 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/option/user/UserOptionHandler.class.php(77): wcf\data\user\option\ViewableUserOption->setOptionValue(Object(wcf\data\user\User))
#6 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/option/OptionHandler.class.php(214): wcf\system\option\user\UserOptionHandler->getOption('aboutMe')
#7 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/option/OptionHandler.class.php(179): wcf\system\option\OptionHandler->getCategoryOptions('profile.aboutMe')
#8 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/option/OptionHandler.class.php(175): wcf\system\option\OptionHandler->getOptionTree('profile', 1)
#9 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/acp/form/UserAddForm.class.php(293): wcf\system\option\OptionHandler->getOptionTree()
#10 WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/acp/form/UserEditForm.class.php(106): wcf\acp\form\UserAddForm->readOptionTree()
#11 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/acp/form/UserAddForm.class.php(286): wcf\acp\form\UserEditForm->readOptionTree()
#12 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/acp/form/UserEditForm.class.php(95): wcf\acp\form\UserAddForm->readData()
#13 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/page/AbstractPage.class.php(133): wcf\acp\form\UserEditForm->readData()
#14 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/acp/form/UserAddForm.class.php(330): wcf\page\AbstractPage->show()
#15 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/page/AbstractPage.class.php(56): wcf\acp\form\UserAddForm->show()
#16 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__construct()
#17 /WoltLab/WCF 2.0/installations/2012-03-04/03/wcf/lib/system/request/RequestHandler.class.php(47): wcf\system\request\Request->execute()
#18 /WoltLab/WCF 2.0/installations/2012-03-04/03/gtpm/acp/index.php(3): wcf\system\request\RequestHandler->handle('gtpm', true)
#19 {main}