error viewing site after successful installation

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
kancha

error viewing site after successful installation

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: error viewing site after successful installation

Post 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.  ;)
kancha

Re: error viewing site after successful installation

Post by kancha »

yes, I'm sure.
PHP 5.0.2
kancha

Re: error viewing site after successful installation

Post by kancha »

reverted to php version 4 and things seems to work. 
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: error viewing site after successful installation

Post by Ted »

That's too weird.  I'm running on php5 and I've never seen that problem.
kancha

Re: error viewing site after successful installation

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: error viewing site after successful installation

Post 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
Steven

Re: error viewing site after successful installation

Post 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?
Findorf

Re: error viewing site after successful installation

Post 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
polinderkp

Re: error viewing site after successful installation

Post 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.
Last edited by polinderkp on Mon Jan 02, 2006 12:18 pm, edited 1 time in total.
westis

Re: error viewing site after successful installation

Post 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?
polinderkp

Re: error viewing site after successful installation

Post by polinderkp »

get same error indeed. Admin section works fine. Have set PHP5 and register globals off.  :-\
polinderkp

Re: error viewing site after successful installation

Post 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?
Gns

Re: error viewing site after successful installation

Post 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
alfonx

Re: error viewing site after successful installation

Post by alfonx »

:D gentoo users probably have to switch the tokenizer use flag on in their /etc/make.conf ...
greez, alfonx
Locked

Return to “[locked] Installation, Setup and Upgrade”