Jani,
Thanks very much. The bug has been fixed, it was actually due to disk full
which caused MySQL database crash.
Regards,
Ed
-----Original Message-----
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 10:12 AM
To: [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: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To: sniper
Comments:
Is this problem still valid?
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-02-26 18:01:01] [EMAIL PROTECTED]
[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-02-26 18:00:04] [EMAIL PROTECTED]
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 17:35:29] [EMAIL PROTECTED]
$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 17:29:18] [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@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
---------------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]