We are using Sugar CE Version 6.1.2 (Build 5555)
This error started when I added a second user to the system.
As background - a role wasn't applied to this user.
Admin > User Mangement > [user name] > Access
Showed that user having complete access to everything.
When that user logged in they couldn't add or delete dashlets. With the following error message in the php logs:
In attempt to solve the dashlet problem we reset the user preferences for both users in the system. (The first user being the admin user that is set up during SugarCRM install).Code:[19-Mar-2011 14:37:26] PHP Warning: array_unshift() [<a href='function.array-unshift'>function.array-unshift</a>]: The first argument should be an array in /home/www/example.com/include/MySugar/MySugar.php on line 114 [19-Mar-2011 14:37:26] PHP Fatal error: Call to undefined method UserPreference::isPreferenceSizeTooLarge() in /home/www/example.com/modules/Users/User.php on line 340 [19-Mar-2011 14:37:26] PHP Warning: require_once() [<a href='function.require-once'>function.require-once</a>]: Filename cannot be empty in /home/www/example.com/include/MySugar/MySugar.php on line 154 [19-Mar-2011 14:37:26] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='/home/www/example.com/include/..:.:/usr/share/php:/usr/share/pear') in /home/www/example.com/include/MySugar/MySugar.php on line 154
We reset the preferences by visiting.
Admin > User Mangement > [user name] > Reset User Preferences
Since resetting the user preferences when either user logs in they are redirected to this page:
http://example.com/index.php?module=Users&action=Wizard
With the following error message displayed in the browser.
Fatal error: Call to undefined method UserPreference::getDefaultPreference() in /home/www/example.com/modules/Users/views/view.wizard.php on line 221
I've spent some time researching the method UserPreference::getDefaultPreference and I've come to the conclusion that it is not defined anywhere in the Sugar code.
I hope I'm wrong, which is why I am posting here.
Here are the results of me grepping the code base:
me@Computer:~/example.com$ grep getDefaultPreference `find . -name "*" 2> /dev/null` 2> /dev/null
./modules/Users/views/view.wizard.php: $this->ss->assign('TIMEOPTIONS', get_select_options_with_id($sugar_config['time_formats'], $current_user->_userPreferenceFocus->getDefaultPreference('default_time_format')));
./modules/Users/views/view.wizard.php: $this->ss->assign('DATEOPTIONS', get_select_options_with_id($sugar_config['date_formats'], $current_user->_userPreferenceFocus->getDefaultPreference('default_date_format')));
I can login if I change the path to http://example.com/index.php after that login error screen.
When I change the path I get prompted to set my time zone, then I'm good to go. All data present, except dashlets, which I can't change.
So, can anyone help me get out of this sticky situation?
I like dashlets, and seamless logins.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks