-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught exception 'Exception' with fetch() #513
Comments
Same here but upgrading PHP version helped. Can't provide exact version
bump right now
El dom., 18 nov. 2018 13:52, robo2bobo <notifications@github.com> escribió:
… I am still using smarty 3.1.29 because every time I try to upgrade to
3.1.33 or the latest code in github, I receive the following error:
PHP Fatal error: Uncaught exception 'Exception' with message 'Unexpected input at line1: <' in /home/user/public_html/smarty/libs/sysplugins/smarty_internal_templatelexer.php:368
Stack trace:
#0 /home/user/public_html/smarty/libs/sysplugins/smarty_internal_templatelexer.php(279): Smarty_Internal_Templatelexer->yylex1()
#1 /home/user/public_html/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(123): Smarty_Internal_Templatelexer->yylex()
#2 /home/user/public_html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(481): Smarty_Internal_SmartyTemplateCompiler->doCompile('{block name=con...', true)
#3 /home/user/public_html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(405): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(Smarty_Internal_Template), NULL, NULL)
#4 /home/user/public_html/smarty/libs/sysplugins/smarty_template_compiled.php(184): Smarty_Internal_Templ in /home/user/public_html/smarty/libs/sysplugins/smarty_internal_templatelexer.php on line 368
Here is how I use fetch, which loads an html template with a block:
$smarty->fetch('extends:template.html|string:base64:'.$id)
I am not sure if its a bug in smarty or if something changed in the fetch
command, but everything works fine in smarty 3.1.29.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#513>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABH2mZOxpom_r1RJ2rEM-yOf1_FExQWRks5uwVgagaJpZM4Yn7O2>
.
|
Unfortunately, upgrading is not an option. I'm using CentOS 7, which uses php 5.4, supported by RedHat (via RHEL) with regular patches and backports. Long-term support is for 10 years, so there is little change to upgrade to a newer version for various stability reasons. I guess newer versions of smarty use some kind of feature that doesn't exist in php 5.4, I will try to compare the templatelexer.php file and see if I can figure out what is broken. |
Ridiculous! 😀 Sticking to 5.4 is not a good idea since it EOL support for security fixes was about mid 2015. |
Please read about LTS releases, they get 10 years of support and they are a very good idea to use as a stable and secure environment. RHEL/CentOS have a fully updated and patched php 5.4 and will continue to do so for many many years. |
Normally package maintainers just patch what is found and patched in the origin, so if that stops it is normally dead. |
I am still using smarty 3.1.29 because every time I try to upgrade to 3.1.33 or the latest code in github, I receive the following error:
Here is how I use fetch, which loads an html template with a block:
I am not sure if its a bug in smarty or if something changed in the fetch command, but everything works fine in smarty 3.1.29.
The text was updated successfully, but these errors were encountered: