Active
Project:
User tweaks
Version:
7.x-2.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2011 at 20:51 UTC
Updated:
23 Apr 2015 at 10:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pafla commentedI got this message too
Comment #2
espirates commentedI got this one
Fatal error: Call to a member function forceMenuRebuild() on a non-object in /sites/all/modules/user_tweaks/user_tweaks_ui.module on line 90Comment #3
DonBeisser commentedI got this Message after changing the name of an User Profile ( for e.g. main profile to Profile )
can someone tell me why
Comment #4
peteror commentedYep, there is a typo there, just change
$var->forceMenuRebuild();
to
$vars->forceMenuRebuild();
in user_tweaks_ui.module, line 90 (the one before the last line...)
Comment #5
Anonymous (not verified) commentedWhat's the solution to the original problem?
Comment #6
Anonymous (not verified) commentedComment #7
Anonymous (not verified) commentedI have marked #1310568: Missing argument 2 for user_tweaks_user_load() as duplicate of this report.
Comment #8
janchojnacki commentedIn user_tweaks.module change:
function user_tweaks_user_load(&$account) {
to:
function user_tweaks_user_load($account) {
Comment #9
rawrzors commentedAny updates on this issue?
I tried jaanhoinatski's solution, but I could not find the exact statement. The closest thing is:
Any suggestions?
Thanks
Comment #10
sinasalek commentedSame here :
Notice: Undefined variable: var in user_tweaks_ui_config_submit() (line 90 of sites/all/modules/user_tweaks/user_tweaks_ui.module).
Also when i save this page dmin/config/people/user-tweaks , it goes blank
Comment #11
asghar commentedHi
Getting Warning "Parameter 1 to user_tweaks_user_load() expected to be a reference, [warning] value given entity.inc:335"
I think module author is using wrong hook_user_load format
It should be change user_tweaks_user_load(&$edit, $account, $category = NULL) to user_tweaks_user_load($users) http://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook...
Comment #12
asghar commentedI think it should work I am not familar this module function i am facing warning issue when i clear the cache or run drupal updation
Comment #13
NoRandom commentedRight use of the hook, asghar, and it solves the error message.
Comment #14
bagqueen commentedIs the code that asghar posted in comment #12 supposed to be correct? When I try to use it I get this error message:
Notice: Undefined variable: account in user_tweaks_user_load() (line 355 of sites/all/modules/user_tweaks/user_tweaks.module).
Notice: Trying to get property of non-object in user_tweaks_user_load() (line 355 of sites/all/modules/user_tweaks/user_tweaks.module).
Comment #15
lammensj commentedConverted the code from asghar to a patch. Worked on my local development site.
Comment #16
pawel_r commented7.x-2.0-alpha3 has still typo '$var' not fixed, proper line in 'user_tweaks_ui_config_submit()' should be
$vars->forceMenuRebuild();