[PHP-DEV] RE: PHP 4.0 Bug #9471 Updated: Warning: $CS is not an object in /www/wwwx/index.phtml on line 25 From: Ed Lee (elee <email protected>)
Date: 02/26/01

I don't know why, our web site visabrc.com was working for years and problem
occurred on last Saturday. No body changed any include files or so.

However,

In /usr/local/lib/php/class.Visitor.inc, we had $CS declared:

<?php
class Visitor extends Service {
    var $visitorid, $vpromo, $CS, $promoCS;
...

Thanks,
Ed
-----Original Message-----
From: Bug Database [mailto:php-dev <email protected>]
Sent: Monday, February 26, 2001 5:35 PM
To: elee <email protected>
Subject: PHP 4.0 Bug #9471 Updated: Warning: $CS is not an object in
/www/wwwx/index.phtml on line 25

ID: 9471
Updated by: sbergmann
Reported By: elee <email protected>
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:

$CS seems not to be an instantiated object of a defined class. You should
provide us with your class definition, if this is the cause of your
problems.

Previous Comments:
---------------------------------------------------------------------------

[2001-02-26 17:29:18] elee <email protected>
Warning: $CS is not an object in /www/wwwx/index.phtml on line 25
Warning: $CS is not an object in /www/wwwx/index.phtml on line 26
Warning: $CS is not an object in /www/wwwx/index.phtml on line 28
Fatal error: Member function used on a non-object in /www/wwwx/index.phtml
on line 28

===
[custroot <email protected> wwwx]# ls -l index.phtml
-rw-rw-r-- 1 root other 827 Jun 30 2000 index.phtml

(Line 25-28 of /www/wwwx/index.phtml)

 $V->CS->sckey = "speed";
    $V->CS->scval = "";

    if ( $V->CS->searchCSKey("speed") == "" ) {
======
Warning: $CS is not an object in brc_speedcheck.inc on line 3
Warning: $CS is not an object in brc_speedcheck.inc on line 4
Warning: $CS is not an object in brc_speedcheck.inc on line 5
Fatal error: Member function used on a non-object in brc_speedcheck.inc on
line 5

/usr/local/lib/php

[custroot <email protected> php]# head brc_speedcheck.inc
<?php

$V->CS->sckey = "speed";
$V->CS->scval = "";
if ( $V->CS->searchCSKey("speed") == "" ) { header("Location:
/sysdoc.phtml?1006,,,,ref"); }

?>[custroot <email protected> php]# ls -l brc_speedcheck.inc
-rw-rw-r-- 1 root other 148 Aug 23 2000 brc_speedcheck.inc

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9471&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>