cancel
Showing results for 
Search instead for 
Did you mean: 

Template file not found after upgrade magento and theme

Template file not found after upgrade magento and theme

Hi!

I've successfull update magento from 1.7.2 to 1.9.2 and all work fine. Then I've upgrade the theme (buyshop) and now not working fine, if I try to open homepage the page is emty, white, and in system log the error is:

 

CRIT (2): Not valid template file: frontend/base/default/template/page/1column-wide.phtml

 

and other.

Really this file exist in installation, but there is in another directory,

 

/app/design/frontend/buyshop/default/template/page/

 

I think that in DB or in some file there is a referement at this path, and with update magento this not working yet.

 

I've check the configuration, disabled cache, compiler, etc.

 

Note, this theme work fine on native 1.9 magento installation.

 

Any ideas where is the matter?

 

Thanks a lot

8 REPLIES

Re: Template file not found after upgrade magento and theme

Hi @antonio_ste

 

Try to debug in following file \app\code\core\Mage\Core\Block\Template.php with  following code.

 

 try {
            $includeFilePath = realpath($this->_viewDir . DS . $fileName);
            if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) {
                include $includeFilePath;
            } else {
                Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);
            }

        } catch (Exception $e) {
            ob_get_clean();
            throw $e;
        }

Try to log following values $includeFilePath, realpath($this->_viewDir) and $this->_getAllowSymlinks()

 

Check if you have enabled Symlinks or not.

 

Do not forget to revert back all the changes after debugging.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Template file not found after upgrade magento and theme

Hi @muk_t

thank's a lot for your reply, but I've not undestand how I can debug the file template.php, I've check it and it is some like your code.

 

I've also try with symlinks enable and disabled, nothing change.

 

Thanks again.

 

Regards.

Re: Template file not found after upgrade magento and theme

Hi @antonio_ste

 

Is your Home page is a cms page? Do you see the 1column-wide on editing Home  cms page under Design > Page layou t> layout?

 

 

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Template file not found after upgrade magento and theme

Hi @muk_t

1) Yes, the homepage is a cms page, sure

2) In Design > Page layout > layout there is 1column-wide and, If I change with other, for example 1colum the error disappears, the page is made up, but obviously bad, and compair this error:

 

CRIT (2): Not valid template file:frontend/base/default/template/izotope/products_from_category.phtml
CRIT (2): Not valid template file:frontend/base/default/template/izotope/products_new.phtml
CRIT (2): Not valid template file:frontend/base/default/template/izotope/products_from_category.phtml
CRIT (2): Not valid template file:frontend/base/default/template/izotope/products_from_category.phtml

 

the path in error is still some!

 

Thanks in advance.

Re: Template file not found after upgrade magento and theme

Hi @antonio_ste

 

Did you copied all the custom templates files to your theme? 

 

Can you upload the screenshot of your admin system > configuration> design section and the theme directory patch like

 

/app/design/frontend/<namespace>/<custom theme>/template/page/

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Template file not found after upgrade magento and theme

Hi @muk_t

 

I've re-upload all theme.

 

There is the screen of config:

 

 

And there is the template path:

 

 

Regards

Re: Template file not found after upgrade magento and theme

Now I've try to copy the missing file from:

 

/app/design/frontend/buyshop/default/template 

TO

/app/design/frontend/base/default/template/

 

But magento go in exception error Smiley Sad

-----------------------------------------------------------------------------------------------

Now I remember when installed mlx extension for google rich snippet, on this 1.7.2 installation I've a lot of problems, and the developer of this extension has connect to ftp and resolve, but not tell me how.

 

Is possible he has make some change?

-----------------------------------------------------------------------------------------------

In theme documentation it says:

When upgrade from 2 to 3 version you must delete this file:

/app/design/frontend/default/buyshop

/skin/frontend/default/buyshop

 

Is possibile this is the problem?

 

Re: Template file not found after upgrade magento and theme

Hi @antonio_ste

 

You should not move files from your theme to base directory.

 

Can you share the url of documentation which you are following.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum