Forum

Thread tagged as: Error

Issue upgrading from 1.x

I followed the instructions for bringing a Perch 1.5 site up to the latest version, including first updating to the last 1.x version. Everything worked wonderfully and the site shows up fine. In the updated Perch side, however, if I click on any regions I get the following instead of the expected edit screen:

Fatal error: Class 'PerchResources' not found in /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/core/apps/content/modes/edit.form.pre.php on line 79

This happens for any region on any page. The content shows up on the website, but it's not editable on the Perch end since all I see is that error above.

Could this be caused by the site using PHP 5.3.29? I hope not, as I'm hesitate to upgrade PHP as it'll break my install of Mint, a statistics package that doesn't work on newer versions of PHP.

Here's the site info:

Perch is up to date PHP 5.3.29 is very out of date. More info MySQL 5.1.26-rc-5.1.26rc-log is up to date Image processing available SUMMARY INFORMATION

Perch: 2.8.6, PHP: 5.3.29, MySQL: 5.1.73, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6), perch_upgrade (1.5) App runtimes: <?php $apps_list = array( 'content', 'categories', ); PERCH_LOGINPATH: /edit PERCH_PATH: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit PERCH_CORE: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/core PERCH_RESFILEPATH: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/resources Image manipulation: GD PHP limits: Max upload 200M, Max POST 200M, Memory: 99M, Total max file upload: 99M Resource folder writeable: Yes HTTP_HOST: ideachick.com DOCUMENT_ROOT: /home/70481/domains/ideachick.com/html REQUEST_URI: /edit/core/settings/diagnostics/ SCRIPT_NAME: /edit/core/settings/diagnostics/index.php View extended report

Thanks!

Franz Neumann

Franz Neumann 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Did this server pass the latest version of the Compatibility Test?

Perch (not Runway) runs on 5.3 at the moment but we really wouldn't recommend running such an old version of PHP.

I didn't run the test, but it's the same server many other Perch installations on running on just fine (MediaTemple GRID).

Rachel Andrew

Rachel Andrew 394 points
Perch Support

We would recommend running the test as a first step. You would not be the first customer to discover that the environment differs from one server in the same hosting to another.

It passes the test.

To clarify, this is the exact same server and user account that was running Perch 1.5. I have many other installations of Perch 2.x on the same server, too, without issue.

I replaced the core folder again in case some files hadn't been transferred over, but the problem persists. When I try to edit a region I get a screen with this:

Fatal error: Class 'PerchResources' not found in /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/core/apps/content/modes/edit.form.pre.php on line 79

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your extended diagnostics?

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_upgrade (1.5)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users, perch_contentItems, perch_settings, perch_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: ea56b34fb3a9037cc66ffd61e6ed0dff
L1: d93beafddced46528230c452f3354040
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.6: done
latest_version: 2.8
on_sale_version: 2.8.6
headerLinkColour: #000000
logoPath: /edit/assets/img/logo.png
linkColour: #333333
editorMayDeleteRegions: 0
perch_pages_editorMayDeletePages: 0
perch_pages_folders: /
latestUpdate: 1.8.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db70481
PERCH_DB_SERVER: internal-db.s70481.gridserver.com
PERCH_DB_DATABASE: db70481_ideachickperch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/Los_Angeles
PERCH_EMAIL_FROM: patricia@ideachick.com
PERCH_EMAIL_FROM_NAME: Patricia Neumann
PERCH_LOGINPATH: /edit
PERCH_PATH: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit
PERCH_CORE: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/core
PERCH_RESFILEPATH: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/resources
PERCH_RESPATH: /edit/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: /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/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.3.29
Zend: 2.3.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.1.73
MySQL server: 5.1.26-rc-5.1.26rc-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, json, ldap, mbstring, mcrypt, mysql, mysqli, standard, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, SQLite, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 200M
PHP max form post size: 200M
PHP memory limit: 99M
Total max uploadable file size: 99M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /usr/local/bin:/usr/bin:/bin
REDIRECT_HANDLER: php-stable
REDIRECT_STATUS: 200
UNIQUE_ID: VUeecEYgRBkAAAeYwHcAAACv
SCRIPT_URL: /edit/core/settings/diagnostics/
SCRIPT_URI: https://ideachick.com/edit/core/settings/diagnostics/
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
ACCESS_DOMAIN: s70481.gridserver.com
DATABASE_SERVER: internal-db.s70481.gridserver.com
SITE_ROOT: /home/70481
SITE_CGIROOT: /home/70481/cgi-bin
SITE_HTMLROOT: /home/70481/domains/ideachick.com/html
PHPRC: /home/70481/etc/
HTTP_HOST: ideachick.com
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_COOKIE: __utma=107661914.1526510898.1430249006.1430752488.1430756958.5; __utmb=107661914.1.10.1430756958; __utmc=107661914; __utmt=1; __utmz=107661914.1430249006.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); MintAcceptsCookies=1; MintUnique=1; MintUniqueDay=1430726400; MintUniqueHour=1430755200; MintUniqueLocationPlus=1; MintUniqueMonth=1430467200; MintUniqueWeek=1430640000; cmsa=1; PHPSESSID=95bfaa406dd3ae7bfb4b9ea3a6d271ba
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.17
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://ideachick.com/edit/core/settings/diagnostics/
HTTP_DNT: 1
SERVER_SIGNATURE: <address>Apache/2.2.22 Server at ideachick.com Port 80</address>
SERVER_SOFTWARE: Apache/2.2.22
SERVER_NAME: ideachick.com
SERVER_ADDR: 70.32.68.122
SERVER_PORT: 80
REMOTE_ADDR: 71.189.216.125
DOCUMENT_ROOT: /home/70481/domains/ideachick.com/html
SERVER_ADMIN: webmaster@ideachick.com
SCRIPT_FILENAME: /home/70481/domains/ideachick.com/html/edit/core/settings/diagnostics/index.php
REMOTE_PORT: 48917
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /edit/core/settings/diagnostics/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /edit/core/settings/diagnostics/?extended
SCRIPT_NAME: /edit/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /etc/apache2/gs-bin/php-stable
ORIG_PATH_INFO: /edit/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /home/70481/domains/ideachick.com/html/edit/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /gs-bin/php-stable
PHP_SELF: /edit/core/settings/diagnostics/index.php
REQUEST_TIME: 1430756977
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, so you do have SPL installed. Hmm.

I'll see what I can find out.

Just checking in to see if there was an update. Thanks!

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does the perch/core/lib/PerchResources.class.php file exist?

It does, however my path is edit/core/lib/PerchResources.class.php

I used "edit" instead of "perch" when setting up the site initially.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. Is everything else working?

Apart from my custom icon not showing up on the log-in screen or in the admin, I see the website fine and I can login and see the Perch admin fine. But as soon as I click to edit a region it goes to a white screen that only shows the error:

Fatal error: Class 'PerchResources' not found in /nfs/c05/h03/mnt/70481/domains/ideachick.com/html/edit/core/apps/content/modes/edit.form.pre.php on line 79

Drew McLellan

Drew McLellan 2638 points
Perch Support

It's just bizarre. Is this in your dev environment or live?

Live on MediaTemple, GRID server.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does it work in dev?

This is an old site that was built without a dev server (unlike current projects.)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I'm going to need some help narrowing it down, because I don't have a lot to work with. Is it completely impossible to sling a copy of it onto a dev server?

Hi Drew,

I had abandoned this ticket as the site I had issue with was a non-critical personal one and I didn't have time to troubleshoot.

However, I have a client site to update so I can take advantage of the Gallery app. And so, to be safe, I created a copy of the entire site and database and ran a dev server on the same remote server on MediaTemple. I then ran the update from 2.6.2 to 2.8.8 on this dev site.

The same error occurs as with my earlier issue, that is to say, I see the site fine, I see Perch fine, but as soon as I try to edit any region I get this:

Fatal error: Class 'PerchResources' not found in /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch/core/apps/content/modes/edit.form.pre.php on line 79

Any ideas? As I'm getting the same error I take it isn't a 1.x->2.x upgrade bug.

Thanks!

