Page 1 of 1

smarty related install error

Posted: Thu Oct 12, 2006 9:10 pm
by rcaban
Installing with postgresql 8.1.3 and php 5.1.2
Regardless of whether or not smarty is turned on in the config.php file.

I can pull up /~cmsmadesimple/admin  and login as the administrative user  However, when I go to the site or attempt to preview a page I get the following error.


Fatal error: Call to undefined function token_get_all() in /home/cmsmadesimple/public_html/lib/smarty/internals/core.write_compiled_include.php on line 45
As a fatal error it crashes it all and what I get is a totally white screen.  Not useful yet.  How to fix?

Re: smarty related install error

Posted: Thu Oct 12, 2006 11:49 pm
by Dee
token_get_all is a PH Pfunction, it only works if PHP is compiled with tokenizer support (compiled with --enable-tokenizer).
See http://www.php.net/manual/en/function.token-get-all.php and http://www.php.net/manual/en/ref.tokenizer.php

Regards,
D

Re: smarty related install error

Posted: Fri Oct 13, 2006 12:01 am
by calguy1000
Install the tokenizer extensions for php 5 and it'll solve your problems..... I answered this question once already :)

Re: smarty related install error

Posted: Fri Jan 19, 2007 11:02 pm
by p3n1x
i get this too and installes /ports/devel/php-tokenizer port n restarted but im still gettin this error....

usin php 5 i see this is kinda common?

what am i missing here?