Forum

Thread tagged as: Error, Installation

Receiving error when upgrading to Perch 2.6.2 with adding templates/categories t...

I am receiving an error on my page after the upgrade to Perch 2.6.2

Warning: include(/home/jsh/public_html/cms/perch/templates/categories): failed to open stream: No such device in /home/jsh/public_html/cms/perch/config/apps.php on line 4

Warning: include(): Failed opening '/home/jsh/public_html/cms/perch/templates/categories' for inclusion (include_path='.:/opt/php54/lib/php') in /home/jsh/public_html/cms/perch/config/apps.php on line 4

The tag I included to the apps.php file is the following

include(PERCH_PATH.'/templates/categories');

Any assistance would be appreciated.

Thank you.

Michael Sharer

Michael Sharer 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Categories is an app like any other, you don't add paths to templates in apps.php. The correct format for that file is found in the docs:

https://docs.grabaperch.com/docs/installing-perch/installing-apps/

That makes sense. I made a bad assumption based on the below statement "and add categories to your config/apps.php file." I think it was too late to be working.

Thanks.

If updating from <2.6, copy the templates/categories folder across, and add categories to your config/apps.php file.