I’m also having trouble with this – I’m getting the Cannot read property ‘role_name’ of undefined maven-member-roles.js?ver=1.0.35:141
Is there a way to associate a WP role with a MM role? There doesn’t seem to be on the MM roles page, and WP doesn’t have GUI editable roles as far as I can tell.
Here is the relevant section of the HAR – the response parses as ‘0’:
{
“startedDateTime”: “2014-02-16T22:34:07.647Z”,
“time”: 2195.5559253692627,
“request”: {
“method”: “POST”,
“url”: “https://www.myserver.tld/wp-admin/admin-ajax.php”,
“httpVersion”: “HTTP/1.1”,
“headers”: [
{
“name”: “Pragma”,
“value”: “no-cache”
},
{
“name”: “Origin”,
“value”: “https://myserver.tld”
},
{
“name”: “Accept-Encoding”,
“value”: “gzip,deflate,sdch”
},
{
“name”: “Host”,
“value”: “www.myserver.tld”
},
{
“name”: “Accept-Language”,
“value”: “en-US,en;q=0.8”
},
{
“name”: “User-Agent”,
“value”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36”
},
{
“name”: “Content-Type”,
“value”: “application/x-www-form-urlencoded; charset=UTF-8”
},
{
“name”: “Accept”,
“value”: “application/json, text/javascript, */*; q=0.01”
},
{
“name”: “Cache-Control”,
“value”: “no-cache”
},
{
“name”: “Referer”,
“value”: “https://myserver.tld/wp-admin/admin.php?page=maven_member-section-wizard”
},
{
“name”: “Connection”,
“value”: “keep-alive”
},
{
“name”: “Content-Length”,
“value”: “41”
}
],
“queryString”: [],
“cookies”: [],
“headersSize”: 611,
“bodySize”: 41,
“postData”: {
“mimeType”: “application/x-www-form-urlencoded; charset=UTF-8”,
“text”: “action=maven_roles_add&role_name=somerole”,
“params”: [
{
“name”: “action”,
“value”: “maven_roles_add”
},
{
“name”: “role_name”,
“value”: “somerole”
}
]
}
},
“response”: {
“status”: 200,
“statusText”: “OK”,
“httpVersion”: “HTTP/1.1”,
“headers”: [
{
“name”: “Date”,
“value”: “Sun, 16 Feb 2014 22:34:09 GMT”
},
{
“name”: “Content-Encoding”,
“value”: “gzip”
},
{
“name”: “X-Content-Type-Options”,
“value”: “nosniff”
},
{
“name”: “Connection”,
“value”: “Keep-Alive”
},
{
“name”: “Vary”,
“value”: “Accept-Encoding”
},
{
“name”: “Content-Length”,
“value”: “21”
},
{
“name”: “Pragma”,
“value”: “no-cache”
},
{
“name”: “Server”,
“value”: “Apache”
},
{
“name”: “X-Frame-Options”,
“value”: “SAMEORIGIN”
},
{
“name”: “Content-Type”,
“value”: “text/html; charset=UTF-8”
},
{
“name”: “Access-Control-Allow-Origin”,
“value”: “https://myserver.tld”
},
{
“name”: “Cache-Control”,
“value”: “no-cache, must-revalidate, max-age=0”
},
{
“name”: “Access-Control-Allow-Credentials”,
“value”: “true”
},
{
“name”: “X-Robots-Tag”,
“value”: “noindex”
},
{
“name”: “Keep-Alive”,
“value”: “timeout=2, max=100”
},
{
“name”: “Expires”,
“value”: “Wed, 11 Jan 1984 05:00:00 GMT”
}
],