Forum

Thread tagged as: Error, Addons, Gallery

Fatal Error Call to Undefined Function

I have the gallery app installed, and when I add the function:

 <?php perch_gallery_albums(); ?>

to a page I get the error "Fatal Error Call to undefined function" on whatever line I put it on. I was not getting this error in the previous version of perch runway, and I am sure that I am running the latest versions of both Perch and the Gallery app.

I have included the runtime at the top of the page like so.

<?php include('perch/runtime.php'); ?>

Here is my diagnostics report as well

Perch Runway: 3.0.8
Production mode: Production (100)
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_blog (5.5.1), perch_gallery (2.8.9), perch_shop_orders (1.2.1), perch_shop_products (1.2.1), perch_shop (1.2.1), perch_members (1.6.2)
DB driver: PDO
DB tables: perch3_backup_plans (0), perch3_backup_resources (0), perch3_backup_runs (0), perch3_blog_authors (0), perch3_blog_comments (0), perch3_blog_index (0), perch3_blog_posts (0), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (1), perch3_collection_index (0), perch3_collection_items (0), perch3_collection_revisions (0), perch3_collections (0), perch3_content_index (0), perch3_content_items (0), perch3_content_locks (0), perch3_content_regions (3), perch3_gallery_albums (3), perch3_gallery_image_versions (0), perch3_gallery_images (0), perch3_members (0), perch3_members_forms (0), perch3_members_member_tags (0), perch3_members_sessions (0), perch3_members_tags (0), perch3_menu_items (14), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_routes (0), perch3_page_templates (7), perch3_pages (6), perch3_resource_log (0), perch3_resource_tags (0), perch3_resources (0), perch3_resources_to_tags (0), perch3_settings (17), perch3_user_passwords (0), perch3_user_privileges (39), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [ 
    ];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins:
H1: 697a0b50489156fed158141db4784a58
L1: baaa2092f588e3147b0dfac57b37f1ec
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: rgb(54,54,54)
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.8
update_3.0.8: done
headerScheme: dark
update_runway_3.0.8: done
latest_version:
on_sale_version:
perch_gallery_update: 2.8.5
perch_blog_update: 5.0.1
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: B:\Web Development\Nick Leyland\nickleyland.dev\perch\setup\account
PERCH_SCHEDULE_SECRET: 2KQYAALEkBeZVjne
PERCH_DB_USERNAME: Brickthenick
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: PerchDB
PERCH_DB_PREFIX: perch3_
PERCH_EMAIL_FROM: nick@nick_leyland.com
PERCH_EMAIL_FROM_NAME: Nicholas Leyland
PERCH_LOGINPATH: /perch
PERCH_PATH: B:\Web Development\Nick Leyland\nickleyland.dev\perch
PERCH_CORE: B:\Web Development\Nick Leyland\nickleyland.dev\perch\core
PERCH_RESFILEPATH: B:\Web Development\Nick Leyland\nickleyland.dev\perch\resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: UTC
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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: 5163d57ff611b3cf853b
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: B:\Web Development\Nick Leyland\nickleyland.dev\perch\templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
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_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SHOP_VERSION: 1.2.1
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 5.5.24
Zend: 2.5.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
MySQL server: 5.6.24
Free disk space: 167.81 GB
Extensions: Core, bcmath, calendar, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, wddx, xml, xmlreader, xmlwriter, apache2handler, openssl, curl, mbstring, exif, gd, gettext, mysql, mysqli, Phar, pdo_mysql, pdo_sqlite, soap, sockets, sqlite3, xmlrpc, xsl, mhash, xdebug
GD: Yes
ImageMagick: No
PHP max upload size: 512M
PHP max form post size: 512M
PHP memory limit: 512M
Total max uploadable file size: 512M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
MIBDIRS: C:/xampplite/php/extras/mibs
MYSQL_HOME: \xampp\mysql\bin
OPENSSL_CONF: C:/xampplite/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR: \xampp\php
PHPRC: \xampp\php
TMP: \xampp\tmp
HTTP_HOST: nickleyland.dev
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_DNT: 1
HTTP_REFERER: https://nickleyland.dev/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: PHPSESSID=h1tt6i1n4jvt47c85fcheou5m0; cmsa=1; _ga=GA1.2.2086945218.1497034003; _gid=GA1.2.46193598.1497450674
PATH: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
SystemRoot: C:\Windows
COMSPEC: C:\Windows\system32\cmd.exe
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR: C:\Windows
SERVER_SIGNATURE: <address>Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.5.24 Server at nickleyland.dev Port 80</address>
SERVER_SOFTWARE: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.5.24
SERVER_NAME: nickleyland.dev
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: B:/Web Development/Nick Leyland/nickleyland.dev
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: B:/Web Development/Nick Leyland/nickleyland.dev
SERVER_ADMIN: postmaster@localhost
SCRIPT_FILENAME: B:/Web Development/Nick Leyland/nickleyland.dev/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 54949
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: 1497451489.619
REQUEST_TIME: 1497451489
Nicholas Leyland

Nicholas Leyland 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to add the Gallery app to your config/apps.php file.

https://docs.grabaperch.com/perch/getting-started/installing/apps/