-
Notifications
You must be signed in to change notification settings - Fork 259
Error messages for 'Can't find page templates' (in 3.3.x) #468
Copy link
Copy link
Open
Description
This issue occurs when page templates are:
- Stored in the database
- Don't exist on the file server
This might occur if for instance, a developer had downloaded a copy of a production database to their machine. When a user tries to load a page, the CMS can't find the page template, because it hasn't been written from the database to the file system.
Work arounds:
A. Update the template (or partial) through the admin tab. This will force it to write out to disk again.
B. From the rails console, run the following command:
$ DynamicView.write_all_to_disk!
This will write all templates in the database out.
Real solution:
The engine should call write_all_to_disk! as part of startup. See cms/init.rb for the old code that used to do this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels