Discussion:
Funktion token_get_all() fehlt?
(zu alt für eine Antwort)
Nico Hoffmann
2009-03-05 19:39:55 UTC
Permalink
Hallo,

ich habe auf meinem PC MLF (<http://mylittleforum.net/>) Version 2.0.2
installiert. Die Installation lief soweit anstandslos durch, nur wenn
ich das Forum aufrufe, bekomme ich auf einigen Seiten folgende
Fehlermeldung:

Fatal error: Call to undefined function token_get_all() in
/home/nico/public_html/ftest/v2/forum/modules/smarty/plugins/compiler.defun.php
on line 49

Soweit ich bisher verstanden habe, ist token_get_all() eine Funktion,
die PHP mitbringt, also kann der Autor der Forensoftware nicht daran
schuld sein, dass sie nicht da ist. Damit endet dann aber auch schon
meine Weisheit, und ich bräuchte jetzt einen Tipp, wie ich weiter
vorgehen soll.

Das alles läuft auf einem Gentoo-Linux mit Apache2 und PHP 5.2.6-r6.

Kann mir jemand einen Hinweis geben?

N.
--
Alarm Notification Low: Return of Submodule
Karl Pflästerer
2009-03-05 20:05:09 UTC
Permalink
Nico Hoffmann <***@gmx.de> writes:

[...]
Post by Nico Hoffmann
Soweit ich bisher verstanden habe, ist token_get_all() eine Funktion,
die PHP mitbringt, also kann der Autor der Forensoftware nicht daran
schuld sein, dass sie nicht da ist. Damit endet dann aber auch schon
meine Weisheit, und ich bräuchte jetzt einen Tipp, wie ich weiter
vorgehen soll.
php -i verrät dir ob die Tokenizer Extension mit einkompiliert wurde.
Falls nicht: PHP neu kompilieren.
http://docs.php.net/manual/en/tokenizer.installation.php

KP
Thomas Mlynarczyk
2009-03-05 20:14:53 UTC
Permalink
Post by Nico Hoffmann
Fatal error: Call to undefined function token_get_all() in
/home/nico/public_html/ftest/v2/forum/modules/smarty/plugins/compiler.defun.php
on line 49
Das alles läuft auf einem Gentoo-Linux mit Apache2 und PHP 5.2.6-r6.
<google query="undefined function token_get_all">
It's caused by not having the php tokenizer enabled on your system. If
you run Gentoo, it's disabled by default and you will need to set the
"tokenizer" use flag and re-emerge.
</google>

<google query="undefined function token_get_all">
When your webhoster don't support tokenizer, you must change line 39 in
file \includes\classes\Smarty\core\core.write_compiled_include.php:
BEFORE
$this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this';
AFTER
$this_varname = ((double)phpversion() >= 5.0 and
function_exists(token_get_all)) ? '_smarty' : 'this';
</google>

Wühle Dich mal selber durch die Ergebnisliste. Ich dachte bis eben auch,
daß der Tokenizer immer und überall da ist. Man lernt eben nie aus.

Gruß,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
Nico Hoffmann
2009-03-05 21:39:54 UTC
Permalink
Post by Thomas Mlynarczyk
Post by Nico Hoffmann
Fatal error: Call to undefined function token_get_all() in
/home/nico/public_html/ftest/v2/forum/modules/smarty/plugins/compiler.defun.php
on line 49
Das alles läuft auf einem Gentoo-Linux mit Apache2 und PHP 5.2.6-r6.
<google query="undefined function token_get_all">
It's caused by not having the php tokenizer enabled on your system. If
you run Gentoo, it's disabled by default and you will need to set the
"tokenizer" use flag and re-emerge.
</google>
Bingo. tokenizer in die USE-Flags der /etc/make.conf eingetragen und
ein 'emerge --newuse php' ausgeführt, und jetzt gehts.
Post by Thomas Mlynarczyk
Wühle Dich mal selber durch die Ergebnisliste. Ich dachte bis eben auch,
daß der Tokenizer immer und überall da ist. Man lernt eben nie aus.
Bei Gentoo ist eigentlich immer nur das dabei, was du eingetragen
hast. Ich habe nur den Sprung von der Fehlermeldung zum USE-Flag nicht
geschafft, auch, weil ich mit PHP noch nicht vertraut bin.

Danke für die Antworten, auch an Karl.

N.
--
Alarm Notification Low: Return of Submodule
Loading...