Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

2.6.21 issues
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Hudin
Smarty Rookie


Joined: 03 Dec 2008
Posts: 6

PostPosted: Wed Dec 03, 2008 2:38 am    Post subject: 2.6.21 issues Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Dec 03, 2008 2:43 pm    Post subject: Reply with quote

Did you upgrade PHP as well? There seems to be a bug with pcre?

http://bugs.php.net/bug.php?id=39415&edit=3
Back to top
View user's profile Send private message Visit poster's website
Hudin
Smarty Rookie


Joined: 03 Dec 2008
Posts: 6

PostPosted: Wed Dec 03, 2008 7:18 pm    Post subject: Running 5.1.2 Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Dec 03, 2008 7:49 pm    Post subject: Reply with quote

So you have verified that PHP 5.1.x works fine?
Back to top
View user's profile Send private message Visit poster's website
Hudin
Smarty Rookie


Joined: 03 Dec 2008
Posts: 6

PostPosted: Thu Dec 04, 2008 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Dec 04, 2008 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
paul.blair
Smarty n00b


Joined: 05 Dec 2008
Posts: 3

PostPosted: Fri Dec 05, 2008 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
momobaxter
Smarty n00b


Joined: 05 Dec 2008
Posts: 3

PostPosted: Fri Dec 05, 2008 5:27 pm    Post subject: Smarty SVN + PHP 5.1.6-20 Reply with quote

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
View user's profile Send private message
momobaxter
Smarty n00b


Joined: 05 Dec 2008
Posts: 3

PostPosted: Fri Dec 05, 2008 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Dec 05, 2008 10:01 pm    Post subject: Reply with quote

do you have a test case template that fails with a clean install?
Back to top
View user's profile Send private message Visit poster's website
paul.blair
Smarty n00b


Joined: 05 Dec 2008
Posts: 3

PostPosted: Fri Dec 05, 2008 10:14 pm    Post subject: Reply with quote

yes, the demo template!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Dec 05, 2008 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
paul.blair
Smarty n00b


Joined: 05 Dec 2008
Posts: 3

PostPosted: Fri Dec 05, 2008 11:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
sufehmi
Smarty n00b


Joined: 07 Dec 2008
Posts: 3

PostPosted: Sun Dec 07, 2008 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sun Dec 07, 2008 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP