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!
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).
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
Can you post your extended diagnostics?
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!
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.
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
It's just bizarre. Is this in your dev environment or live?
Live on MediaTemple, GRID server.
Does it work in dev?
This is an old site that was built without a dev server (unlike current projects.)
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:
Have you checked your server's error log? I'm interesting in any warnings that might occur before the fatal error.