Author |
Message |
Topic: Custom resource in combination with variable resource name |
xilentxage
Replies: 0
Views: 6800
|
Forum: Installation and Setup Posted: Sun Feb 12, 2012 5:21 pm Subject: Custom resource in combination with variable resource name |
Hi again,
Since my upgrade from 2.x to newest version I'm rewriting my custom resource handlers since apparently a lot has changed.
Please consider my code for the resource handler 'Afile'. I u ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Sat Feb 11, 2012 10:41 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
Did your FTP client (or whatever transfer protocol / client you used) modify the Smarty files regarding charset?
What's the charset PHP is running under? What charset are the files?
Which PHP-Versi ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Thu Feb 09, 2012 9:39 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
Another strange case.
I totally cleaned up a test-domain. Only index.php and .htaccess (which sends all requests to index.php) there. Also I installed Smarty (in folder /Smarty-3.1.7)
My index.p ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Thu Feb 09, 2012 8:47 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
Strange thing is there still seems to be some caching going on somewhere.
When I use the example script it works.
Case 1:
When I change to $smarty->setCaching(false) the error appears
When ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Thu Feb 09, 2012 7:23 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
Ok so I reinstalled Smarty, but still the same problem... getting kinda desperate here since I would love to upgrade to 3.x |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 10:02 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
deleted both compile- and cache dir. Now using the following code:
include('Smarty.class.php');
$smarty = new Smarty;
$smarty->setCaching(false);
$smarty->force_compi ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 9:24 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
Examplecode from http://www.smarty.net/docs/en/api.fetch.tpl
include('Smarty.class.php');
$smarty = new Smarty;
$smarty->setCaching(true);
// set a separate cache_id for ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 9:17 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
why should same class be unknown a bit later in the parser, no glue...
I do. I guess because caching was on it still gave the same error with the example code. But what I didnt notice last time is ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 8:17 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
It should output 'class defined'.
it does |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 7:00 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
Ok I switched to the most basic example in the documentation:
require_once("Smarty-3.1.7/libs/Smarty.class.php");
$smarty = new Smarty;
$smarty->setCaching(t ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 9:15 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
How do you set your own templates?
please see my code above. It uses a cascade to find the template. It first checks if a custom template exists in the pagedir, then it checks if it exists in the t ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 8:38 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
Maybe this helps?
Smarty Installation test...
Testing template directory...
FAILED: ./templates/ does not exist.
Testing compile directory...
*****/smarty_compile is OK.
Testing plugins direct ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Tue Feb 07, 2012 7:28 am Subject: Fatal error: Class '_smarty_template_buffer' not found |
This is strange
Please provide the complete traceback information of the error message.
Fatal error: Class '_smarty_template_buffer' not found in
Other topic:
In Smarty3 you should not set th ... |
Topic: Fatal error: Class '_smarty_template_buffer' not found |
xilentxage
Replies: 22
Views: 44697
|
Forum: Installation and Setup Posted: Mon Feb 06, 2012 8:42 pm Subject: Fatal error: Class '_smarty_template_buffer' not found |
Hi,
I try to upgrade from version 2.x to the newest one. I noticed some function names were changed so I had to make some minor adjustments. However now I'm stuck with this error:
Fatal error: C ... |
Topic: Strange issue with array keys |
xilentxage
Replies: 1
Views: 3992
|
Forum: General Posted: Mon Oct 25, 2010 7:44 am Subject: Strange issue with array keys |
Hi,
I have this array assigned:
Array
(
[0] => Array
(
[field] => gebruikersnaam
[type] => gebruikersnaam
... |
|