Error on accessing "Activity"
Hi,
When I click on the "Activity" link, I get the error given blow. Can someone please let me know how to fix this error.
Details about the installation.
Application: Vanilla Application Version: 2.1.11 PHP Version: 5.4.28 Operating System: WINNT Server Software: Apache/2.2.25 (Win32) PHP/5.4.28 User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 FirePHP/0.7.4 Request Uri: /forum/index.php?p=/activity Controller: PHP Method: _FormatStringCallback
Error:
Fatal Error in PHP._FormatStringCallback();
Creating default object from empty value
The error occurred on or near: C:\www\forum\library\core\functions.general.php
1209: if (isset($Special[$ID])) {
1210: $Result .= $Special[$ID];
1211: } else {
1212: $User = Gdn::UserModel()->GetID($ID);
1213: $User->Name = FormatUsername($User, $Format, $ContextUserID);
1214:
1215:
1216: $Result .= UserAnchor($User);
1217: }
Backtrace:
[C:\www\forum\library\core\functions.general.php:1213] PHP::Gdn_ErrorHandler();
[C:\www\forum\library\core\functions.general.php:1213] PHP::_FormatStringCallback();
[C:\www\forum\library\core\functions.general.php:1014] PHP::preg_replace_callback();
[C:\www\forum\applications\dashboard\models\class.activitymodel.php:115] PHP::FormatString();
[C:\www\forum\applications\dashboard\models\class.activitymodel.php:76] ActivityModel->CalculateRow();
[C:\www\forum\applications\dashboard\models\class.activitymodel.php:208] ActivityModel->CalculateData();
[C:\www\forum\applications\dashboard\controllers\class.activitycontroller.php:144] ActivityModel->GetWhere();
[C:\www\forum\applications\dashboard\controllers\class.activitycontroller.php:144] ActivityController->Index();
[C:\www\forum\library\core\class.dispatcher.php:350] PHP::call_user_func_array();
[C:\www\forum\index.php:46] Gdn_Dispatcher->Dispatch();
Variables in local scope:
[Match] 'ActivityUserID,You'
[SetArgs] false
[Args] array (
'UserID' => 8,
)
[ContextUserID] '3'
[Parts] array (
0 => 'ActivityUserID',
1 => 'You',
)
[Field] 'ActivityUserID'
[Format] 'You'
[SubFormat] ''
[FormatArgs] ''
[Value] array (
0 => 8,
1 => 7,
2 => 6,
3 => 5,
4 => 4,
5 => 3,
)
[Result] ''
[User] array (
'Name' => false,
)
[ArgsBak] array (
'ActivityID' => 3,
'ActivityTypeID' => 17,
'NotifyUserID' => -1,
'ActivityUserID' =>
array (
0 => 8,
1 => 7,
2 => 6,
3 => 5,
4 => 4,
5 => 3,
),
'RegardingUserID' => NULL,
'Photo' => NULL,
'HeadlineFormat' => '{ActivityUserID,You} joined.',
'Story' => 'Welcome Aboard!',
'Format' => NULL,
'Route' => NULL,
'RecordType' => NULL,
'RecordID' => NULL,
'InsertUserID' => NULL,
'DateInserted' => '2015-08-12 02:51:26',
'InsertIPAddress' => '127.0.0.1',
'DateUpdated' => '2015-08-13 02:29:34',
'Notified' => 0,
'Emailed' => 0,
'Data' =>
array (
'ActivityUserIDs' =>
array (
0 => 7,
1 => 6,
2 => 5,
3 => 4,
4 => 3,
),
),
'FullHeadline' => NULL,
'ProfileHeadline' => NULL,
'AllowComments' => 0,
'ShowIcon' => 0,
'RouteCode' => NULL,
'ActivityType' => 'Registration',
'ActivityName' => NULL,
'ActivityEmail' => NULL,
'ActivityGender' => NULL,
'ActivityPhoto' => NULL,
'RegardingName' => NULL,
'RegardingEmail' => NULL,
'RegardingGender' => NULL,
'RegardingPhoto' => NULL,
'PhotoUrl' => 'http://localhost/forum/index.php?p=/activity',
'Url' => 'http://localhost/forum/index.php?p=/activity',
)
[Max] 5
[Count] 6
[i] 0
[ID] 8
[Special] array (
-1 => 'everyone',
-2 => 'moderators',
-3 => 'administrators',
)
Thank you.
0
Comments
turn off debugging.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
'Regarding....' => Kopfmasturbationsversuchenschlussgebuggenvensteruntertisch=NULL ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thanks Peregrine, it works after I turned off debugging. But why it doesn't work in debug mode?
because it was "Creating default object from empty value"
do you want a philosophical answer? please start a new discussion under coding philosophy category.
Ask the vanilla developer named A_Vanilla_User
Counter question to you: "Why are you leaving it in debug mode when you aren't debugging?
Theirs not to reason why,
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.