We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Error

Fatal Error Call to a member function return_instance() on boolean in...

Hi,

I have a client that I've not supported for a while and the web site uses Perch and the Gallery app. They have just tried to add a new album for their business and have received the following error when they try to save it...

Fatal error: Call to a member function return_instance() on boolean in /homepages/19/d341845730/htdocs/nicolaspopp/perch/core/lib/api/PerchAPI_Form.class.php on line 423

Please can you tell me the simplest way to resolve this quickly? Help appreciated as always.

Man thanks - Regards Rob

Here are the Perch diags from the site:

Perch information
Diagnostics report
Health check
    •   PHP 5.6.33 is up to date
    •   MySQL 5.5.59-0+deb7u1-log is up to date
    •   Image processing available

    •   Perch: 2.8.18
    •   Production mode: Production (100)
    •   Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_gallery (2.6)
    •   DB driver: PDO
    •   DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
    •   Users: 2
    •   App runtimes: <?php
    •       include(PERCH_PATH.'/core/apps/content/runtime.php');
    •       include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php');
    •   ?>
    •   

    •   Editor plug-ins: markitup
    •   H1: f911c90ffc8b9f7cbf48991c6176f23f
    •   L1: 462e22178edc52f382c6836233469811
    •   headerColour: #ffffff
    •   content_singlePageEdit: 1
    •   helpURL: 
    •   siteURL: http://www.nicolaspopp.com
    •   hideBranding: 1
    •   content_collapseList: 1
    •   lang: fr-fr
    •   latest_version: 2.8.15
    •   headerScheme: light
    •   dashboard: 0
    •   content_hideNonEditableRegions: 0
    •   perch_gallery_basicUpload: 0
    •   logoPath: /perch/resources/logo-hires.png
    •   update_2.8.18: done
    •   on_sale_version: 
    •   PERCH_DEVELOPMENT: 10
    •   PERCH_STAGING: 50
    •   PERCH_PRODUCTION: 100
    •   PERCH_DB_USERNAME: dbo565269984
    •   PERCH_DB_SERVER: db565269984.db.1and1.com
    •   PERCH_DB_DATABASE: db565269984
    •   PERCH_DB_PREFIX: perch2_
    •   PERCH_EMAIL_FROM: rob@evolve2design.com
    •   PERCH_EMAIL_FROM_NAME: Rob Hawkins
    •   PERCH_LOGINPATH: /perch
    •   PERCH_PATH: /homepages/19/d341845730/htdocs/nicolaspopp/perch
    •   PERCH_CORE: /homepages/19/d341845730/htdocs/nicolaspopp/perch/core
    •   PERCH_RESFILEPATH: /homepages/19/d341845730/htdocs/nicolaspopp/perch/resources
    •   PERCH_RESPATH: /perch/resources
    •   PERCH_HTML5: 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_DEBUG: 
    •   PERCH_PREVIEW_ARG: preview
    •   PERCH_TEMPLATE_PATH: /homepages/19/d341845730/htdocs/nicolaspopp/perch/templates
    •   PERCH_DEFAULT_DOC: index.php
    •   PERCH_DEFAULT_EXT: .php
    •   PERCH_PRODUCTION_MODE: 100
    •   PERCH_RWD: 
    •   PERCH_HTML_ENTITIES: 
    •   PERCH_SSL: 
    •   PERCH_STRIPSLASHES: 
    •   PERCH_PROGRESSIVE_FLUSH: 1
    •   PERCH_AUTH_PLUGIN: 
    •   PERCH_DB_CHARSET: utf8
    •   PERCH_DB_PORT: 
    •   PERCH_DB_SOCKET: 
    •   PERCH_SESSION_TIMEOUT_MINS: 20
