Re: [phplib] Error: Non-existant class User From: Mike Green (Mike.Green <email protected>)
Date: 06/26/01

At first glance at least, this does appear weird ... almost as if there
is some invisible character between "new" and "template" making "new
template" appear to the parser as if it were one string with no
spaces... I don't see the source of the problem right away.

It would be well if you were to post these responses to the list, also.
(This list requires one to respond with "Reply to all" for that to
happen.) Many sets of eyes are usually better than one in finding
problems. ;-)

Brant wrote:

> Okay, I'm a dork. You're right about that, I think. Ihad commented out
> the user, auth and permissionsrequire() statements in prepend.php3
> since itappeared like I didn't need them. I guess I do. Iuncommented
> them and that error went away. But wait..... I also realized I had
> forgotten to declare a new templateobject with something like this: $T
> = new Template("../pages/"); However, my error is now: Fatal error:
> Call to unsupported or undefined function new template() in
> /nfs/WWW_pages/source/new_site/phplib-7.2b/test/php_control/one.php3
> on line 24Ack! I know that template.inc has been included(I did a test
> by adding in an echo statement atthe beginning of template.inc and it
> appeared inthe browser....the first thing that worked!). SoI'm
> confused, new Template () should NOT beunsupport or undefined. Wassup?
> Brant
>
>> Do you have a line something like:
>> require($_PHPLIB["libdir"] . "user.inc");
>> in your prepend.php file somewhere before
>> require($_PHPLIB["libdir"] . "local.inc");
>> ?
>>
>> Brant Smith wrote:
>>
>> > Okay, here's the error I've hit. It's a brick wall;
>> > I can't seem to get past it. What does this mean?
>> > How can I debug this? What am I missing?
>> >
>> > I'm trying to use the template engine only....no
>> > auth, perm, sessions or even db connection (the
>> > latter will come later).
>> >
>> > Here's the error:
>> >
>> > Fatal error: Cannot extend non existant class User in
>> > /nfs/WWW_pages/source/new_site/phplib-7.2b/php/local.inc on line
>> 62
>> > --
>> >
>> > precision custom engineering for the web
>> > http://www.antecode.com/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>