Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Grek.Kamchatka - syyskuu 21, 2005, 09:40:05 IP

Otsikko: [BUG] SMF 1.1 RC1
Kirjoitti: Grek.Kamchatka - syyskuu 21, 2005, 09:40:05 IP
Hi everyone)
On just installed SMF 1.1 RC1 i have this error log:

http://localhost/11/index.php?action=managesearch

8: Undefined index: name
File: z:\home\localhost\www\11\Themes\default\ManagePermissions.template.php (eval?)
Line: 445



http://localhost/11/index.php?action=managesearch

8: Undefined index: is_postgroup
File: z:\home\localhost\www\11\Themes\default\ManagePermissions.template.php (eval?)
Line: 445



http://localhost/11/index.php?action=managesearch

8: Undefined index: id
File: z:\home\localhost\www\11\Themes\default\ManagePermissions.template.php (eval?)
Line: 438


What is this?
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: [Unknown] - syyskuu 21, 2005, 09:42:27 IP
Please go to:

Admin -> Support and Credits -> (more detailed)

Are you sure all of your templates and files are up to date?  I would assume ManagePermissions.php is old.

-[Unknown]
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Grek.Kamchatka - syyskuu 21, 2005, 09:49:44 IP
SMF File        Your Version     Current Version   
SMF Package            SMF 1.1 RC1       SMF 1.1 Beta 3 Public   
Sources                     1.1 RC1                1.1 Beta 3 Public   
Default Templates   1.1 RC1                1.1 Beta 3 Public   
Language Files            1.1 RC1                1.1 Beta 3 Public

All files is 1.1 RC1. I install new forum. Not upgrade or update.
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: [Unknown] - syyskuu 21, 2005, 09:57:02 IP
Is it reproducable?  If so, in ManagePermissions.template.php, find:

foreach ($context['member_groups'] as $group)
{


Add after:

print_r($group);

What does it show?

-[Unknown]
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Grek.Kamchatka - syyskuu 21, 2005, 10:11:03 IP
Yes. It is reproducable. I have added your code but this didn't help. I have this error again.
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: [Unknown] - syyskuu 21, 2005, 10:17:26 IP
Nothing was outputted?

It sounds like, for some reason, $context['member_groups'] has junk in it.  Maybe, before that code:

var_dump($context['member_groups']);

What does that show?

-[Unknown]
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Grek.Kamchatka - syyskuu 21, 2005, 10:24:09 IP
Some advancement =)
Remained one mistake:
[error]
http://localhost/11/index.php?action=managesearch

2: Invalid argument supplied for foreach()
File: z:\home\localhost\www\11\Themes\default\ManagePermissions.template.php (eval?)
Line: 433
[/error]
Old mistakes anymore appear.
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: ArkServer - syyskuu 22, 2005, 11:49:44 AP
lol FYI we cant acces localhosts :)
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Sheepy - syyskuu 22, 2005, 04:18:02 IP
No, but if it's a new install as he said we can try it on our own localhost.  Anyway I failed to reproduce the error messages.

May be the data is corrupted? Just a guess.
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: [Unknown] - syyskuu 22, 2005, 04:30:53 IP
Adding that line shouldn't have changed anything.  Are you using any accelerators or optimizers?

-[Unknown]
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Random - lokakuu 20, 2005, 04:35:23 IP
I'm getting errors similar to these, on a brand new install

8: Undefined index: name
File: /home/xxx/public_html/forum/Themes/default/ManagePermissions.template.php (eval?)
Line: 445

8: Undefined index: is_postgroup
File: /home/xxx/public_html/forum/Themes/default/ManagePermissions.template.php (eval?)
Line: 445

8: Undefined index: id
File: /home/xxx/public_html/forum/Themes/default/ManagePermissions.template.php (eval?)
Line: 438

They appear on these pages so far:

http://www.xxxxx/forum/index.php?action=managecalendar
http://www.xxx/forum/index.php?action=managesearch;sa=settings
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: ian - tammikuu 15, 2006, 02:53:18 IP
I'm having this same problem with RC2, when accessing the calendar or search settings (and maybe others too). It appears to be due to a fantom member group appearing from somewhere. Here's a screenshot:



In case it gives any clues, I have 4 rows in the membergroups table: Administrator, Global Moderator, Moderator, Member.

This "problem" doesn't seem to do any harm, but it'd be nice to remove these entries from the error log anyway :)
Otsikko: Re: [BUG] SMF 1.1 RC1
Kirjoitti: Random - tammikuu 24, 2006, 04:35:03 AP
Yes, I still get these too, same as before:

8: Undefined index: name
File: /home/xxxxxx/public_html/forum/Themes/default/ManagePermissions.template.php (eval?)
Line: 445

When accessing this link

http://www.xxxxxxxxxxxxxxx/forum/index.php?action=managecalendar