We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Runway, Forms, Members

Member Profile Edits Not Saving

Recently been trying to set up the members app - porting an install from LAMP to ISS ( I know, I know ).

  • Making a profile edit - we don't get redirected to the success message on the same page.
  • Member profile details don't appear in the profile view for the member, which suggests they are not getting saved to the database on edit.
  • I also noticed that the profile form isn't appearing in the members admin area.

This all works on my local copy - I feel like I might be missing something simple...

My form html, debug and diagnostic report are below...

Form HTML

<perch:form id="profile" method="post" app="perch_members">



    <div>
        <perch:label for="bio">Who are you? Add a short bio description...</perch:label>
        <perch:input type="textarea" id="bio" label="Your Bio" />
        <perch:error for="bio" type="required">Please add a short bio</perch:error>
    </div>

    <div>
        <perch:label for="skill">Your Skills and Expertise, comma seperated list</perch:label>
        <perch:input type="text" id="skill" label="Your Skills" placeholder="analytical development, characterisation, validation" />
        <perch:error for="skill" type="required">Please add some skills</perch:error>
    </div>


    <div>
        <perch:input type="submit" class="button radius small" value="Save" />
        <perch:input type="hidden" id="token" />
    </div>

    <perch:success>
        <div class="alert-zone alert-box success"><div class="alert-zone-text">Your details have been updated. <a class="meta-alt" href="/staff/profile">View Your Profile</a></div></div>

    </perch:success>

</perch:form>

Diagnostic Report

