HELP - Manual Group / User permissions won't save - throw javascript error/alert

Permalink
I am not able to add users or groups to manually defined permissions for pages.

I am able to reach the "Add User/Group" dialog box from the "Set Permissions" screen with no problems.

When I click the name of a group to add to the permissions table I get two javascript alert dialogs. The first alert displays the gID of the group, the second alert displays the plain text name of the group. The group is not added to the permissions table. This also happens with the uID and username when I attempt to add a user.

Viewing the source of the "Add User/Group" dialog box dialog led me to the function name ‘ccm_triggerSelectGroup’.

Searching the source for this name turns up a number of occurrences – among them the function below:

File: /concrete/js/ccm.ui.js
Line: 628

ccm_triggerSelectGroup = function(gID, gName) {
   alert(gID);
   alert(gName);
}




This appears to be what is running rather than this other occurrence of that function name – which appears to be what needs to run to correctly add a user/group to the permissions table.

File: /concrete/elements/collection_permissions.php
Line : 79

function ccm_triggerSelectGroup(gID, gName) {
         togglePermissionsGrid('permissions', true);
         // we add a row for the selected group
         rowValue = 'gID:' + gID;
         rowText = gName;
         existingRow = document.getElementById("_row:" + rowValue);
         if (rowValue && (existingRow == null)) {
            tbl = document.getElementById("ccmPermissionsTablePage");         
            row = tbl.insertRow(-1); // insert at bottom of table. safari, wtf ?                            
            row.id = "_row:" + rowValue;
            ccm_setupGridStriping('ccmPermissionsTablePage');
            cells = new Array();
            target = 10;
            for (i = 0; i < target; i++) {
               cells[i] = row.insertCell(i);

The "Add User/Group" dialog box works fine on the “Access” screens for the sitemap and file manager. I am able to successfully add new groups to each of these screens with no problems.

I have not made any modifications to the core. I am running the most recent version.

I have 9 add-ons currently configured for this installation:

Accordion Menu (1.5)
Add Multiple Pages (1.2)
Document Library (1.5.2)
Extended Form (2.0)
Gallery (1.7.0)
Slider Overlay (1.0.1)
Superfish (1.1.4)
Ticker ()
Trans Marine Save Area To Pdf (0.9.3).


Basic Things I have Tried:
Numerous browsers – all with cache + cookies cleared
Removing add-ons
Replacing the /concrete core fileset with fresh files
Changing themes

More Complex Things I have Tried:
I setup a separate clean install of c5 and pointed it at a duplicate of my site’s database. This install has no add-ons, custom themes, etc. The same issue continues.

(On the clean install) – switching to basic permissions. When I attempt to adjust permissions I do get the listing of groups + checkboxes. If I click the checkbox for a new group and then attempt to save the dialog hangs.

Switching back to advanced permissions – same issue.

I commented out the js function that pops up the gID and Group name in alerts. When I click save the alerts do not appear – but the permissions change is not saved and the dialog does not disappear.

Some Questions:

Is there any means for me to wipe all content permissions and start over? The permissions are not complex and this would not be a real data loss.

Is there any means to insure that all traces of all add-ons are removed from my database? A brief review of the database suggests that records/tables from add-ons may remain even after they’ve been uninstalled.

Is there a way to cleanly move ONLY the page content into a fresh installation and not pull any of the add-on / permissions / configuration data along with it? I am comfortable working with the data table by table.

Any help or suggestions would be greatly appreciated.

 
pds replied on at Permalink Reply
FIGURED THIS OUT:

This issue was being caused by an apostrophe in a Page Type name.

http://www.concrete5.org/community/forums/customizing_c5/advanced-p...