News:

Wondering if this will always be free?  See why free is better.

Main Menu

Error when viewing admin permissions

Started by Leppie, February 26, 2011, 07:00:19 AM

Previous topic - Next topic

Leppie

whenever someone clicks on the "show permissions" link on the profile page of an admin, the following error is generated:
index.php?action=profile;area=permissions;u=#
8: Undefined index: 0
File: /Sources/Profile-View.php
Line: 1750


the message "As an administrator, this member has all possible permissions." shows up normally, but why is the error generated?

Illori


kat

Can you attach /Sources/Profile-View.php to your next post, so we can take a look at it?

Leppie


Leppie

Quote from: Illori on February 26, 2011, 07:19:00 AM
do you have any mods installed?
these are the ones:
1. Buddy Page 1.2
2. Yet Another Global Announcements Mod 2.7.3
3. Recount Member Posts 1.0.2
4. Login Detector 1.0
5. Optimus Brave 1.5.2
6. Forum Firewall 1.0.5
7. Bad Behavior mod 1.4.0
8. SMF Staff Page 1.7
9. Stop Spammer 2.3.9
10. httpBL 2.5.1
11. SMF Multi Quote 1.1.3
12. Auto Refresh Who Index 1.0
13. Spiders Don't Increase Topic Views 1.1.1
14. Karma Buttons 1.1
15. Topic Solved 1.1.1
16. Highlight Search Keywords 1.24
17. Aeva Media 1.4c

kat

Well, as that line says:

'profile_name' => $context['profiles'][$row['id_profile']]['name'],

looks like good old eval's masking the real error. :(

Can you go to Admin>server settings and check "Disable evaluation of templates".

Then, you'll need to empty your error log and post the new ones that'll appear.

Leppie

Quote from: K@ on February 26, 2011, 08:49:11 AM
Can you go to Admin>server settings and check "Disable evaluation of templates".

Then, you'll need to empty your error log and post the new ones that'll appear.
did that, gives the exact same error...  :(

kat

That's really weird.

I wonder if Forum Firewall's getting in the way...?

Can you try disabling that and see if it has any effect?

Leppie

uninstalled forum firewall, but still the same message...

kat

Thinking about this, why would you want to look at admin permissions, anyway?

Admins have ALL permissions, anyway.

Leppie

i know they have all permissions...
the point is, why should that generate an error?

kat

I really can't even begin to figure this out, at all.

8: Undefined index: 0

WTF? That doesn't even get referred to, in that file.

Just doesn't make sense.

What I'd be trying, now, is going to Forum Maintenance and fixing errors.

Maybe even CPanel and checking/repairing the database.

Arantor

Index 0 is being referred to, in the line posted earlier. Seems to me as though it was upgraded from an earlier version and the upgrader didn't do the job fully.

Leppie

Quote from: K@ on February 28, 2011, 05:12:17 AM
WTF? That doesn't even get referred to, in that file.
exactly...

Quote from: K@ on February 28, 2011, 05:12:17 AM
What I'd be trying, now, is going to Forum Maintenance and fixing errors.

Maybe even CPanel and checking/repairing the database.
done all that several times, doesn't make any difference.

Advertisement: