- Posts: 6
COMMUNITY FORUM
Undefined variable:
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
12 years 11 months ago #57219
by Lily Lee Lai Han
Undefined variable: was created by Lily Lee Lai Han
I have an error code on the K2 Login module and also can't add new item on the same error code:
Notice: Undefined variable: children in /home/Domain_Name/public_html/Website/modules/mod_k2_login/helper.php on line 97
May I have your advise?
Notice: Undefined variable: children in /home/Domain_Name/public_html/Website/modules/mod_k2_login/helper.php on line 97
May I have your advise?
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
12 years 11 months ago #57220
by william white
Replied by william white on topic Re: Undefined variable:
This is a notice. If the site is working correctly turn error reporting off in joomla global settings server tab and the notice should be suppressed
Please Log in or Create an account to join the conversation.
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
12 years 11 months ago #57221
by Lily Lee Lai Han
Replied by Lily Lee Lai Han on topic Re: Undefined variable:
thx for ur reply and my reporting was turn off, any other advise for such issue?
Please Log in or Create an account to join the conversation.
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
12 years 11 months ago #57222
by Lily Lee Lai Han
Replied by Lily Lee Lai Han on topic Re: Undefined variable:
i don't think that the code has any problem:
if(K2_JVERSION=='16'){
$items = JHTML::_('menu.treerecurse', 1, '', array(), $children, 9999, 0, 0 );
}
else {
$items = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
}
However, while I tried to change it like this
if(K2_JVERSION=='16'){
@$items = JHTML::_('menu.treerecurse', 1, '', array(), $children, 9999, 0, 0 );
}
else {
@$items = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
}
The error disappeared in login module, but after i pressed the "add new item", it was blank page.
if(K2_JVERSION=='16'){
$items = JHTML::_('menu.treerecurse', 1, '', array(), $children, 9999, 0, 0 );
}
else {
$items = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
}
However, while I tried to change it like this
if(K2_JVERSION=='16'){
@$items = JHTML::_('menu.treerecurse', 1, '', array(), $children, 9999, 0, 0 );
}
else {
@$items = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
}
The error disappeared in login module, but after i pressed the "add new item", it was blank page.
Please Log in or Create an account to join the conversation.
- SDKiller
- Offline
- Junior Member
Less
More
- Posts: 35
12 years 11 months ago #57223
by SDKiller
Russian K2 support on joomlaforum.ru
Replied by SDKiller on topic Re: Undefined variable:
It was fixed yesterday, download fresh K2 installation package
Russian K2 support on joomlaforum.ru
Please Log in or Create an account to join the conversation.
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
12 years 11 months ago #57224
by Lily Lee Lai Han
Replied by Lily Lee Lai Han on topic Re: Undefined variable:
hahah, yes the error code disappeared after installed the update.
but while i pressed "add new item", blank and nothing occur.
pls help... :(
but while i pressed "add new item", blank and nothing occur.
pls help... :(
Please Log in or Create an account to join the conversation.
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
12 years 11 months ago - 12 years 11 months ago #57225
by Lily Lee Lai Han
Replied by Lily Lee Lai Han on topic Re: Undefined variable:
just tested in different explorer:
in the google chrome, pressed "add new item", blank page loaded;
in the IE, pressed "add new item",
img src="<br /> <b>Fatal error</b>: Call to undefined method K2ModelItem::getUserProfile() in <b>/domain/components/com_k2/helpers/utilities.php</b> on line <b>42</b><br />
in the google chrome, pressed "add new item", blank page loaded;
in the IE, pressed "add new item",
img src="<br /> <b>Fatal error</b>: Call to undefined method K2ModelItem::getUserProfile() in <b>/domain/components/com_k2/helpers/utilities.php</b> on line <b>42</b><br />
Please Log in or Create an account to join the conversation.
- Lily Lee Lai Han
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
12 years 11 months ago #57226
by Lily Lee Lai Han
Replied by Lily Lee Lai Han on topic Re: Undefined variable:
Besides add item, i even can't add categories in front end, pls help and advise.
Please Log in or Create an account to join the conversation.
- mega
- Offline
- New Member
Less
More
- Posts: 5
12 years 9 months ago - 12 years 9 months ago #57227
by mega
Replied by mega on topic Re: Undefined variable:
Is this issue is fixed?I'm also getting same error in the user module.
Using Joomla 1.5.24 and K2 v2.5.4.
I'm getting following error in K2 user and login module after login. Also, i'm seeing "Add new item" link.
Notice: Undefined variable: children in /home/content/xx/xxxxxxx/html/modules/mod_k2_user/helper.php on line 97
Notice: Undefined variable: children in /home/content/45/7412145/html/modules/mod_k2_user/helper.php on line 97
test
You have 0 published comments
<Add new Item link missing>
My page
My account
Moderate comments to my published items
Using Joomla 1.5.24 and K2 v2.5.4.
I'm getting following error in K2 user and login module after login. Also, i'm seeing "Add new item" link.
Notice: Undefined variable: children in /home/content/xx/xxxxxxx/html/modules/mod_k2_user/helper.php on line 97
Notice: Undefined variable: children in /home/content/45/7412145/html/modules/mod_k2_user/helper.php on line 97
test
You have 0 published comments
<Add new Item link missing>
My page
My account
Moderate comments to my published items
Please Log in or Create an account to join the conversation.
- Heart1010
- Offline
- New Member
Less
More
- Posts: 3
12 years 7 months ago - 12 years 7 months ago #57228
by Heart1010
Replied by Heart1010 on topic Re: Undefined variable:
i write that here too in that topic:
"bug" is still present...
It was declared as "fixed" in the bugtracker but that's not true :unsure:
code.google.com/p/getk2/issues/detail?can=1&start=0&num=100&q=children&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20Opened&groupby=&sort=&id=109
(and turning off error reporting is not a solution ;) )
"bug" is still present...
It was declared as "fixed" in the bugtracker but that's not true :unsure:
code.google.com/p/getk2/issues/detail?can=1&start=0&num=100&q=children&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20Opened&groupby=&sort=&id=109
(and turning off error reporting is not a solution ;) )
Please Log in or Create an account to join the conversation.