Perch Runway: 2.8.31
Production mode: Development (10)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), collection_1 (2.8.31), perch_events (1.9.2), perch_blog (4.6), perch_forms (1.8.3), perch_gallery_extended (2.8.6), collection_2 (2.8.31), perch_members (1.4.2)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (10), perch2_blog_comments (0), perch2_blog_index (17589), perch2_blog_posts (491), perch2_blog_posts_to_tags (17), perch2_blog_sections (0), perch2_blog_tags (11), perch2_categories (25), perch2_category_counts (7), perch2_category_sets (3), perch2_collection_index (8541), perch2_collection_items (418), perch2_collection_revisions (110), perch2_collections (2), perch2_content_index (696), perch2_content_items (212), perch2_content_regions (8), perch2_events (51), perch2_events_categories (4), perch2_events_to_categories (50), perch2_forms (0), perch2_forms_responses (0), perch2_gallery_albums (11), perch2_gallery_albums_to_tags (41), perch2_gallery_image_versions (5077), perch2_gallery_images (470), perch2_gallery_images_to_tags (2152), perch2_gallery_smart_albums (15), perch2_gallery_tags (756), perch2_members (369), perch2_members_forms (0), perch2_members_member_tags (0), perch2_members_sessions (110), perch2_members_tags (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (24), perch2_page_templates (34), perch2_pages (23), perch2_resource_log (2402), perch2_resource_tags (24), perch2_resources (1700), perch2_resources_to_tags (48), perch2_settings (50), perch2_user_passwords (0), perch2_user_privileges (48), perch2_user_role_privileges (95), perch2_user_roles (9), perch2_users (16)
Users: 16
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_blog',
        'perch_members',
        'perch_gallery_extended',
        'perch_forms',
        'perch_events',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_events: update_category_counts (60 mins)
Editor plug-ins: markitup
H1: ebd7366cfc29c68f634200d5d03bf774
L1: 20d0668e70f29399daa6cb8340dfc5b2
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.7.6: done
on_sale_version: 2.8.31
update_2.7.8: done
perch_blog_update: 5.0
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_update: 2.8.5
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
perch_members_login_page: /members/login.php?r={returnURL}
perch_gallery_basicUpload: 0
update_2.7.10: done
logoPath: /login/resources/1425049619_CPI_Logo.png
update_2.8: done
update_runway_2.8.7: done
latest_version: 2.8.15
perch_blog_post_url: /feed/post/{postSlug}
update_runway_2.8.8: done
perch_gallery_extended_update: 2.8.5
update_runway_2.8.13: done
update_runway_2.8.17: done
perch_events_detail_url: /event/{eventSlug}
perch_gallery_extended_bucket_mode: single
perch_gallery_extended_bucket: default
perch_gallery_extended_basicUpload: 0
perch_events_update: 1.8
update_runway_2.8.31: done
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /Users/danlee/Sites/Work/bell
PERCH_DB_USERNAME: marketing
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: bell_live
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: dan.lee@uk-cpi.com
PERCH_EMAIL_FROM_NAME: Dan Lee
PERCH_LOGINPATH: /login
PERCH_PATH: C:\inetpub\wwwroot\login
PERCH_CORE: C:\inetpub\wwwroot\login\core
PERCH_RESFILEPATH: C:\inetpub\wwwroot\login\resources
PERCH_RESPATH: /login/resources
PERCH_HTML5: 1
PERCH_PRODUCTION_MODE: 10
PERCH_YOUTUBE_API_KEY: AIzaSyDmHVMlNX7MHnm8PdE8Fl_k6DQZ_PBs0dM
PERCH_AD_ACCOUNT_SUFFIX: @uk-cpi.com
PERCH_AD_DOMAIN_CONTROLLERS: uk-cpi.com
PERCH_AD_BASE_DN: OU=sites,OU=CPI,dc=uk-cpi,dc=com
PERCH_AD_ADMIN_USERNAME: intranet.ldap
PERCH_AD_ADMIN_PASSWORD: nMBmY9HxujNY5Bqf
PERCH_DEBUG: 1
PERCH_RUNWAY: 1
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: C:\inetpub\wwwroot\login\templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.6.0
Zend: 2.6.0
OS: WINNT
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: f373ea5dd5538761406a8022a4b8a374418b240e $
MySQL server: 5.5.42
Free disk space: 112.00 GB
Extensions: Core, bcmath, calendar, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, openssl, SimpleXML, wddx, xml, xmlreader, xmlwriter, cgi-fcgi, mysql, mysqli, mbstring, gd, gettext, curl, exif, xmlrpc, Phar, soap, pdo_mysql, pdo_sqlite, imap, tidy, pdo_sqlsrv, sqlsrv, ldap, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 30M
PHP max form post size: 40M
PHP memory limit: 128M
Total max uploadable file size: 30M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PROCESSOR_ARCHITEW6432: AMD64
_FCGI_X_PIPE_: \\.\pipe\IISFCGI-cbc2bced-8c1a-45f6-aec6-153af94ae4a9
PHP_FCGI_MAX_REQUESTS: 10000
PHPRC: C:\Program Files (x86)\PHP\v5.6
ALLUSERSPROFILE: C:\ProgramData
APPDATA: C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG: C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config
APP_POOL_ID: DefaultAppPool
CommonProgramFiles: C:\Program Files (x86)\Common Files
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
CommonProgramW6432: C:\Program Files\Common Files
COMPUTERNAME: CPI03-IS04
ComSpec: C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK: NO
LOCALAPPDATA: C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS: 1
OS: Windows_NT
Path: C:\Program Files (x86)\PHP\v5.6;C:\Program Files\Internet Explorer;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.5\bin;
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 3e04
ProgramData: C:\ProgramData
ProgramFiles: C:\Program Files (x86)
ProgramFiles(x86): C:\Program Files (x86)
ProgramW6432: C:\Program Files
PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC: C:\Users\Public
SystemDrive: C:
SystemRoot: C:\Windows
TEMP: C:\Windows\TEMP
TMP: C:\Windows\TEMP
USERDOMAIN: UK-CPI
USERNAME: CPI03-IS04$
USERPROFILE: C:\Windows\system32\config\systemprofile
windir: C:\Windows
ORIG_PATH_INFO: /login/core/settings/diagnostics/index.php
URL: /login/core/settings/diagnostics/index.php
SERVER_SOFTWARE: Microsoft-IIS/8.5
SERVER_PROTOCOL: HTTP/1.1
SERVER_PORT: 80
SERVER_NAME: intranet-dev.uk-cpi.com
SCRIPT_NAME: /login/core/settings/diagnostics/index.php
SCRIPT_FILENAME: C:\inetpub\wwwroot\login\core\settings\diagnostics\index.php
REQUEST_URI: /login/core/settings/diagnostics/?extended
REQUEST_METHOD: GET
REMOTE_USER: UK-CPI\dan.lee
REMOTE_PORT: 56356
REMOTE_HOST: 10.24.10.67
REMOTE_ADDR: 10.24.10.67
QUERY_STRING: extended
PATH_TRANSLATED: C:\inetpub\wwwroot\login\core\settings\diagnostics\index.php
LOGON_USER: UK-CPI\dan.lee
LOCAL_ADDR: 10.22.86.15
INSTANCE_META_PATH: /LM/W3SVC/1
INSTANCE_NAME: DEFAULT WEB SITE
INSTANCE_ID: 1
HTTPS: off
GATEWAY_INTERFACE: CGI/1.1
DOCUMENT_ROOT: C:\inetpub\wwwroot
AUTH_USER: UK-CPI\dan.lee
AUTH_TYPE: NTLM
APPL_PHYSICAL_PATH: C:\inetpub\wwwroot\
APPL_MD_PATH: /LM/W3SVC/1/ROOT
WEBSOCKET_VERSION: 13
IIS_UrlRewriteModule: 7.1.0871.0
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
HTTP_REFERER: http://intranet-dev.uk-cpi.com/login/core/settings/diagnostics/
HTTP_HOST: intranet-dev.uk-cpi.com
HTTP_COOKIE: __utma=136563892.1720010777.1463495111.1475049546.1475057431.135; __utmc=136563892; __utmz=136563892.1473950402.123.12.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.1720010777.1463495111; cmsa=1; p_m=28ba01b70da8eb3b2cd2fd200136266e44e5ef0b; _pk_id.1.34ce=8c9c7974b9e2c2d2.1474898752.8.1475141430.1475138839.; _pk_ses.1.34ce=*; PHPSESSID=vgfv717i1dfmhcbu8tang1mo20
HTTP_AUTHORIZATION: NTLM TlRMTVNTUAADAAAAGAAYAH4AAAAYABgAlgAAAAAAAABAAAAADgAOAEAAAAAwADAATgAAAAAAAAAAAAAABYIIAGQAYQBuAC4AbABlAGUARABhAG4AcwAtAE0AYQBjAEIAbwBvAGsALQBQAHIAbwAtADIALgBsAG8AYwBhAGwAnG6m31qYOf8AAAAAAAAAAAAAAAAAAAAANV9U7EDx2kodh4ea+6Zwyx1yn+GON5WJ
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_CONNECTION: keep-alive
FCGI_ROLE: RESPONDER
PHP_SELF: /login/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1475141462.5422
REQUEST_TIME: 1475141462

Debug

Time    Δ   Debug Message
0.0882  0   [36] SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate FROM perch2_pages p LEFT JOIN perch2_page_routes pr ON p.pageID=pr.pageID ORDER BY pr.routeOrder ASC, p.pagePath ASC
1.1174  1.0292  Matched page: /staff/edit-profile, so not using routes.
1.1175  0.0001  Using master page: \templates\pages\members\profile.php
1.1776  0.0601  [1] SELECT * FROM perch2_members WHERE memberAuthType='AD' AND memberPassword IS NOT NULL AND memberEmail='Dan.Lee@uk-cpi.com' AND memberStatus='active' AND (memberExpires IS NULL OR memberExpires>'2016-09-29 10:29:36') LIMIT 1
1.1788  0.0011  [0] SELECT t.tag FROM perch2_members_tags t, perch2_members_member_tags mt WHERE t.tagID=mt.tagID AND mt.memberID='71' AND (mt.tagExpires IS NULL OR mt.tagExpires>'2016-09-29 10:29:00')
1.1796  0.0008  INSERT INTO perch2_members_sessions(sessionID,sessionExpires,sessionHttpFootprint,memberID,sessionData) VALUES('28ba01b70da8eb3b2cd2fd200136266e44e5ef0b','2016-10-04 10:29:36','4194b2f43a1e129104e3d917b02124a69c17355b','71','a:25:{s:5:\"title\";s:1:\"-\";s:10:\"first_name\";s:3:\"Dan\";s:9:\"last_name\";s:3:\"Lee\";s:4:\"role\";s:22:\"Web Designer/Developer\";s:5:\"phone\";s:13:\"01325 376 821\";s:10:\"start_date\";s:10:\"2016-09-28\";s:10:\"leave_date\";s:10:\"2016-09-28\";s:8:\"location\";N;s:4:\"team\";s:19:\"Strategic Marketing\";s:8:\"platform\";s:20:\"Strategy and Futures\";s:8:\"username\";s:7:\"Dan.Lee\";s:7:\"from_ad\";s:4:\"true\";s:9:\"full_name\";s:7:\"Dan Lee\";s:12:\"display_name\";s:7:\"Dan Lee\";s:6:\"mobile\";s:11:\"07919698678\";s:7:\"company\";s:3:\"CPI\";s:8:\"memberID\";s:2:\"71\";s:14:\"memberAuthType\";s:2:\"AD\";s:12:\"memberAuthID\";s:2:\"71\";s:11:\"memberEmail\";s:18:\"Dan.Lee@uk-cpi.com\";s:12:\"memberStatus\";s:6:\"active\";s:13:\"memberCreated\";s:19:\"2010-10-27 08:12:07\";s:13:\"memberExpires\";N;s:4:\"tags\";a:0:{}s:5:\"token\";s:40:\"4dcd100d5a78646c25204f83c7cf6984a16a5c8b\";}')
1.1847  0.0051  DELETE FROM perch2_members_sessions WHERE sessionExpires < '2016-09-29 10:29:36'
1.1857  0.001   [1] SELECT * FROM perch2_members_sessions WHERE sessionID='28ba01b70da8eb3b2cd2fd200136266e44e5ef0b' AND sessionHttpFootprint='4194b2f43a1e129104e3d917b02124a69c17355b' AND sessionExpires>'2016-09-29 10:29:36' LIMIT 1
1.1863  0.0006  User is logged in
1.1865  0.0002  [1] SELECT * FROM perch2_members_sessions WHERE sessionID='28ba01b70da8eb3b2cd2fd200136266e44e5ef0b' AND sessionHttpFootprint='4194b2f43a1e129104e3d917b02124a69c17355b' AND sessionExpires>'2016-09-29 10:29:36' LIMIT 1
1.187   0.0005  User is logged in
1.1917  0.0047  [1] SELECT * FROM perch2_pages WHERE pagePath='/staff/edit-profile' LIMIT 1
1.1956  0.0039  [42] SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
1.2055  0.0099  
Array
(
    [all] => login
)
1.2101  0.0047  [1] SELECT setID FROM perch2_category_sets WHERE setSlug='feed' LIMIT 1
1.2107  0.0005  [7] SELECT main.* FROM perch2_categories main WHERE 1=1 AND setID=2 ORDER BY catTreePosition ASC
1.2125  0.0019  [7] Using template: \templates\categories\menu_feed.html
1.2169  0.0044  [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='System Links' AND (regionPage='/staff/edit-profile' OR regionPage='*')
1.2175  0.0006  [13] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=5 AND idx.itemRev=29)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval ASC
1.2335  0.016   [13] Using template: \templates\content\cpi\systemlinks.html
1.2391  0.0056  Using template: \templates\search\search-form.html
1.4105  0.1714  Using template: \templates\members\forms\profile.html
1.4135  0.003   Request time: 1.4135
1.4135  0   Process time: 1.4126
1.4135  0   Memory: 4.1115
Dan Lee

Dan Lee 1 points

  • 2 years ago
Drew McLellan

Drew McLellan 2637 points
Perch Support

You're getting a validation issue of some kind:

[all] => login