Hosting settings
    •   PHP: 5.6.33
    •   Zend: 2.6.0
    •   OS: Linux
    •   SAPI: cgi-fcgi
    •   Safe mode: not detected
    •   MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
    •   MySQL server: 5.5.59-0+deb7u1-log
    •   Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, mysqli, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, mysql, cgi-fcgi
    •   GD: Yes 
    •   ImageMagick: No
    •   PHP max upload size: 64M
    •   PHP max form post size: 64M
    •   PHP memory limit: 256M
    •   Total max uploadable file size: 64M
    •   Resource folder writeable: Yes
    •   Session timeout: 24 minutes
    •   Native JSON: Yes
    •   Filter functions: Yes
    •   Transliteration functions: Yes
    •   REDIRECT_UNIQUE_ID: WoV-IdTjfwUAAC-bwSkAAAAr
    •   REDIRECT_SCRIPT_URL: /perch/core/settings/diagnostics/
    •   REDIRECT_SCRIPT_URI: http://www.nicolaspopp.com/perch/core/settings/diagnostics/
    •   REDIRECT_DOCUMENT_ROOT: /kunden/homepages/19/d341845730/htdocs/nicolaspopp
    •   REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID: 7
    •   REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET: /run/ui-fstatd.suexec.socket
    •   REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET: /homepages/sclientMF/http.sock.bin
    •   REDIRECT_DBENTRY__RSCLVL_CPU: 40
    •   REDIRECT_DBENTRY__RSCLVL_MEM: 768
    •   REDIRECT_DBENTRY__RSCLVL_PROCSOFT: 15
    •   REDIRECT_DBENTRY__RSCLVL_PROCHARD: 27
    •   REDIRECT_DBENTRY_HOST: nicolaspopp.com
    •   REDIRECT_DBENTRY_VALUE: /kunden/homepages/19/d341845730/htdocs/nicolaspopp:d0000#CPU 60 #MEM 524288 #CGI 786762 #NPROC 20 #TAID 60156642 #LANG 2 #RSCLVL 300 #STAT 1 #CHROOT 7
    •   REDIRECT_DBENTRY_DOCROOT: /kunden/homepages/19/d341845730/htdocs/nicolaspopp
    •   REDIRECT_DBENTRY_HASH: d0000
    •   REDIRECT_DBENTRY__CPU: 60
    •   REDIRECT_DBENTRY__MEM: 524288
    •   REDIRECT_DBENTRY__CGI: 786762
    •   REDIRECT_DBENTRY__NPROC: 20
    •   REDIRECT_DBENTRY__TAID: 60156642
    •   REDIRECT_DBENTRY__LANG: 2
    •   REDIRECT_DBENTRY__RSCLVL: 300
    •   REDIRECT_DBENTRY__STAT: 1
    •   REDIRECT_DBENTRY__CHROOT: 7
    •   REDIRECT_DBENTRY: /kunden/homepages/19/d341845730/htdocs/nicolaspopp:d0000#CPU 60 #MEM 524288 #CGI 786762 #NPROC 20 #TAID 60156642 #LANG 2 #RSCLVL 300 #STAT 1 #CHROOT 7
    •   REDIRECT_HANDLER: x-mapp-php5
    •   REDIRECT_STATUS: 200
    •   UNIQUE_ID: WoV-IdTjfwUAAC-bwSkAAAAr
    •   SCRIPT_URL: /perch/core/settings/diagnostics/
    •   SCRIPT_URI: http://www.nicolaspopp.com/perch/core/settings/diagnostics/
    •   UI_SUEXEC_DEFAULT_CHROOT_ID: 7
    •   DBENTRY_HOST: nicolaspopp.com
    •   DBENTRY_VALUE: /kunden/homepages/19/d341845730/htdocs/nicolaspopp:d0000#CPU 60 #MEM 524288 #CGI 786762 #NPROC 20 #TAID 60156642 #LANG 2 #RSCLVL 300 #STAT 1 #CHROOT 7
    •   DBENTRY_DOCROOT: /kunden/homepages/19/d341845730/htdocs/nicolaspopp
    •   DBENTRY_HASH: d0000
    •   DBENTRY__CPU: 60
    •   DBENTRY__MEM: 524288
    •   DBENTRY__CGI: 786762
    •   DBENTRY__NPROC: 20
    •   DBENTRY__TAID: 60156642
    •   DBENTRY__LANG: 2
    •   DBENTRY__STAT: 1
    •   DBENTRY__CHROOT: 7
    •   DBENTRY: /kunden/homepages/19/d341845730/htdocs/nicolaspopp:d0000#CPU 60 #MEM 524288 #CGI 786762 #NPROC 20 #TAID 60156642 #LANG 2 #RSCLVL 300 #STAT 1 #CHROOT 7
    •   HTTP_HOST: www.nicolaspopp.com
    •   HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0
    •   HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    •   HTTP_ACCEPT_LANGUAGE: en,en-US;q=0.7,fr-FR;q=0.3
    •   HTTP_ACCEPT_ENCODING: gzip, deflate
    •   HTTP_REFERER: http://www.nicolaspopp.com/perch/core/settings/diagnostics/
    •   HTTP_COOKIE: cmsa=1; PHPSESSID=86ae179aa63bd223743622c837bb1ab3
    •   HTTP_UPGRADE_INSECURE_REQUESTS: 1
    •   PATH: /bin:/usr/bin
    •   SERVER_SOFTWARE: Apache
    •   SERVER_NAME: nicolaspopp.com
    •   SERVER_ADDR: 212.227.127.5
    •   SERVER_PORT: 80
    •   REMOTE_ADDR: 90.112.108.70
    •   DOCUMENT_ROOT: /kunden/homepages/19/d341845730/htdocs/nicolaspopp
    •   REQUEST_SCHEME: http
    •   CONTEXT_PREFIX: /system-bin/
    •   CONTEXT_DOCUMENT_ROOT: /kunden/usr/lib/cgi-bin/
    •   SERVER_ADMIN: webmaster@nicolaspopp.com
    •   SCRIPT_FILENAME: /kunden/homepages/19/d341845730/htdocs/nicolaspopp/perch/core/settings/diagnostics/index.php
    •   REMOTE_PORT: 54768
    •   REDIRECT_QUERY_STRING: extended
    •   REDIRECT_URL: /perch/core/settings/diagnostics/index.php
    •   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
    •   STATUS: 200
    •   ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
    •   ORIG_PATH_TRANSLATED: /kunden/homepages/19/d341845730/htdocs/nicolaspopp/perch/core/settings/diagnostics/index.php
    •   PHP_SELF: /perch/core/settings/diagnostics/index.php
    •   REQUEST_TIME_FLOAT: 1518698273.6616
    •   REQUEST_TIME: 1518698273
    •   argc: 1

