Forum
Sample App - Error
Hi guys,
One of the apps I'd developed has recently fallen over, and in debugging it I downloaded and installed the Sample App (so I had a fresh copy to compare against), and found that it's experiencing the same error as my app:
Fatal error: Class 'PerchAPI_Factory' not found in /var/www/vhosts/infosec.thirdfloordigital.net/httpdocs/cms/addons/apps/my_sample/MySample_Things.class.php on line 4
Any ideas?
Could you be missing files?
It's a fresh download of the Sample app, so I'm not sure that's the case - I'm seeing the exact same error in my custom app as well.
If a missing file caused this, which file would it be?
That's a core Perch file being referred to: PerchAPI_Factory
Hi Rachel,
Thanks for the help - I'm looking through the core folder but I'm not really sure where that file is supposed to come up - could you point me in the right direction?
None of the other apps on the site are having an issue at this stage.
What's changed between when your app was working and now?
As far as I can remember, I've not touched the app code since launch, although there may have a been a Perch update along the way.
Where might I find PerchAPI_Factory, to determine whether the file is present or not?
Here's my diagnostics report:
The first thing you need to do is update. I don't even know if the sample app will function on that version of Perch. Our advice assumes you are running the latest version.
Hi Rachel,
I've just updated to the latest version, and I'm still seeing the same error.
Here's my new diagnostics report:
Does your app have an autoloader?
I'm not sure what that is.
Both the Sample App and my app are displaying the same error. My app was built using the Sample App as a guideline.
The other apps don't seem to be experiencing any issues at this stage.