Help with failing install : Call to undefined function snippet()

I’m trying to install Kirby on a QNAP NAS subfolder with Composer and when going to the corresponding web page, I get this (screen copy)
with full text bellow.

I have set the following lines in .htaccess
RewriteBase /kirby/test
RewriteBase /

to no avail…

Any help would be greatly appreciated.


Call to undefined function snippet()

Stack frames (9)

8

Error

…/site/templates/home.php21

7

include

…/kirby/src/Toolkit/F.php403

6

Kirby\Toolkit\F loadIsolated

…/kirby/src/Toolkit/F.php380

5

Kirby\Toolkit\F load

…/kirby/src/Toolkit/Tpl.php35

4

Kirby\Toolkit\Tpl load

…/kirby/src/Cms/Template.php167

3

Kirby\Cms\Template render

…/kirby/src/Cms/Page.php1172

2

Kirby\Cms\Page render

…/kirby/src/Cms/App.php686

1

Kirby\Cms\App io

…/kirby/src/Cms/App.php1039

0

Kirby\Cms\App render

…/index.php5

/share/CACHEDEV1_DATA/Web/kirby/test/site/templates/home.php

  1. /*
  2. Templates render the content of your pages.
  • They contain the markup together with some control structures
  1. like loops or if-statements. The $page variable always
  2. refers to the currently active page.
  • To fetch the content from each field we call the field name as a
  1. method on the $page object, e.g. $page->title().
  • This home template renders content from others pages, the children of
  1. the photography page to display a nice gallery grid.
  • Snippets like the header and footer contain markup used in
  1. multiple templates. They also help to keep templates clean.
  1. */
  2. ?>
  3. <?php snippet('header') ?>
  4. <?php snippet('intro') ?>
  5. <?php
  6. /*
  7. We always use an if-statement to check if a page exists to
  8. prevent errors in case the page was deleted or renamed before
  9. we call a method like children() in this case
  10. */
  11. ?>
  12. <?php if ($photographyPage = page('photography')): ?>

Environment & details:

GET Data empty

POST Data empty

Files empty

Cookies

NAS_PW_STATUS 0
QT 1612634741451
showAllAp true

Session empty

Server/Request Data

HOSTNAME
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
USER httpdusr
HOME /tmp
ORIG_SCRIPT_NAME /php.mod_fastcgi
ORIG_PATH_TRANSLATED /share/Web/kirby/test/index.php
ORIG_PATH_INFO /test/index.php
ORIG_SCRIPT_FILENAME /php.mod_fastcgi
SCRIPT_NAME /test/index.php
REQUEST_URI /test/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /test/index.php
REMOTE_PORT 51732
SCRIPT_FILENAME /share/Web/kirby/test/index.php
SERVER_ADMIN admin@NAS
CONTEXT_DOCUMENT_ROOT /php.mod_fastcgi
CONTEXT_PREFIX /php.mod_fastcgi
REQUEST_SCHEME http
DOCUMENT_ROOT /share/Web/kirby
REMOTE_ADDR 192.168.0.20
SERVER_PORT 9999
SERVER_ADDR 192.168.0.60
SERVER_NAME 192.168.0.60
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_COOKIE NAS_PW_STATUS=0; QT=1612634741451; showAllAp=true
HTTP_CONNECTION keep-alive
HTTP_DNT 1
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.98,fr-FR;q=0.95,fr;q=0.93,de-DE;q=0.91,de;q=0.89,en-GB;q=0.86,nl-NL;q=0.84,nl;q=0.82,it-IT;q=0.8,it;q=0.77,ar-LB;q=0.75,ar;q=0.73,af-ZA;q=0.7,af;q=0.68,fr_fr.utf-8;q=0.66,fr_fr.utf;q=0.64,en-ZZ;q=0.61,de-CH;q=0.59,ru-RU;q=0.57,ru;q=0.55,pt-BR;q=0.52,pt;q=0.5,nl-BE;q=0.48,ja-JP;q=0.45,ja;q=0.43,en-EN;q=0.41,en-AU;q=0.39,en-CA;q=0.36,fr-CH;q=0.34,se-SE;q=0.32,se;q=0.3,da-DK;q=0.27,da;q=0.25,zh-TW;q=0.23,zh;q=0.2,en-UK;q=0.18,uk-UA;q=0.16,uk;q=0.14,zh-CN;q=0.11,pl-PL;q=0.09,pl;q=0.07,wo-SN;q=0.05,wo;q=0.02
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Firefox/78.0
HTTP_HOST 192.168.0.60:9999
REDIRECT_STATUS 200
REDIRECT_HANDLER php.mod_fastcgi
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /test/index.php
REQUEST_TIME_FLOAT 1612776220.41
REQUEST_TIME 1612776220
argv Array ( )
argc 0

Environment Variables

HOSTNAME
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
USER httpdusr
HOME /tmp
ORIG_SCRIPT_NAME /php.mod_fastcgi
ORIG_PATH_TRANSLATED /share/Web/kirby/test/index.php
ORIG_PATH_INFO /test/index.php
ORIG_SCRIPT_FILENAME /php.mod_fastcgi
SCRIPT_NAME /test/index.php
REQUEST_URI /test/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /test/index.php
REMOTE_PORT 51732
SCRIPT_FILENAME /share/Web/kirby/test/index.php
SERVER_ADMIN admin@NAS
CONTEXT_DOCUMENT_ROOT /php.mod_fastcgi
CONTEXT_PREFIX /php.mod_fastcgi
REQUEST_SCHEME http
DOCUMENT_ROOT /share/Web/kirby
REMOTE_ADDR 192.168.0.20
SERVER_PORT 9999
SERVER_ADDR 192.168.0.60
SERVER_NAME 192.168.0.60
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_COOKIE NAS_PW_STATUS=0; QT=1612634741451; showAllAp=true
HTTP_CONNECTION keep-alive
HTTP_DNT 1
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.98,fr-FR;q=0.95,fr;q=0.93,de-DE;q=0.91,de;q=0.89,en-GB;q=0.86,nl-NL;q=0.84,nl;q=0.82,it-IT;q=0.8,it;q=0.77,ar-LB;q=0.75,ar;q=0.73,af-ZA;q=0.7,af;q=0.68,fr_fr.utf-8;q=0.66,fr_fr.utf;q=0.64,en-ZZ;q=0.61,de-CH;q=0.59,ru-RU;q=0.57,ru;q=0.55,pt-BR;q=0.52,pt;q=0.5,nl-BE;q=0.48,ja-JP;q=0.45,ja;q=0.43,en-EN;q=0.41,en-AU;q=0.39,en-CA;q=0.36,fr-CH;q=0.34,se-SE;q=0.32,se;q=0.3,da-DK;q=0.27,da;q=0.25,zh-TW;q=0.23,zh;q=0.2,en-UK;q=0.18,uk-UA;q=0.16,uk;q=0.14,zh-CN;q=0.11,pl-PL;q=0.09,pl;q=0.07,wo-SN;q=0.05,wo;q=0.02
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Firefox/78.0
HTTP_HOST 192.168.0.60:9999
REDIRECT_STATUS 200
REDIRECT_HANDLER php.mod_fastcgi
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /test/index.php
REQUEST_TIME_FLOAT 1612776220.41
REQUEST_TIME 1612776220
argv Array ( )
argc 0

Registered Handlers

  1. Whoops\Handler\PrettyPageHandler