Skip to content

Instantly share code, notes, and snippets.

@jonatanrdsantos
Last active October 9, 2015 17:47
Show Gist options
  • Save jonatanrdsantos/4491cb7441a42756618a to your computer and use it in GitHub Desktop.
Save jonatanrdsantos/4491cb7441a42756618a to your computer and use it in GitHub Desktop.
Magento errors and causes.

##Magento errors and causes

###Error: Not valid template file

CRIT (2): Not valid template file: frontend/base/default/template/path/to/template.phtml

causes:

Incorrect template path.

wrong:

<block type="core/template" name="cj_udo" template="app/design/frontend/base/default/template/path/to/template.phtml" />

Right:

<block type="core/template" name="cj_udo" template="cj/udo.phtml" />

Not found template fallback.

wrong:

$tree tree app/design/frontend/base/default/template/path/

├── folder-name
│   └── another-folder
│       └── renderer
│           ├── boolean.phtml
│           ├── date.phtml
│           ├── file.phtml
│           ├── image.phtml
│           ├── multiline.phtml
│           ├── multiselect.phtml
│           ├── select.phtml
│           ├── text.phtml
│           └── textarea.phtml

Right:

$tree tree app/design/frontend/base/default/template/path/

├── folder-name
│   └── another-folder
│       └── renderer
│           ├── boolean.phtml
│           ├── date.phtml
│           ├── file.phtml
│           ├── image.phtml
│           ├── multiline.phtml
│           ├── multiselect.phtml
│           ├── select.phtml
│           ├── text.phtml
│           └── textarea.phtml
├── to
│   └── template.phtml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment