News:

Support the VirtueMart project and become a member

Main Menu

loadtemplate() doesn't work

Started by VictorTpo, July 31, 2013, 14:36:27 PM

Previous topic - Next topic

VictorTpo

Hello,

sorry for my english if I write mistake :/

I started to work in local and all was right, the function "loadtemplate(myTemplate.php)" load my file default_myTemplate.php.
But today I transfered all my files and database on a sever and this function doesn't work. Is there any varaible to change ? My file is in the same directory of the file where I call it.

Regards,

Victor

liquid.ideas

I would suggest using Akeeba backup to backup your local site and unpack it on the the new server, you don't loose anything that way

VictorTpo

Thank you for responding quickly.

I don't loose anything during my transfert (only few picture of the cache).
In my folder I have
-Productdetails
--tmpl
---default.php
---default_relatedproducts.php
---default_findStore.php

if I write echo $this->loadTemplate('relatedproducts'); in default.php, there is no problem.
But if it is echo $this->loadTemplate('findStore'); I see joomla error page 500, and say it can't find default_findStore.

Btw, I have the same problem in categories/tmpl.

Regards,
Victor

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart


Maxim Pishnyak

If issue is absent when you switch to standard Joomla template Beez5, I recommend you to check attentively what you did with your template overrides.

Could it be that you used as customizing base some 3rd party design, or maybe more older (then 2.0.20b) standard VM template files?

I advise you to backup current template overrides.
And then overwrite your current template VM overrides one by one with the standard 2.0.20b ones.
After each overwrite test if your issue is gone or still not.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart