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?
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]
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.
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]
Yes. It is reproducable. I have added your code but this didn't help. I have this error again.
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]
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.
lol FYI we cant acces localhosts :)
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.
Adding that line shouldn't have changed anything. Are you using any accelerators or optimizers?
-[Unknown]
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
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.blah.eclipse.co.uk%2Fsmf.png&hash=86fb6deb9cbc4787db68708a33410e6824172381)
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 :)
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