Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Multiple Errors when Editor loads Admin Edit Posts view.

UserPost

2:00 pm
December 9, 2009


sant0sk1

Member

posts 2

1

I have a decent-sized WordPress install that I'm using for a CMS (45 users, many with their own role). So far this problem has only occurred for users with role "Editor":

First the app was running out of memory when they would access /wp-admin/edit.php (WordPress 2.8.4). The error was being reported from:

role-scoper_main.php on line 692

I increased PHPs and WP's memory limit from 32MB to 64MB, which resolved the memory issue, but now the page takes forever to load and results in this error:

Fatal error: Maximum execution time of 30 seconds exceeded 

Once again, this is in role-scoper_main.php on line 692. I've interrogated that line of code, but must say that without foundational knowledge on how the plugin works, I can't decipher whats going on there.

For now I have promoted those users from Editor to Administrator role (yikes!) and the error goes away. Any ideas what could be causing this?

I'd be happy to provide any debugging information that would be useful. Thanks!

2:25 pm
December 9, 2009


Kevin

Admin

posts 2402

2

sant0sk1 said:

Once again, this is in role-scoper_main.php on line 692.


So if you're running 1.0.8, the line in question is:

$rolereq_key = md5( serialize($reqd_caps) . serialize(array_keys($qualifying_roles)) . serialize($args) );

If so, please try inserting this just before it, and let me know if you see any difference:

if ( ! empty($user) )
   $args['user'] = $user->ID;

2:32 pm
December 9, 2009


sant0sk1

Member

posts 2

3

Hi Kevin-

Hmm, that seemed to solve it! I will continue to use the plugin and let you know if this created any other issues, but so far so good.

Timely response as well, I must say ;)


2:35 pm
December 9, 2009


Kevin

Admin

posts 2402

4

sant0sk1 said:

Hi Kevin-

Hmm, that seemed to solve it! I will continue to use the plugin and let you know if this created any other issues, but so far so good.

Timely response as well, I must say ;)



Thanks for reporting it. There was a lot of needless data conversion going on there. Apparantly your server was more bothered by it than most.


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin