Author |
Message |
Topic: <b>Fatal error</b>: Call to undefined function |
jonyo
Replies: 8
Views: 32500
|
Forum: Smarty 3 Posted: Wed Nov 07, 2012 7:27 pm Subject: <b>Fatal error</b>: Call to undefined function |
This still happens, I've found on servers that have MBString enabled, but have MB Regex disabled, this happens. If they don't have MB String at all, the stuff that detects MB string built into smarty ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jun 22, 2012 3:43 am Subject: Getting error Invalid compiled template for '...' |
Hi,
I'm getting the same exceptions on another high-traffic site. Exceptions pop up even if nobody is updating any templates, the timestamp for cache files is not updated (which would normally caus ... |
Topic: 3.1.8 change (issue 71) breaks my post filter |
jonyo
Replies: 2
Views: 9318
|
Forum: Smarty Development Posted: Sat Apr 28, 2012 8:33 pm Subject: 3.1.8 change (issue 71) breaks my post filter |
We do have already some plans for a possibillity to add meta data to compiled and cache files.
This will be available in the upcomming version 3.2.
That's great, thanks for the info! I'll keep ... |
Topic: 3.1.8 change (issue 71) breaks my post filter |
jonyo
Replies: 2
Views: 9318
|
Forum: Smarty Development Posted: Thu Apr 26, 2012 7:38 pm Subject: 3.1.8 change (issue 71) breaks my post filter |
In my code, I use a post filter to add something to the header of the generated template code. The changes in 3.1.8 to fix
<?php
//file: postfilter.process_tags.php
function smarty_postf ... |
Topic: escape modifier doesn't work with versions before PHP 5.2.3 |
jonyo
Replies: 2
Views: 10013
|
Forum: Plugins Posted: Mon Mar 12, 2012 7:48 pm Subject: escape modifier doesn't work with versions before PHP 5.2.3 |
Took a while to figure out what was going on for one of our clients, we finally tracked it down to this PHP warning that was happening:
templates_c\1e269201f7338d87d6d69f0011b7a4d1dbf0e305.geo_tset ... |
Topic: <b>Fatal error</b>: Call to undefined function |
jonyo
Replies: 8
Views: 32500
|
Forum: Smarty 3 Posted: Mon Mar 05, 2012 8:13 pm Subject: <b>Fatal error</b>: Call to undefined function |
This still happens, I've found on servers that have MBString enabled, but have MB Regex disabled, this happens. If they don't have MB String at all, the stuff that detects MB string built into smarty ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Tue Jan 24, 2012 3:54 am Subject: Getting error Invalid compiled template for '...' |
Smarty3 does prevent concurrent compilations of same template when a template was updated.
I your case concurrent compilations have been forced by getTags() calls in production scripts which was no ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Mon Jan 23, 2012 7:58 pm Subject: Getting error Invalid compiled template for '...' |
Just wanted to update, I was able to find a solution to do what I needed without using getTags(). But my use of getTags only highlighted the problem originally posted, for high-traffic sites there is ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jan 13, 2012 7:43 pm Subject: Getting error Invalid compiled template for '...' |
OK so turns out like I said getTags will compile the template, and that is because it keeps track of what tags are used by adding to an array in the compileTag() method.
Think it would be possible ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jan 13, 2012 7:10 pm Subject: Getting error Invalid compiled template for '...' |
Doh! Did a debug_backtrace() on the method that writes the compiled template, and it is because we are using $smarty->getTags().
Apparently getTags() will always compile the template no matter ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jan 13, 2012 5:50 pm Subject: Getting error Invalid compiled template for '...' |
Smarty compares the file times of the source files with the compiled files, and recompiles if the source is newer. is anything touching the source files? is there any sort of error or fluctuation with ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jan 13, 2012 4:59 pm Subject: Getting error Invalid compiled template for '...' |
Oh, I assumed you meant you change templates on occasion, and that would be when an error would show up. Smarty does not have to recompile if the source templates don't change. Smarty does however, ch ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Fri Jan 13, 2012 2:49 am Subject: Getting error Invalid compiled template for '...' |
If it is a race condition, one question I have is why would something need to recompile the template? I thought once something was compiled, as long as the Smarty template engine is not updated, it d ... |
Topic: Getting error Invalid compiled template for '...' |
jonyo
Replies: 16
Views: 34502
|
Forum: General Posted: Thu Jan 12, 2012 11:20 pm Subject: Getting error Invalid compiled template for '...' |
I am making it so that smarty exceptions are caught, and it sends an e-mail to the admin user for our software application.
After doing this, we've gotten reports of people getting the error in the ... |
Topic: <b>Fatal error</b>: Call to undefined function |
jonyo
Replies: 8
Views: 32500
|
Forum: Smarty 3 Posted: Fri Dec 02, 2011 3:31 pm Subject: <b>Fatal error</b>: Call to undefined function |
...
But in any case this should be resolved with Smarty 3.1. We've reworked the entire system for proper UTF-8 compatibility.
…
Version 3.1 is now out, and we had someone report this same error, ... |
|