php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9471 Warning: $CS is not an object in /www/wwwx/index.phtml on line 25
Submitted: 2001-02-26 17:29 UTC Modified: 2001-04-10 10:41 UTC
From: elee at dglhco dot com Assigned: sniper (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: elee at dglhco dot com
New email:
PHP Version: OS:

 

 [2001-02-26 17:29 UTC] elee at dglhco dot com
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@ripvisaweb01 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@ripvisaweb01 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@ripvisaweb01 php]# ls -l brc_speedcheck.inc
-rw-rw-r--   1 root     other        148 Aug 23  2000 brc_speedcheck.inc

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-26 17:35 UTC] sbergmann@php.net
$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.

 [2001-02-26 18:00 UTC] cnewbill@php.net
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9471&edit=2

Use the bug interface to update this please.

Where is $CS actually given a value, the contstructor?  And have you gone through each step where $CS might be modified?  Do you keep your code in CVS or something similar so you can track possibly overlooked changes?
 [2001-02-26 18:01 UTC] cnewbill@php.net
[USER NOTES via Email]
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
 [2001-04-10 10:11 UTC] sniper@php.net
Is this problem still valid?

--Jani

 [2001-04-10 10:41 UTC] sniper@php.net
User feedback:
--------------
Thanks very much. The bug has been fixed, it was actually due to disk full which caused MySQL database crash.
--------------

Closed.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 17:02:17 2025 UTC