05/11/2014, 16:54:31
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 1.11.11
#~ Url du site : local
#~ Hébergeur / Soft : lamp php 5.3.27
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.11.11
#~ Installed Modules:
#~ CMSMailer: 5.2.2
#~ CMSPrinting: 1.0.5
#~ FileManager: 1.4.5
#~ MenuManager: 1.8.6
#~ MicroTiny: 1.2.7
#~ ModuleManager: 1.5.8
#~ News: 2.14.4
#~ Search: 1.7.11
#~ ThemeManager: 1.1.8
#~ OpenStatisticsCommunity: 0.2.0
#~ TemplateExternalizer: 1.3
#~ Archiver: 0.2.4
#~ TinyMCE: 2.9.11
#~ FrontEndUsers: 1.18.1
#~ CGExtensions: 1.31
#~ CGCalendar: 1.10.0.1
#~ CustomContent: 1.8.3
#~ FormBuilder: 0.7.3
#~ NewsSlides: 1.2
#~ JQueryTools: 1.1.1
#~ CGContentUtils: 1.3.3
#~ Showtime: 3.2
#~ Statistics: 1.1.3
#~ CGFeedMaker: 1.0.16
#~ CGJobMgr: 1.2.7
#~ NMS: 2.5.6
#~ Config Information:
#~ php_memory_limit:
#~ process_whole_template:
#~ max_upload_size: 100000000
#~ url_rewriting: none
#~ page_extension: .html
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale:
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: true
#~ Php Information:
#~ phpversion: 5.3.27
#~ md5_function: On (True)
#~ gd_version: 2
#~ tempnam_function: On (True)
#~ magic_quotes_runtime: Off (False)
#~ E_STRICT: 2048
#~ E_DEPRECATED: 8192
#~ memory_limit: 1024M
#~ max_execution_time: 1200
#~ output_buffering: 4096
#~ safe_mode: Off (False)
#~ file_uploads: On (True)
#~ post_max_size: 100M
#~ upload_max_filesize: 100M
#~ session_save_path: /tmp (0777)
#~ session_use_cookies: On (True)
#~ xml_function: On (True)
#~ xmlreader_class: On (True)
#~ Server Information:
#~ Server Api: cgi-fcgi
#~ Server Db Type: MySQL (mysql)
#~ Server Db Version: 5.0.77
#~ Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
#~ Server Time Diff: No filesystem time difference found
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~
Salut à tous,
Nous avons migré de la version 1.10.3 à la dernière version.
Nous avons des menus avec des balises {php} et voici l'erreur :
Error: at line 62 in file /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax error in template "globalcontent:menu" on line 62 "
HOME
" unknown tag "echo"
#0 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(575): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ec...', 62)
#1 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2383): Smarty_Internal_TemplateCompilerBase->compileTag('echo', Array)
#2 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(3093): Smarty_Internal_Templateparser->yy_r37()
#3 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(3191): Smarty_Internal_Templateparser->yy_reduce(37)
#4 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(111): Smarty_Internal_Templateparser->doParse(25, ';')
#5 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(273): Smarty_Internal_SmartyTemplateCompiler->doCompile('??global $gCms;...')
#6 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_template.php(186): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#7 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php(149): Smarty_Internal_Template->compileTemplateSource()
#8 /usr/local/apache/htdocs/nmtripy/lib/classes/class.Smarty_CMS.php(326): Smarty_Internal_TemplateBase->fetch('globalcontent:m...', 'p15', NULL, NULL, false, false, false)
#9 /usr/local/apache/htdocs/nmtripy/plugins/function.global_content.php(23): Smarty_CMS->fetch('globalcontent:m...')
#10 /usr/local/apache/htdocs/nmtripy/tmp/templates_c/e47747a9d075f96463f3d893a106f66f740181e5.tpl_body.23.php(27): smarty_function_global_content(Array, Object(Smarty_Internal_Template))
#11 /usr/local/apache/htdocs/nmtripy/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php(182): content_545a2c635bbc69_10240138(Object(Smarty_Internal_Template))
#12 /usr/local/apache/htdocs/nmtripy/lib/classes/class.Smarty_CMS.php(326): Smarty_Internal_TemplateBase->fetch('tpl_body:23', 'p15', NULL, NULL, false, false, false)
#13 /usr/local/apache/htdocs/nmtripy/index.php(240): Smarty_CMS->fetch('tpl_body:23')
#14 {main}
le echo se fait entre les balises {php} {/php}
Avez-vous une idée ?
Merci à vous.
Edit : Je précise que normalement, cela devrait fonctionner vu que vous utilisez SmartyBC et il y a un registerPlugins('block', 'php', 'smarty_php_tag').
J'ai fait un var_dump dans cette function et elle n'est pas appelée. J'imagine qu'il y a un problème suite à votre override ?