Here's my Diagnostic report:

Diagnostics report
HEALTH CHECK

Perch is up to date
PHP 5.5.21 is up to date
MySQL 5.1.26-rc-5.1.26rc-log is up to date
Image processing available
SUMMARY INFORMATION

Perch: 2.8.8, PHP: 5.5.21, MySQL: 5.1.73, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch
PERCH_CORE: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch/core
PERCH_RESFILEPATH: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch/resources
Image manipulation: GD
PHP limits: Max upload 200M, Max POST 200M, Memory: 99M, Total max file upload: 99M
Resource folder writeable: Yes
HTTP_HOST: dev-literarywomen.org.s70481.gridserver.com
DOCUMENT_ROOT: /home/70481/domains/dev-literarywomen.org/html
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

And here's the extended report:
Perch: 2.8.8
Production mode: Production (100)
Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, 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
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup, redactor
H1: 3d262cf409e68c318f31bda642cd014d
L1: d36ac2fa5f96c3974c0bfbc51ff0daed
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.6: done
latest_version: 2.8.8
on_sale_version: 2.8.8
headerScheme: light
content_hideNonEditableRegions: 1
dashboard: 0
hide_pwd_reset: 0
content_frontend_edit: 0
update_2.6.2: done
update_2.8.8: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db70481
PERCH_DB_SERVER: internal-db.s70481.gridserver.com
PERCH_DB_DATABASE: db70481_devliterarywomenperch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/Los_Angeles
PERCH_EMAIL_FROM: franz@copyanddesign.com
PERCH_EMAIL_FROM_NAME: Franz Neumann
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch
PERCH_CORE: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/perch/core
PERCH_RESFILEPATH: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/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: /nfs/c05/h03/mnt/70481/domains/dev-literarywomen.org/html/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:
HOSTING SETTINGS

PHP: 5.5.21
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.1.73
MySQL server: 5.1.26-rc-5.1.26rc-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, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 200M
PHP max form post size: 200M
PHP memory limit: 99M
Total max uploadable file size: 99M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /usr/local/bin:/usr/bin:/bin
REDIRECT_HANDLER: php-latest
REDIRECT_STATUS: 200
UNIQUE_ID: VZr2KUYgRBYAAFOGQ20AAAA0
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://dev-literarywomen.org.s70481.gridserver.com/perch/core/settings/diagnostics/
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
ACCESS_DOMAIN: s70481.gridserver.com
DATABASE_SERVER: internal-db.s70481.gridserver.com
SITE_ROOT: /home/70481
SITE_CGIROOT: /home/70481/cgi-bin
SITE_HTMLROOT: /home/70481/domains/dev-literarywomen.org/html
PHPRC: /home/70481/etc/
HTTP_HOST: dev-literarywomen.org.s70481.gridserver.com
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_COOKIE: cmsa=1; PHPSESSID=09c33c449b60f43a5317fe95a4f19a1d; _ga=GA1.2.1336334767.1436216534
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://dev-literarywomen.org.s70481.gridserver.com/perch/core/settings/diagnostics/
HTTP_DNT: 1
SERVER_SIGNATURE: <address>Apache/2.2.22 Server at dev-literarywomen.org.s70481.gridserver.com Port 80</address>
SERVER_SOFTWARE: Apache/2.2.22
SERVER_NAME: dev-literarywomen.org.s70481.gridserver.com
SERVER_ADDR: 70.32.68.122
SERVER_PORT: 80
REMOTE_ADDR: 71.189.216.125
DOCUMENT_ROOT: /home/70481/domains/dev-literarywomen.org/html
SERVER_ADMIN: webmaster@s70481.gridserver.com
SCRIPT_FILENAME: /home/70481/domains/dev-literarywomen.org/html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 46680
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
ORIG_SCRIPT_FILENAME: /etc/apache2/gs-bin/php-latest
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /home/70481/domains/dev-literarywomen.org/html/perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /gs-bin/php-latest
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1436218921.9038
REQUEST_TIME: 1436218921
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you checked your server's error log? I'm interesting in any warnings that might occur before the fatal error.