Forum
PHP Error in Admin
I am getting the following error when trying to create or save a blog post. Any ideas on what the fix is?
Fatal error: Call to a member function return_instance() on a non-object in /home/fcctc/public_html/admin/core/lib/api/PerchAPI_Form.class.php on line 415
Here is my diagnostics report.
Viewing Diagnostic Information
Diagnostics report
Perch information
Perch: 2.8.6
Production mode: Production (100)
Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6), perch_blog (4.5.4), perch_forms (1.7), ui_snipcart (1), perch_members (1.0.3)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_members, perch2_members_forms, perch2_members_member_tags, perch2_members_sessions, perch2_members_tags, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_podcasts, perch2_podcasts_downloads, perch2_podcasts_episodes, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_ui_snipcart_shop, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 5
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_forms',
'perch_blog',
'perch_members',
'ui_snipcart',
);
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: 58eb1a76fcb0b43069932298ea9b5aee
L1: 77feeafe6345389cb910221ca0172dd7
headerColour: #31a5bd
content_singlePageEdit: 1
helpURL: mailto:info@unleashedideas.com
siteURL: https://www.fcctc.org
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.6.6: done
latest_version: 2.8
on_sale_version: 2.8.6
headerScheme: dark
content_hideNonEditableRegions: 1
content_frontend_edit: 1
dashboard: 0
hide_pwd_reset: 0
perch_blog_update: 5.0
perch_blog_post_url: /blog/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
logoPath: /uploads/fcctc-logo.png
update_2.7: done
update_2.7.4: done
perch_members_login_page: /members/login.php?r={returnURL}
update_2.8.6: done
ui_snipcart_key: ZWM3N2UyMzgtYjI3MC00MGM2LWJhNTItMjdkNGVmMWEzMzdh
ui_snipcart_secret_key: ST_YTY1NDE3YjUtYTZlYS00OWVhLWEwOTctNWYzY2VhZGQwZTNi
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: fcctc_user
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: fcctc_perch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: info@unleashedideas.com
PERCH_EMAIL_FROM_NAME: Unleashed Ideas
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/fcctc/public_html/admin
PERCH_CORE: /home/fcctc/public_html/admin/core
PERCH_RESFILEPATH: /home/fcctc/public_html/uploads
PERCH_RESPATH: /uploads
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: /home/fcctc/public_html/admin/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:
Hosting settings
PHP: 5.4.39
Zend: 2.4.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.42-cll
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, filter, ftp, gd, hash, iconv, SPL, json, mbstring, mcrypt, session, mysql, standard, Phar, posix, Reflection, mysqlnd, SimpleXML, sockets, imap, tokenizer, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, pdo_sqlite, pdo_mysql, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 8M
PHP max form post size: 8M
PHP memory limit: 64M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
HTTP_HOST: www.fcctc.org
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_REFERER: https://www.fcctc.org/admin/core/settings/diagnostics/
HTTP_COOKIE: _ga=GA1.2.1402089605.1416880332; _jsuid=2061266171; cmsa=1; PHPSESSID=f0c92974057f290c8bea76e75a6f70e8
HTTP_CONNECTION: keep-alive
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE: <address>Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 PHP/5.4.39 Server at www.fcctc.org Port 80</address>
SERVER_SOFTWARE: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 PHP/5.4.39
SERVER_NAME: www.fcctc.org
SERVER_ADDR: 64.131.68.127
SERVER_PORT: 80
REMOTE_ADDR: 65.25.124.185
DOCUMENT_ROOT: /home/fcctc/public_html
SERVER_ADMIN: webmaster@fcctc.org
SCRIPT_FILENAME: /home/fcctc/public_html/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 44540
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1432154305.04
REQUEST_TIME: 1432154305
argc: 1
You need to update Blog.
OK let me give that a shot.
Great that worked.