Jump to content

Recommended Posts

Buon giorno a tutti,

Stavo effettuando dei test su una funzione che viene poi passata a smarty nella pagina prodotto tramite "smartyRegisterFunction".

Purtroppo non ho capito se centra il fatto che ho pulito cache o cosa fatto sta che al posto della pagina scheda prodotto appare questa cosa

Fatal error</b>: Uncaught exception 'SmartyException' with message 'Missing template name' in <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php:639

Stack trace:
#0 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_templatebase.php(117): Smarty_Internal_Template->__get('source')
#1 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true)
#2 <ps_local_dir>\cache\smarty\compile\0b\79\6b\0b796b9ef27207277f574770a029b97485917f06.file.product.tpl.php(117): Smarty_Internal_Template->getSubTemplate('', NULL, NULL, NULL, NULL, Array, 0)
#3 <ps_local_dir>\tools\smarty\sysplugins\smarty_internal_templatebase.php(180): content_541c40e3f01ff6_14852409(Object(Smarty_Internal_Template))
#4 <ps_local_dir>\classes\controller\FrontController.php(541): Smarty_Internal_TemplateBase->fetch('C:\\xampp\\htdocs...')
<ps_local_dir>\tools\smarty\sysplugins\smarty_internal_template.php</b> on line <b>639</b><br />

nota : la stessa funzione che stavo usando è usata anche nella pagina "lista prodotti" che, seppur con qualche warning, appare lo stesso.

 

Non avendo molta esperienza con smarty non riesco a comprendere questi messaggi. Avete per caso idea di cosa puo' essere successo?

 

Grazie e saluti

Edited by Liquido (see edit history)
Link to comment
Share on other sites

  On 9/22/2014 at 2:39 PM, Daniel_WM said:

scusa, non ho capito bene il fine di questa operazione.

Vuoi utilizzare la funzione per altre pagine del template?

 

Ciao e grazie per la risp.

L'informazione sul fatto che stavo lavorando su quella funzione era solo aggiuntiva per dare una panoramica migliore della situazione: sia mai che quella funzione che viene richiamata poi dentro il tpl non dia problemi.

 

Cmq il fatto era capire come mai si presenta quel problema e come debuggare degli errori come quello

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...