Blank Admin Pages

Blank Admin Pages

Seth Morrison -
回帖数:13

Everytime I log in as admin all the pages are blank.  I manually go to admin/settings.php?section=debugging and it also displays blank.

No matter which page I go to, even specific pages manually typed in, I get a blank screen.

This is only occurring when logged in as admin.  If I use an account with lesser access everything is fine.

Any ideas?

回复Seth Morrison

Re: Blank Admin Pages

Ken Task -
Particularly helpful Moodlers的头像

Are you on a remotely hosted system that uses /admin in a URL to access control panels, etc.?  Little more detail as to server setup please.

Is there another user (other than admin) that has admin levels?  If so, login with that one and turn on debugging.  If there is not another user with that level, can you manually create one?

'spirit of sharing', Ken

回复Ken Task

Re: Blank Admin Pages

Seth Morrison -

Yes, this is remotely hosted on a LAMP server.  MySQL/PHP are both current, or are at least high enough to have the site running for months before this problem.

Yes, it uses /admin.

I do not have another user with admin levels.  How would I go about manually creating one?

I have student & teacher level accounts which all seem to work fine.

Thanks.

回复Seth Morrison

Re: Blank Admin Pages

Seth Morrison -

Still no ideas on this one?

How can I go about manually creating a new admin account.  I can do direct DB inserts but I want to be sure I insert all the correct values into the correct tables.

Thanks 微笑

回复Seth Morrison

Re: Blank Admin Pages

Ken Task -
Particularly helpful Moodlers的头像

If the site had been working before and you've made no changes nor upgrades recently, the issue may have been in-advertently created by your remote provider.

回复Ken Task

Re: Blank Admin Pages

Seth Morrison -

But what would cause an issue like this?  PHP/MySQL version update?

I have remembered that we had to do a full restore from backups on the site when I was out of town (someone else did it).  I am not sure if this issue was caused by that because I haven't needed to login as admin since then.  However, that being said, we have a dev site with a separate DB that is having the same issue (located on the same server).

To manually create an admin user, do I just create a new user and then change their roleid=1 and contextid=10 in the role_assignments table?

What values do I use exactly and where to I enter them?  I want to be sure I don't blow anything up.

Thanks again 微笑

回复Seth Morrison

Re: Blank Admin Pages

Rob Johnson -

This is not likely a problem with your admin account.  It is usually due to a plugin that is buggy or in conflict with your existing code.  Did any new plugins or themes get added recently?

You can add degugging code to your config.php file.  This should get you more information than a blank page.  You will find what to add here.

回复Rob Johnson

Re: Blank Admin Pages

Seth Morrison -

Thank you for the link.  I've tried manually configuring debugging and I'm still getting a blank page 伤心

There haven't been any new plugins or themes installed either.

回复Seth Morrison

Re: Blank Admin Pages

G. M. -

Hi Seth,

What moodle version are you using?

回复G. M.

Re: Blank Admin Pages

Seth Morrison -

I am using 1.9

回复Seth Morrison

Re: Blank Admin Pages

G. M. -

Hi Seth,

Here is the SQL command to insert an entry into the role assignments table (in M. 1.9.13+ build: 20110831) and assign the Administrator role to an existing user (userid=33), which I chose by making sure that he didn't have a global (system) role assigned (to avoid any problems).

INSERT INTO `mdl_role_assignments` ( `roleid` , `contextid` , `userid` , `hidden` ,
`timestart` , `timeend` , `timemodified` , `modifierid` , `enrol` , `sortorder` )
VALUES ( 1, 1, 33, 0, 1334293200, 0, 1334351421, 2, 'manual', 0 ) ;

回复G. M.

Re: Blank Admin Pages

Seth Morrison -

I gave this a try and the new user was also getting a blank screen.

So at least I've narrowed it down to the admin permission level - something with the role is preventing the user from seeing the pages... hmmm.

回复Seth Morrison

Re: Blank Admin Pages

Seth Morrison -

I'm catching on that nobody knows anything about this...

回复Seth Morrison

Re: Blank Admin Pages

Katrin Becker -

Here's what worked for me:

I did manage to turn on debugging and when I did it complained about a missing file in one of the themes I'd installed (rocket). Once I deleted that theme, it worked again.

It was not the theme my installation was set to, and I hadn't tried installing it at all yet.