View previous topic :: View next topic |
Author |
Message |
Hudin Smarty Rookie
Joined: 03 Dec 2008 Posts: 6
|
Posted: Wed Dec 03, 2008 2:38 am Post subject: 2.6.21 issues |
|
|
I'm moving my sites to a new server and thought I'd put up the newly released 2.6.21 library. It appears to have some problems. If I try to load pages that aren't already cached in my templates_c directory, I get a big fat preg_match error:
Warning: preg_match() [function.preg-match]: Compilation failed: repeated subpattern is too long at offset 18454 in /www/smrt/libs/Smarty_Compiler.class.php on line 454
I moved back to 2.6.20 and fired everything up without a problem. If I move 2.6.21 back in once all the pages are cached, things are good. Problem with 2.6.21 or just a new way that caching is handled which I'm not aware of? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
Hudin Smarty Rookie
Joined: 03 Dec 2008 Posts: 6
|
Posted: Wed Dec 03, 2008 7:18 pm Post subject: Running 5.1.2 |
|
|
I unfortunately don't have too much of a choice in this, but at least I've got a 5.1 variant. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Dec 03, 2008 7:49 pm Post subject: |
|
|
So you have verified that PHP 5.1.x works fine? |
|
Back to top |
|
Hudin Smarty Rookie
Joined: 03 Dec 2008 Posts: 6
|
Posted: Thu Dec 04, 2008 4:01 am Post subject: |
|
|
Yes, 5.1 appears to fine. Like I said, 2.6.20 works without any problem on the same server. Someone else who is running 2.6.21 should wipe their site's templates_c directory and then try to fire up the site again and have it write the caches anew. If it works for them, then it's something deeper in my system, although I don't know what. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Dec 04, 2008 4:19 am Post subject: |
|
|
So the question is, does Smarty 2.6.21 work ok with PHP 5.1.x. If so, then PCRE is most certainly the case. |
|
Back to top |
|
paul.blair Smarty n00b
Joined: 05 Dec 2008 Posts: 3
|
Posted: Fri Dec 05, 2008 4:39 pm Post subject: |
|
|
I'm running PHP 5.2.6 and just did a clean install of 2.6.21 which resulted in the same error as the first poster |
|
Back to top |
|
momobaxter Smarty n00b
Joined: 05 Dec 2008 Posts: 3
|
Posted: Fri Dec 05, 2008 5:27 pm Post subject: Smarty SVN + PHP 5.1.6-20 |
|
|
I can confirm this happening on CentOS 5.2 running Plesk 8.6.0.
PHP version: php-5.1.6-20.el5_2.1
Smarty SVN checkout.
From apache error logs:
[Fri Dec 05 11:04:14 2008] [error] [client xxx.xxx.xxx.xxx] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: repeated subpattern is too long at offset 18454 in /library/smarty/Smarty_Compiler.class.php on line 454
[Fri Dec 05 11:04:14 2008] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Smarty error: [in main.tpl line 7]: syntax error: unrecognized tag: $name (Smarty_Compiler.class.php, line 455) in /library/smarty/Smarty.class.php on line 1092
== Notes ==
Moved back to 2.6.20 and it does work now. |
|
Back to top |
|
momobaxter Smarty n00b
Joined: 05 Dec 2008 Posts: 3
|
Posted: Fri Dec 05, 2008 6:18 pm Post subject: |
|
|
mohrt wrote: | So the question is, does Smarty 2.6.21 work ok with PHP 5.1.x. If so, then PCRE is most certainly the case. |
No, it does not. I started with 2.6.21 on PHP 5.1.6 and got the error. Then I tried the SVN head and still got the same error.
2.6.20 works fine. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Dec 05, 2008 10:01 pm Post subject: |
|
|
do you have a test case template that fails with a clean install? |
|
Back to top |
|
paul.blair Smarty n00b
Joined: 05 Dec 2008 Posts: 3
|
Posted: Fri Dec 05, 2008 10:14 pm Post subject: |
|
|
yes, the demo template! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Dec 05, 2008 11:05 pm Post subject: |
|
|
Ok I'm running smarty SVN (identical to 2.6.21) on PHP 5.1.6, demo compiles without problems. U.Tews says PHP 5.2.6 works fine for him. It looks like PHP 5.2.7 was just released. Can someone with the errors try PHP 5.2.7?
edit: I just grabbed the Smarty 2.6.21 zip to be certain, and ran against PHP 5.1.6, confirmed demo compiles and works fine. What OS are you using? |
|
Back to top |
|
paul.blair Smarty n00b
Joined: 05 Dec 2008 Posts: 3
|
Posted: Fri Dec 05, 2008 11:13 pm Post subject: |
|
|
Cent OS 5..2
Last edited by paul.blair on Sun Dec 07, 2008 10:58 am; edited 1 time in total |
|
Back to top |
|
sufehmi Smarty n00b
Joined: 07 Dec 2008 Posts: 3
|
Posted: Sun Dec 07, 2008 4:26 am Post subject: |
|
|
Exactly same problem here, installed Smarty 2.6.21 and got that error message.
Was pulling out my hairs, until I found this page via Google.
So I downloaded 2.6.20 -- and, instantly, the error is gone. Now my apps will execute with no problem whatsoever.
I'm using Mac OS X 10.4.11 on PowerPC processor, PHP 5.2.1, Apache 2.2.4.
FYI, thanks! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sun Dec 07, 2008 8:39 pm Post subject: |
|
|
sufehmi wrote: | Exactly same problem here, installed Smarty 2.6.21 and got that error message.
Was pulling out my hairs, until I found this page via Google.
So I downloaded 2.6.20 -- and, instantly, the error is gone. Now my apps will execute with no problem whatsoever.
I'm using Mac OS X 10.4.11 on PowerPC processor, PHP 5.2.1, Apache 2.2.4.
FYI, thanks! |
Is there any way you could update PHP and see if the error goes away? |
|
Back to top |
|
|