[pmwiki-users] fox permissions problem after upgrade

adam overton a at plus1plus1plus.org
Tue Jan 15 18:43:02 CST 2013


hi there
my host just upgraded their server from PHP 5.2.x to 5.3.19
and so as a result i then updated a website from pmwiki v.2.2.2 to 2.2.46. so far everything seems to work fine except that some of my fox comment boxes are not working. regular comments that post to a preexisting page seem to work fine, but other comments that *create* pages using name Group.20130115 are not getting created.

i'm wondering if anyone off the top of their head might know of some major or minor change in the PmWiki distro that might be causing this to fail. i get no php error messages.

a couple things about my setup:

i just updated my fox installation by doing the following:
upgraded fox.php    		2009-05-15 => 2012-10-25
upgraded foxedit.php		2009-05-11 => 2012-02-25
left foxdelete.php alone	2008-07-12 (current)
left foxnotify.php alone	2008-05-19 (i made a variation on this version)

i also re-investigated all my $FoxPagePermissions and everything seems like it should be in order. these settings have worked for years:

// FOX PERMISSIONS //
	if (CondAuth($pagename,'admin')) {
		$FoxPagePermissions['*.*'] = 'all'; 
	} 
	elseif (CondAuth($pagename,'edit')) {
		$FoxPagePermissions['*.*'] = 'add,delete'; 
		$FoxPagePermissions['$group.*'] = 'all';  // replace necessary to be able to delete pages...
	} 
	elseif (CondAuth($pagename,'read')) {
		# try only allowing for either Index page or current ScorePage
		if ( !preg_match($coregroups_preg,$group) && ( $name=="Index" || PageExists($pagename) ) ) {
			$FoxPagePermissions['$group.$name'] = 'add,delete';
		} else { # coregroups...
			$FoxPagePermissions['*.*'] = 'add';
		}
		$FoxPagePermissions['FoxNotifyLists.*'] = 'add,delete'; // hans suggestion to permit deletion of notification emails...
		$FoxPagePermissions['*.20??????'] = 'add,delete'; ## permits ability to delete calendar events (delete link, however, is only allowed to edit-users and those with the same sessionID as when the comment was created...
		$FoxPagePermissions['*.19??????'] = 'add,delete'; ## permits ability to delete calendar events (delete link, however, is only allowed to edit-users and those with the same sessionID as when the comment was created...
	}


any thoughts based on this?
happy to send more details if this is too cryptic.
thanks for the help.
adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20130115/0ed189f8/attachment.html>


More information about the pmwiki-users mailing list