Forum

Thread tagged as: Question, Problem, Error

Member Profile Saving Issue

My member profile information is not saving from the member profile page. I can update member information in perch admin, but the profile.html form will not submit, the page simply refreshes. Is this an issue you've seen before?

Jared Medley

Jared Medley 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostics Report and form template?

PERCH INFORMATION

Perch Runway: 2.8.18
Production mode: Production (100)
Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_blog (5.0), perch_events (1.9.2), perch_forms (1.8.3), perch_gallery (2.8.6), perch_mailchimp (2.0.1), perch_comments (1.2), perch_members (1.4)
DB driver: PDO
DB tables: perch2_backup_plans, perch2_backup_resources, perch2_backup_runs, perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_collection_index, perch2_collection_items, perch2_collection_revisions, perch2_collections, perch2_comments, perch2_comments_votes, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_events, perch2_events_categories, perch2_events_to_categories, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_mailchimp_campaigns, perch2_mailchimp_history, perch2_mailchimp_log, perch2_mailchimp_stats, perch2_mailchimp_subscribers, perch2_members, perch2_members_forms, perch2_members_member_tags, perch2_members_sessions, perch2_members_tags, perch2_navigation, perch2_navigation_pages, perch2_page_routes, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_members',
        'perch_events',
        'perch_forms',
        'perch_comments',
        'perch_gallery',
        'perch_mailchimp',
    );
Scheduled tasks for perch_comments: delete_spam_comments (1440 mins)
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
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: 53cdad1f52a88a5414064adf060e4422
L1: 3ecb54642a09e94bc808d3d2acb24d80
headerColour: #ffffff
content_singlePageEdit: 0
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.14: done
latest_version: 2.8.15
on_sale_version: 2.8.18
headerScheme: light
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /admin/resources/logo.png
update_2.8.15: done
perch_members_update: 1.4
perch_comments_akismet_key:
perch_comments_max_spam_days: 0
perch_members_login_page: /account/login.php?r={returnURL}
perch_mailchimp_api_key:
perch_mailchimp_list_id:
perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug}
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_events_detail_url: /events/event.php?s={eventSlug}
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
perch_blog_comment_notify: 0
perch_gallery_basicUpload: 0
perch_blog_update: 5.0
perch_events_update: 1.8
perch_gallery_update: 2.8.5
perch_mailchimp_secret: dfa9a7d7f3435a9fc6431acfaf38695a
perch_mailchimp_update: 2.0
update_runway_2.8.18: done
perch_blog_site_name:
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: handiqui_handi
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: handiqui_master
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: jaredmedley@gmail.com
PERCH_EMAIL_FROM_NAME: Jared Medley
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/handiquilter/public_html/admin
PERCH_CORE: /home/handiquilter/public_html/admin/core
PERCH_RESFILEPATH: /home/handiquilter/public_html/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_SITEPATH: /
PERCH_YOUTUBE_API_KEY: AIzaSyD0m4AelQ-zYRGWM1qknG5p3gVlJVoqg8Q
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_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/handiquilter/public_html/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.17
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $
MySQL server: 5.5.46-cll
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysql, mysqli, mysqlnd, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, pdo_mysql, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 50M
PHP max form post size: 10M
PHP memory limit: 128M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/handiquilter/public_html
DOCUMENT_ROOT: /home/handiquilter/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_CACHE_CONTROL: max-age=0
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: cmsa=1; p_m=d65ede0600a06da286470c63ff3fc3673b099b51; cmssb=0; PHPSESSID=c714737f3321a347354a94a457fd3365
HTTP_HOST: handiquilter.me
HTTP_REFERER: https://handiquilter.me/admin/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36
HTTP_VIA: 1.1 hqmain.handiquilter.com (squid/3.1.10)
HTTP_X_FORWARDED_FOR: 192.168.1.109
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 50.247.57.33
REMOTE_PORT: 40302
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/handiquilter/public_html/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SERVER_ADDR: 192.163.234.183
SERVER_ADMIN: webmaster@handiquilter.me
SERVER_NAME: handiquilter.me
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VmcE-cCj6rcAAGJvWxEAAAGQ
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1449592061.7209
REQUEST_TIME: 1449592061

And here is the form template:

<perch:form id="profile" method="post" app="perch_members">
<div class="form-group">
    <div class="form-group">
        <perch:label for="first_name">First name</perch:label>
        <perch:input type="text" id="first_name" required="true" label="First name" class="form-control" />
        <perch:error for="first_name" type="required">Please add a your name</perch:error>
    </div>

    <div class="form-group">
        <perch:label for="last_name">Last name</perch:label>
        <perch:input type="text" id="last_name" required="true" label="Last name" class="form-control" />
        <perch:error for="last_name" type="required">Please add a your name</perch:error>
    </div>

    <div class="form-group">
        <perch:label for="email">Email</perch:label>
        <perch:input type="email" id="email" required="true" placeholder="you@company.com" class="form-control" />
        <perch:error for="email" type="required">Please add a your email address</perch:error>
        <perch:error for="email" type="format">Please check a your email address</perch:error>
    </div>

    <div class="form-group">
        <perch:label for="phone">Phone</perch:label>
        <perch:input type="text" id="phone" class="form-control" />
    </div>

    <div class="form-group">
        <perch:input type="submit" value="Save" class="btn btn-primary" />
        <perch:input type="hidden" id="token" />
    </div>

    <perch:success>
    <p>Your details have been updated.</p>
</perch:success>
</div>
</perch:form>

Also, the registration form works, so I'm assuming it's something to do with the profile page itself, since the profile and change password form aren't working. Thanks for the help!

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you turn on debug for the page and submit the form, what does it output?

Debug Message
SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
Array
(
    [all] => login
)
SELECT * FROM perch2_members_sessions WHERE sessionID='903b3347553c4948c9b6aba6a463775fadc5fde6' AND sessionHttpFootprint='35897644a523889c1a3c1d3c50eec1a5b46bff35' AND sessionExpires>'2015-12-09 00:04:26' LIMIT 1
User is logged in
SELECT * FROM perch2_pages WHERE pagePath='/account/profile.php' LIMIT 1
SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='Company Information' AND (regionPage='/account/profile.php' OR regionPage='*')
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=2 AND idx.itemRev=12)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID ORDER BY sortval ASC
Using template: /templates/content/_headerLogo.html
Using template: /templates/search/search-form.html
SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='Machines' AND (regionPage='/machines/index.php' OR regionPage='*')
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=4 AND idx.itemRev=82)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID ORDER BY sortval ASC
Using template: /templates/content/_machineList.html
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=4 AND idx.itemRev=82)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID ORDER BY sortval ASC
Using template: /templates/content/_machineListMobile.html
Using template: /templates/members/forms/profile.html
Using template: /templates/members/forms/password.html
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=2 AND idx.itemRev=12)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID ORDER BY sortval ASC
Using template: /templates/content/_companyInfoFooter.html
Drew McLellan

Drew McLellan 2638 points
Perch Support

You're getting a form validation error being thrown - I'll have to take a look and see what would case that particular one.