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.
Related
We recently went through a website migration, PHP & WP upgrades. We are currently using a customized theme and keep getting the following error once we upgrade from PHP 5.6 to 7.0:
Fatal error: Cannot redeclare get_resources() (...) /functions.php on line 220
Already changed all include to include_once, but still getting the same error.
Anyone ever went through a similar issue?
PHP introduced a function called get_resources() in PHP7:
get_resources
(PHP 7)
get_resources — Returns active resources
Read full manual entry here.
--
You'll have to upgrade your WordPress version to the latest out - the fix will be in there.
Hi Recently I have updated my PHP version from 5.0 to 5.4,but it creates error in my CakePHP projects because it was running on older version of PHP the error are
Fatal Error: syntax error, unexpected end of file
It is common error error displaying on every projects how to remove this please help.thanks
Open you short_open tag in your php.ini file
short_open_tag=Off
To
short_open_tag=On
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
I have developed new website in Joomla 3 and now want to transfer it to new hosting and domain.
I have copied all files and directories and created databases. Also changed configuration file.
The problem is that new hosting company runs PHP 5.2.17 version and I removed this string in index.php where it is checking for php version.
After that I have strange error
Warning: require_once(__DIR__/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory in /usr/.../public_html/index.php on line 28
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/.../public_html/index.php on line 28
How can I fix it? Thanks in advance. I can not use php.ini and changing hosting company is big problem.
Minimum requirement of PHP version is PHP 5.3 for Joomla 3. So you should upgrade your PHP version otherwise use Joomla 2.5
You may get other issues also, if you use Joomla 3 on PHP 5.2. To fix this issue you need to replace __DIR__ with dirname(__FILE__)
The version check isn't just for show. Requirements for Joomla 3.* is PHP 5.3.1 or higher.
Even if you fix what bugs you find now, you will definitely encounter problems later if you do not upgrade the PHP version.
Just to get an idea of how ugly things can get - check the PHP changelog. There are a lot of changes in 5.3.0 and 5.3.1, and any of them can cause unexpected behavior.
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