Role Scoper Now Reactivatates After Update
Role Scoper 1.0.3.4 solves the mystery of plugin deactivation following use of the WordPress "update automatically" feature. More precisely, it causes Role Scoper to be successfully reactivated following that update.
For the technically curious… the failure was due to WordPress' detection of a supplemental Role Scoper file (version_notice_rs.php) as a main plugin file. This was due to the presence of '|Plugin Name:' in version_notice_rs.php, where it is used in a regular expression match to extract the plugin name for other plugins which may have Role Scoper extensions available. The WordPress function get_plugins() took that as proof of a "plugin file", and logged it ahead of role-scoper.php alphabetically. The WordPress function wp_update_plugin() assumes that the first logged "plugin file" is the one to re-activate. I solved this by moving version_notice_rs.php into a deeper subdirectory, as function get_plugins() only looks one level deep.
Note, the first time an auto-update is run, you may see the following nuisance error message:
The plugin role-scoper/admin/version_notice_rs.php has been deactivated due to an error: Plugin file does not exist.
Please ignore that message, which is simply a purging of the imaginary plugin out of WordPress' memory.
Those who have already activated Role Scoper 1.0.2 or higher do not need to run this update. The only other change is a correction to the Roles and Restrictions menu locations with WordPress 2.8.
Posted: May 8th, 2009 under News, Role Scoper, WordPress Plugins.
Comments: 9
Comments
Comment from Ramoonus
Time: May 9, 2009, 3:27 am
Nice work chap!
Comment from Ramon van Belzen
Time: May 17, 2009, 4:53 am
Once i activate Role Scoper in 2.8 beta 1, my admin page goes blank Ive found out that role scoper is the source.
Comment from Kevin
Time: May 18, 2009, 10:29 am
Hmm… I've installed 2.8 Beta 1, and not seeing any white screen or other problems thus far with Role Scoper.
Let's correspond about this more.
Comment from Beert
Time: May 25, 2009, 2:03 pm
Cant get into teh admin part of teh site
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/………./htdocs/www/wp-content/plugins/role-scoper/users-interceptor_rs.php on line 501
Comment from Tanner.
Time: June 5, 2009, 1:29 pm
Hey man. Users reg is defaulted to contributer — how do I allow contributers to view, upload to and use the media library? As of right now if I login as a contributer and view the library it SAYS there are 3 images, but I am unable to view or otherwise use them … help?
Thx.
Comment from dave
Time: June 17, 2009, 12:53 am
it seem RS in-compatible with wordpress 2.8, will wait for latest updated and WP 2.8 compatible RS. Cheers!
Comment from Kevin
Time: June 17, 2009, 1:10 pm
Beert,
Your combination of WP core + theme + other plugins (including Role Scoper) has exceeded your web host's memory limit. I have discussed RS memory usage in other threads, and it is currently optimized as much as possible.
Comment from Kevin
Time: June 17, 2009, 1:14 pm
Tanner,
I suggest installing Role Manager plugin, and add the upload_files capability to the Contributor role.
The other option is to modify the RS Role Definitions (Roles > Options) to include the upload_files capability for the Post Contributor role. Then go to Roles > General and assign the group [WP Contributor] the role of Post Contributor.
Comment from Greg
Time: June 22, 2009, 8:26 am
Version 2.8 Beta 1 installed with no problems! Now I will enjoy with pleasure!
Write a comment
(But if your comment is a usage question, bug report or feature request, please post it in the Support Forum instead.)