I got an error when installing php openCRM software myITCRM.Fatal error: Uncaught --> Smarty: Call of unknown method 'load_filter'. <-- thrown in C:\wamp\bin\php\php5.5.12\Smarty\libs\sysplugins\smarty_internal_templatebase.php on line 858.
load_filter() was used in Smarty 2.0, but became loadFilter() in Smarty 3.0. My guess is that your application's Smarty libraries have been upgraded, but this piece of code hasn't changed
myITCRM will not work in php 5.5 .that's why i am getting this error
Related
I am facing this syntax error in my search module. Can someone please look into this that what's exact issue.
// This is the path to the fts_instant_product_search.php file you uploaded.
{php}$x=parse_url($GLOBALS['smarty']->_tpl_vars['current_location']);$GLOBALS['smarty']->assign('searchPath',$x['path']);{/php}
searchPath = "{$searchPath}/";
It produces this error:
PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in
template
"/home/noveltie/public_html/xcart475/skin/lumino_responsive/customer/fts_instant_product_search.tpl"
on line 79
"{php}$x=parse_url($GLOBALS['smarty']->_tpl_vars['current_location']);$GLOBALS['smarty']->assign('searchPath',$x['path']);{/php}"
unknown tag "php" <-- thrown in
/home/xxx/public_html/xcart475/include/lib/smarty3/sysplugins/smarty_internal_templatecompilerbase.php
on line 79
X-Cart 4.7.5 uses Smarty version 3.1, which does not allow {php} tag:
http://www.smarty.net/docs/en/language.function.php.tpl
IMPORTANT NOTICE
{php} tags are deprecated from Smarty, and should not be used.
Put your PHP logic in PHP scripts or plugin functions instead.
As of Smarty 3.1 the {php} tags are only available from SmartyBC.
Your options are:
Contact the skin developer and ask them to change the skin's code, so it would be compliant with smarty 3.1
Install aforementioned backward compatibility wrapper from here:
http://www.smarty.net/docs/en/bc.tpl
Getting the following error from gd using HHVM 3.7.1
Fatal error: f_imageloadfont is not supported: NYI
I couldn't help to ask as I didn't find any information about how to fix it.
This error did not happen to occur in PHP 5.3, 5.4 and 5.6 (didn't test 5.5).
Update: If you are interested - I opened an issue.
The main part here is imageloadfont is not supported, which means calling it will cause a fatal error like the one you're seeing.
You could open an issue about it to see if it can be implemented, or if the HNI definition can be removed so that a function_exists for it fails.
I've recently moved a website from a PHP 5.2 environment to 5.4.35.
The site uses Smarty 3.1 for templating and unfortunatley it's not a tool i'm familiar with. Since the big move we're getting unknown tag "include" errors.
I wondered if anyone in the community had come across this before?
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/domain.com/httpdocs/templates/index.html" on line 1 "<!--{include file="_header.html"}-->" unknown tag "include"' in /var/www/vhosts/domain.com/httpdocs/lib/smarty3.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 617
I have tried searching the Smarty forums with little success. Does anyone have any idea what I need to look for?
IMPORTANT NOTICE
{include_php} is deprecated from Smarty, use registered plugins to properly insulate presentation from the application code. As of Smarty 3.1 the {include_php} tags are only available from SmartyBC.
Source: https://www.smarty.net/docs/en/language.function.include.php.tpl
I'm developing a PHP application which generating reports to PDF
Right now I'm facing some troubles
I'm working from my own computer with XAMPP Server and the code ran well
But when I copied the codes to my office's WAMP5 Version 1.6.5 Server I got errors
Fatal error: Call to undefined function array_fill_keys() in D:\wwwroot\tcpdf\include\tcpdf_fonts.php on line 1848
I went to that troubled line and removed it, but another Fatal error: Call to undefined function occured
Is there something wrong with my WAMP5 configuration?
Thanks
Your version of php is to old... as Royal Bg suspected.
Either upgrade to 1.6.6 for php 5.2. But if there is no reason to use such an old version switch to something less than 7 years old :)
see:
http://sourceforge.net/p/wampserver/news/?source=navbar
Warning: preg_match() [function.preg-match]: Compilation failed: repeated subpattern is too long at offset 18454 in /Smarty_Compiler.class.php on line 454
Fatal error: Smarty error: [in login.tpl line 1]: syntax error: unrecognized tag: php (Smarty_Compiler.class.php, line 455)
this message coming.. it was working perfect on dev server but on live server its not working.
Dev php version was 5.2.14
new server has PHP Version 5.2.6
is this the problem?
What smarty version are you using?
This thread seems to imply it has to do with a combination of Smarty versions and php version:
http://www.smarty.net/forums/viewtopic.php?t=14563
For most users the sollution seems to be to downgrade Smarty from 2.6.21 to 2.6.20
It's kind of an old thread though, so check if it applies, but it seems akin to your problem.
Which version you are using ?
Use the latest version of smarty it might solve your problem.