Forum

Thread tagged as: Problem, Installation, Members

Members App Registration Form Failing

I'm trying to set up a basic members area for a website. I've installed the app and have a Members area in the Perch admin. I've copied the basic registration form from the docs and then added it to the page which will act as the sign up, however when I enter some details in the form to test it, the registration isn't working. The form is not registering in the members area of the admin interface, and no member is listed under members. When I've filled in the form and clicked the register button, the page refreshes but nothing seems to happen, it loads the page as if the form has never been submitted and no errors or anything shows in debug.

How can I work out why this is failing?

Edit: I should add, this is all on my local copy running under MAMP with php 7.2.8.

Phil Bowell

Phil Bowell 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics report?

Hi Drew, sorry somehow missed your reply.

Diagnostics are:

Basic

Perch: 3.1.2, PHP: 7.2.8, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_blog (5.6.1), perch_forms (1.12), chirp_seo (1.3.3), perch_members (1.6.4)
App runtimes: <?php $apps_list = array( 'perch_blog', 'perch_forms', 'chirp_seo', 'perch_members' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/Phil/Sites/cmj/perch
PERCH_CORE: /Users/Phil/Sites/cmj/perch/core
PERCH_RESFILEPATH: /Users/Phil/Sites/cmj/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 8M, Memory: 128M, Total max file upload: 8M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: cmj.test
DOCUMENT_ROOT: /Users/Phil/Sites/cmj
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Extended

Perch: 3.1.2
Production mode: Production (100)
Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_blog (5.6.1), perch_forms (1.12), chirp_seo (1.3.3), perch_members (1.6.4)
DB driver: PDO
DB tables: perch2_blog_authors (13), perch2_blog_comments (254), perch2_blog_index (8780), perch2_blog_posts (217), perch2_blog_posts_to_tags (65), perch2_blog_sections (2), perch2_blog_tags (54), perch2_blog_webmention_queue (0), perch2_blogs (1), perch2_categories (24), perch2_category_counts (6), perch2_category_sets (3), perch2_chirp_seo (26), perch2_chirp_seo_scores (27), perch2_content_index (30869), perch2_content_items (2327), perch2_content_regions (140), perch2_events (36), perch2_events_categories (6), perch2_events_to_categories (43), perch2_forms (3), perch2_forms_responses (36), perch2_mailchimp_campaigns (2), perch2_mailchimp_imports (1), perch2_mailchimp_lists (4), perch2_mailchimp_subscribers (601), perch2_mailchimp_subscriptions (601), perch2_mailchimp_webhooks (2), perch2_members (0), perch2_members_forms (0), perch2_members_member_tags (0), perch2_members_sessions (0), perch2_members_tags (0), perch2_menu_items (13), perch2_navigation (2), perch2_navigation_pages (26), perch2_page_templates (1), perch2_pages (49), perch2_resource_log (3238), perch2_resource_tags (58), perch2_resources (1565), perch2_resources_to_tags (128), perch2_settings (57), perch2_shop_categories (3), perch2_shop_log (102), perch2_shop_orders (101), perch2_shop_product_options (0), perch2_shop_products (29), perch2_shop_products_to_categories (29), perch2_user_passwords (3), perch2_user_privileges (51), perch2_user_role_privileges (45), perch2_user_roles (5), perch2_users (11)
Users: 11
App runtimes:
<?php
    $apps_list = array(
    'perch_blog',
        'perch_forms',
        'chirp_seo',
        'perch_members'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins: markitup
H1: 0aefb7288532d5862fa038b5aa5fcd38
L1: 168b6afef3281b294b7f4be65c16ee9e
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: https://www.cmj.org.uk
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.4: done
latest_version:
on_sale_version:
update_2.8.6: done
perch_blog_update: 5.6
perch_blog_post_url: /{sectionSlug}/post.php?s={postSlug}
headerScheme: light
perch_blog_slug_format: {postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 1
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
logoPath: /perch/resources/cmj-logo.png
update_2.8.7: done
perch_events_update: 1.8
update_2.8.8: done
update_2.8.13: done
perch_members_login_page: /members/login.php?r={returnURL}
perch_events_detail_url: /events/event.php?s={eventSlug}
update_2.8.15: done
perch_shop_paypal_email: alanb@cmj.org.uk
perch_shop_product_url: /shop/product.php?s={productSlug}
perch_shop_display_oos: 0
update_2.8.16: done
update_2.8.20: done
update_2.8.24: done
update_2.8.31: done
update_2.8.34: done
update_3.0.13: done
perch_mailchimp_api_key: 0212fe9ff22243636604273b9471fb98-us16
perch_mailchimp_campaign_url: /mailchimp/campaign/{campaignSlug}
sidebar_back_link: 0
keyboardShortcuts: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
perch_blog_webmention_tx: 0
perch_blog_webmention_rx: 0
perch_mailchimp_secret: d687616
update_3.1.1: done
chirp_update: 1.3.3
chirp_seo_license_key: V78RL-S8LRM-M1UII-ZRAPR
update_3.1.2: done
perch_blog_site_name: All the latest news and information from The Church's Ministry among Jewish People | CMJ UK
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: cmjnew
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/Berlin
PERCH_EMAIL_FROM: phil@18two.co.uk
PERCH_EMAIL_FROM_NAME: Phil Bowell
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/Phil/Sites/cmj/perch
PERCH_CORE: /Users/Phil/Sites/cmj/perch/core
PERCH_RESFILEPATH: /Users/Phil/Sites/cmj/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_YOUTUBE_API_KEY: AIzaSyD62bWl6oa3DxwVdmQ9D1kJsik0mW4DWpQ
PERCH_GMAPS_API_KEY: AIzaSyAXx2g28oIv0na5BAK0syqrk3ySs-ozgaw
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_DEBUG: 1
PERCH_RUNWAY:
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_ASSET_VERSION: 6738d5d5f5664f7c5e34
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/Phil/Sites/cmj/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings
PHP: 7.2.8
Zend: 3.2.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
MySQL server: 5.7.23
Free disk space: 117.07 GB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, SimpleXML, soap, sockets, sodium, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, pgsql, pdo_pgsql
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: cmj.test
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://cmj.test/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_COOKIE: _ga=GA1.2.315289714.1537788206; PHPSESSID=o5mnu71huvt24rlbmrtu5q753m; cmsa=1
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.2.8 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.9 Perl/v5.24.0
SERVER_NAME: cmj.test
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: /Users/Phil/Sites/cmj
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/Phil/Sites/cmj/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 61318
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1542367850.6
REQUEST_TIME: 1542367850
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using any URL rewriting?

Yes, I have some basic rewriting in a htaccess.

RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]

RewriteRule ^events/([a-zA-Z0-9-/]+)$ /events/event.php?s=$1 [L]
RewriteRule ^about/([a-zA-Z0-9-/]+)$ /about/staff.php?s=$1 [L]
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like that first rule is stripping off the .php extension and then redirecting. If you submit a form to a URL with .php then the redirect will discard the posted data.

You can fix that by making sure you use the final version of the URL in the action attribute of the perch:form tag.