ROb Hawkins

ROb Hawkins 0 points

  • 1 year ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The best thing to do is update to the final version of Perch 2.

Where can I find that software these days Drew? Sorry I've been away for ages (years!)

Once found is it just a case of replacing the core directory I can't remember :-(

Thanks for the quick response....

OK found the software actually managed to log in with my original account that the 4 licences are attached to.

Do I just copy over the 'core' directory?

Help appreciated as I've not done this for over 3 years and no longer do this!!

Hi,

I've updated to the latest version of perch and still receive the same error. I've included the revised diags below.

What's next? Help HUGLEY appreciated!!

Regards - Rob

Health check

    PHP 5.6.33 is up to date
    MySQL 5.5.59-0+deb7u1-log is up to date
    Image processing available

Summary information

    Perch: 2.8.34, PHP: 5.6.33, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
    Server OS: Linux, cgi-fcgi
    Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_gallery (2.6)
    App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); ?>
    PERCH_LOGINPATH: /perch
    PERCH_PATH: /homepages/19/d341845730/htdocs/nicolaspopp/perch
    PERCH_CORE: /homepages/19/d341845730/htdocs/nicolaspopp/perch/core
    PERCH_RESFILEPATH: /homepages/19/d341845730/htdocs/nicolaspopp/perch/resources
    Image manipulation: GD
    PHP limits: Max upload 64M, Max POST 64M, Memory: 256M, Total max file upload: 64M
    F1: 6a33f95eca3667f9e0c39bf5ca2980fe
    Resource folder writeable: Yes
    HTTP_HOST: www.nicolaspopp.com
    DOCUMENT_ROOT: /kunden/homepages/19/d341845730/htdocs/nicolaspopp
    REQUEST_URI: /perch/core/settings/diagnostics/
    SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try Gallery v2.8.6 from the archive: http://addons.perchcms.com/archive

Resolved.