Register Page and other Single Pages

Permalink Browser Info Environment
Hi,

I added following to application/config/app.php:

'theme_paths' => [

'/login' => 'pixel',

'/register' => 'pixel',

],

Without " '/register' => 'pixel'," It shows custom login page but with it Page gives Error.

How can I fix this?

Regards Tom

Type: Discussion
Status: Resolved
NetRocker
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
The content should be like this. If it is so, plz, send me your app.php file and a screenshot of the returned error.
<?php
return [
    /*
     * Route themes
     */
    'theme_paths' => [
        '/login' => 'pixel',
        //'/register' => 'pixel',
        //'/maintenance_mode' => 'theme_pixel',
    ],
];
NetRocker replied on at Permalink Reply
NetRocker
Thank you, for your fast response.

The error is gone, but a theme own register page is still not displayed.

However, there are no register.php in the Pixel Theme directory.
shahroq replied on at Permalink Reply
shahroq
If you need the register page to be themed too, the line for the register should be commented out.
Cheers,
NetRocker replied on at Permalink Reply
NetRocker
My app.php looks like this, but still I don't have a themed register page:

<?php
return [
'theme_paths' => [
'/login' => 'pixel',
'/register' => 'pixel',
'/maintenance_mode' => 'theme_pixel',
],
];
NetRocker replied on at Permalink Reply
NetRocker
Ok. Now it works.
NetRocker replied on at Permalink Reply
NetRocker
Deleted
NetRocker replied on at Permalink Reply
NetRocker
It works now. It was probably a problem with my PHP cache.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.4
Version Installed - 8.5.4
Database Version - 20200609145307

# Database Information
Version: 10.3.27-MariaDB-0+deb10u1
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Block Designer (3.3.0), Block Designer Pro (3.0.1), Code Display (1.0.3), Code Helper (0.9.1), Editor Permissions (1.0.0), Free Map (1.1.4), Image Optimizer (3.2.11), Page Child Redirect (0.9.2), Pixel Theme (2.4.0), Shortcodes (1.0.2), Traffic & Statistics (1.4.0), Webhapp Pixabay Image Import (0.9.5), Whale Grid Gallery (2.5.0)

# concrete5 Overrides
blocks/tom_headline/form.php, blocks/tom_headline/add.php, blocks/tom_headline/composer.php, blocks/tom_headline/icon.png, blocks/tom_headline/controller.php, blocks/tom_headline/db.xml, blocks/tom_headline/config.json, blocks/tom_headline/view.php, blocks/tom_headline/edit.php, blocks/tom_headline

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.4.15

# PHP Extensions
apc, apcu, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, intl, json, libxml, mbstring, memcache, memcached, msgpack, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 1000
memory_limit - 512M
post_max_size - 128M
upload_max_filesize - 128M
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
memcache.max_failover_attempts - 20
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.max_accelerated_files - 16229
opcache.max_file_size - 0
opcache.max_wasted_percentage - 10

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.