Forum

Thread tagged as: Question, Forms

require registration to access a certain page

I'd like to require the user to register in order to receive the password to access a certain page. thank you.

Jay Falk

Jay Falk 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

We have a Members app that you can use for that.

https://grabaperch.com/add-ons/apps/members

thank you. I uploaded the "perch_members" folder to the perch/apps. And I uploaded the "members" folder to the root. But when I added the line to config/apps.php: include(PERCH_PATH.'/addons/apps/perch_members/runtime.php');

I get an error "failed to load stream...on line 4..."

By the way, I don't have a perch/addons/

just

perch/apps

Rachel Andrew

Rachel Andrew 394 points
Perch Support

`please show us your complete config/apps.php

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Then there is something incorrect about your installation. Check that you have uploaded all of the files and folders.

Thank you. I didn't do the install, I'm taking over for someone else who is not available. What do you suggest is the best way to proceed to get a complete installation and transfer the content without any downtime?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can you show me the Diagnostics Report from Settings within the Perch admin?

Perch: 1.6.1 PHP: 5.4.29 Zend: 2.4.0 MySQL client: 5.5.37-35.1 MySQL server: 5.5.37-35.1 Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, mcrypt, mssql, mysql, mysqli, odbc, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, imagick, SourceGuardian, mhash, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: Yes PHP max upload size: 64 PHP max form post size: 64 PHP memory limit: 256 Total max uploadable file size: 64 PERCH_DB_USERNAME: sfadmin_shawn PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: sfadmin_cms PERCH_DB_PREFIX: perch_ PERCH_LOGINPATH: /perch PERCH_PATH: /home/sfadmin/public_html/perch PERCH_RESFILEPATH: /home/sfadmin/public_html/perch/resources PERCH_RESPATH: /perch/resources Resource folder writeable: Yes Native JSON: Yes Users: 2 H1: 9ae2045f711907846a1fad2d03087fdc L1: 7bebee48181020ea8d9a9630d50a5159 Installed apps: content, perch_backup DOCUMENT_ROOT: /home/sfadmin/public_html GATEWAY_INTERFACE: CGI/1.1 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate HTTP_ACCEPT_LANGUAGE: en-us HTTP_CONNECTION: close HTTP_COOKIE: __utmz=258016456.1401343398.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=258016456; __utmb=258016456.3.10.1407701117; __utma=258016456.826636913.1401343398.1407696425.1407701117.22; _at_id.eig.websitewelcome.f7bf=2ff5445c86839520.1407469426.1.1407469426.1407469426.328.328; __cfduid=d2ec14cd33f097aecdc093b32ce0a700d1403153447288; PHPSESSID=c4ff2f077a6acc0cb5fb5744913701fb HTTP_HOST: sterlingfoundations.com HTTP_REFERER: https://sterlingfoundations.com/perch/settings/ HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10 HTTP_X_HTTP_PROTO: HTTP/1.1 HTTP_X_REAL_IP: 71.93.206.115 PATH: /bin:/usr/bin PHPRC: /opt/php54/lib REDIRECT_STATUS: 200 REMOTE_ADDR: 71.93.206.115 REMOTE_PORT: 19234 REQUEST_METHOD: GET REQUEST_URI: /perch/settings/diagnostics/ SCRIPT_FILENAME: /home/sfadmin/public_html/perch/settings/diagnostics/index.php SCRIPT_NAME: /perch/settings/diagnostics/index.php SERVER_ADDR: 192.185.31.183 SERVER_ADMIN: webmaster@sterlingfoundations.com SERVER_NAME: sterlingfoundations.com SERVER_PORT: 80 SERVER_PROTOCOL: HTTP/1.1 SERVER_SIGNATURE: <address>Apache Server at sterlingfoundations.com Port 80</address> SERVER_SOFTWARE: Apache UNIQUE_ID: U@fQjcC5AjYAABhzRXsAAAAi PHP_SELF: /perch/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1407701133.92 REQUEST_TIME: 1407701133

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Perch: 1.6.1

This is an ancient version of Perch. The members app won't work with that as it was designed for Perch 2.

The Perch 1 documentation can be found here: https://support.grabaperch.com/index.php?pg=kb

Should I upgrade to Perch 2 and is there an easy way to migrate?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Upgrade instructions are here: https://docs.grabaperch.com/docs/upgrading-perch/upgrading-from-perch-1/

However you would need to update to 1.8.4 before following these as we do not support the version you are running.

Thank you. Are there instructions to update to 1.8.4.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

On the 1.8.4 update page:

https://grabaperch.com/update/v1-8-4