Page 1 of 1

error viewing site after successful installation

Posted: Mon Jun 06, 2005 9:43 am
by kancha
Hi:

I'm a first timer. Just installed the latest beta. The installation process went smoothly. After successful installatin when i clicked the link to view the site i get the following error.

Fatal error: Call to undefined function token_get_all() in /cms/lib/smarty/core/core.write_compiled_include.php on line 45

The admin section works fine. Only the main site (public interface) has this problem. I'm using php 5, apache 2 on a gentoo system.

Re: error viewing site after successful installation

Posted: Tue Jun 07, 2005 12:44 am
by Ted
Are you sure it's php5?  token_get_all is definatly in php5 and every version after 4.2.0.  I'd probably have to look at the Smarty forums to see what is up.  As soon as I get some time, I will, unless someone else is interested.  ;)

Re: error viewing site after successful installation

Posted: Tue Jun 07, 2005 7:35 am
by kancha
yes, I'm sure.
PHP 5.0.2

Re: error viewing site after successful installation

Posted: Wed Jun 08, 2005 2:47 pm
by kancha
reverted to php version 4 and things seems to work. 

Re: error viewing site after successful installation

Posted: Wed Jun 08, 2005 3:47 pm
by Ted
That's too weird.  I'm running on php5 and I've never seen that problem.

Re: error viewing site after successful installation

Posted: Thu Jun 09, 2005 3:45 am
by kancha
i had manually compiled may be missed some configure parameter that was required to enable the function ? or is it compiled by default ?

just a thought.

Re: error viewing site after successful installation

Posted: Thu Jun 09, 2005 6:52 am
by Ted
Well, in theory it should be compiled by default.  But you never know what the ebuild guys are doing with it.  There could be some build flag that turns off the tozenizer for some reason or another.

http://us2.php.net/manual/en/ref.tokenizer.php

Re: error viewing site after successful installation

Posted: Wed Aug 10, 2005 11:33 am
by Steven
I had the same problem. Running FreeBSD 5.4-RELEASE, php-5.0.4, apache2.

I fixed it by installing the package "php5-tokenizer". Maybe this can help you the next time?

Re: error viewing site after successful installation

Posted: Wed Dec 21, 2005 10:36 pm
by Findorf
Did you find any solution? I'm using a webhost (b-one.dk) and cant recompile anything.

Please help!

I'm using PHP5 and register globals off

.johannes

Re: error viewing site after successful installation

Posted: Mon Jan 02, 2006 12:14 pm
by polinderkp
Findorf wrote: Did you find any solution? I'm using a webhost (b-one.dk) and cant recompile anything.

Please help!

I'm using PHP5 and register globals off

.johannes
Same problem here. Also using B-one. Anyone a solution?
On my localhost and another webhost (solcon.net) it works perfect.

Re: error viewing site after successful installation

Posted: Mon Jan 02, 2006 12:26 pm
by westis
Hi polinderkp,

I'm using B-One too and have no problems. Do you get the token_get_all() error mentioned in the first topic in this thread?

Re: error viewing site after successful installation

Posted: Mon Jan 02, 2006 12:36 pm
by polinderkp
get same error indeed. Admin section works fine. Have set PHP5 and register globals off.  :-\

Re: error viewing site after successful installation

Posted: Wed Feb 22, 2006 4:35 pm
by polinderkp
Still having same problem. I've read in this topic that the tokenizer module maybe is the problem, but westis, having same host, have no problems?  ???

Someone a solution?

Re: error viewing site after successful installation

Posted: Sun Mar 12, 2006 1:54 pm
by Gns
polinderkp wrote: Still having same problem. I've read in this topic that the tokenizer module maybe is the problem, but westis, having same host, have no problems?  ???

Someone a solution?
Only viable thing is to do the support chat with b-one and get them to do the right thing, or revert back to php4 ... Their version of that is prior to the introduction of that particular function call. My guess is that westis is running php4, not php5 (5.1.1 currently at b-one).

What bugs me is that other CMSes I've got installed that also use smarty doesn't exhibit this problem....  >:(
Oh well.

-- Glenn

Re: error viewing site after successful installation

Posted: Tue Oct 17, 2006 11:44 pm
by alfonx
:D gentoo users probably have to switch the tokenizer use flag on in their /etc/make.conf ...
greez, alfonx