Skip to content

Error messages for 'Can't find page templates' (in 3.3.x) #468

@peakpg

Description

@peakpg

This issue occurs when page templates are:

  1. Stored in the database
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions