RE: [PHP] Call to a member function on a non-object
Hi guys could the fatal error be caused because of something to do with cache? I am running the scripts on my pc and not a server ie:(localhost). thanx -Original Message- From: adwinwijaya [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:35 PM To: Angelo Zanetti Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Call to a member function on a non-object Hello Angelo, Thursday, February 12, 2004, 11:33:39 PM, you wrote: AZ HI, AZ I used my scripts yesterday and suddenly today they dont work and I get this AZ error: Call to a member function on a non-object AZ it points to erroneous line that calls a function in 1 of my classes. The AZ class and this particular file have not been changed since i used them yest. AZ I also checked my DB and all is perfect. I read somewhere on the net that it AZ could have something to do with cache. But i couldnt find any helpful info. AZ perhaps someone has experienced this error before and what could cause it AZ and how do i fix it? AZ thanx in advance AZ Angelo -- may be you have to check whether you have already include the file -- or not .. sometimes, include_once (or require_once) could lead to -- this error .. so try to use include or require .. hope it work :) -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Call to a member function on a non-object SOLVED
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:23 AM To: adwinwijaya Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Call to a member function on a non-object Hi guys could the fatal error be caused because of something to do with cache? I am running the scripts on my pc and not a server ie:(localhost). thanx -Original Message- From: adwinwijaya [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:35 PM To: Angelo Zanetti Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Call to a member function on a non-object Hello Angelo, Thursday, February 12, 2004, 11:33:39 PM, you wrote: AZ HI, AZ I used my scripts yesterday and suddenly today they dont work and I get this AZ error: Call to a member function on a non-object AZ it points to erroneous line that calls a function in 1 of my classes. The AZ class and this particular file have not been changed since i used them yest. AZ I also checked my DB and all is perfect. I read somewhere on the net that it AZ could have something to do with cache. But i couldnt find any helpful info. AZ perhaps someone has experienced this error before and what could cause it AZ and how do i fix it? AZ thanx in advance AZ Angelo -- may be you have to check whether you have already include the file -- or not .. sometimes, include_once (or require_once) could lead to -- this error .. so try to use include or require .. hope it work :) -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to a member function on a non-object
HI, I used my scripts yesterday and suddenly today they dont work and I get this error: Call to a member function on a non-object it points to erroneous line that calls a function in 1 of my classes. The class and this particular file have not been changed since i used them yest. I also checked my DB and all is perfect. I read somewhere on the net that it could have something to do with cache. But i couldnt find any helpful info. perhaps someone has experienced this error before and what could cause it and how do i fix it? thanx in advance Angelo Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to a member function on a non-object
Hello Angelo, Thursday, February 12, 2004, 12:33:39 PM, you wrote: AZ I used my scripts yesterday and suddenly today they dont work and I get this AZ error: Call to a member function on a non-object If you have changed *nothing* at all that could influence the outcome of this script then I would suggest you just upload your original files again and over-write what is on the server. It's possible they have been corrupted somehow. Failing that it's time to start debugging - if you use a decent IDE like Zend then start slapping breakpoints and watches all over the place. If you don't, start echo'ing out values left right and centre as you enter key parts of your script. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to a member function on a non-object
Hello Angelo, Thursday, February 12, 2004, 11:33:39 PM, you wrote: AZ HI, AZ I used my scripts yesterday and suddenly today they dont work and I get this AZ error: Call to a member function on a non-object AZ it points to erroneous line that calls a function in 1 of my classes. The AZ class and this particular file have not been changed since i used them yest. AZ I also checked my DB and all is perfect. I read somewhere on the net that it AZ could have something to do with cache. But i couldnt find any helpful info. AZ perhaps someone has experienced this error before and what could cause it AZ and how do i fix it? AZ thanx in advance AZ Angelo -- may be you have to check whether you have already include the file -- or not .. sometimes, include_once (or require_once) could lead to -- this error .. so try to use include or require .. hope it work :) -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to a member function on a non-object...?
Hi. When I try to call a manual defined function in my function.inc file, I get the error: Fatal error: Call to a member function on a non-object in /www/xyz/.. on line xy I've defined the function in a seperate .inc file and included this is the mainpage. Do you have any solutions for this problem? Thanks, Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to a member function on a non-object error!
Fatal error: Call to a member function on a non-object in /home/cmradmin/public_html/thus/basket.php on line 304 Does anyone know what the flaming heck that means? I'm trying to fix this little problem which has only appeared since my webserver upgraded to PHP4. Line 304 contains this: $MyCart-Display($Orderno); Which is calling the function from this class: class MyCart extends Cart { function Display($orderno) { echo called dummy...; // this isnt the real function this is just a dummy } } I can't quite figure out the error message itself, it doesnt really make any sense. Any help appreciated! Cheers. -- Greg Fyans [EMAIL PROTECTED]
Re: [PHP] Call to a member function on a non-object
Hi, $db is not an object, but a link identifier returned by mysql_connect(). Wieger Ender wrote: Okay I get the: Call to a member function on a non-object error when trying to execute this script: It happens in this area: $db=mysql_connect(localhost,'***','***') or die(Unable to connect to database); $edlist = new EditList(serverId, hlstats_Servers, server); $edlist-columns[] = new EditListColumn(game, Game, 0, true, hidden, $gamecode); $edlist-columns[] = new EditListColumn(address, IP Address, 15, true, ipaddress, , 15); $edlist-columns[] = new EditListColumn(port, Port, 5, true, text, 27015, 5); $edlist-columns[] = new EditListColumn(name, Server Name, 22, true, text, , 64); $edlist-columns[] = new EditListColumn(rcon_password, Rcon Password, 10, false, text, , 48); $edlist-columns[] = new EditListColumn(publicaddress, Public Address, 20, false, text, , 64); $edlist-columns[] = new EditListColumn(statusurl, Status URL, 20, false, text, , 255); if ($HTTP_POST_VARS) { if ($edlist-update()) message(success, Operation successful.); else message(warning, $edlist-error()); } ? Enter the addresses of all servers that you want to accept data from here.p ?php $result = $db-query( SELECT serverId, address, port, name, publicaddress, statusurl, rcon_password FROM hlstats_Servers WHERE game='cstrike' ORDER BY address ASC, port ASC ); More specificially it happens on this line: $result = $db-query( What am I doing wrong here? Best regards, Ender [Clan Leader] [EMAIL PROTECTED] -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl -- PHP General 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]
[PHP] Call to a member function on a non-object
Okay I get the: Call to a member function on a non-object error when trying to execute this script: It happens in this area: $db=mysql_connect(localhost,'***','***') or die(Unable to connect to database); $edlist = new EditList(serverId, hlstats_Servers, server); $edlist-columns[] = new EditListColumn(game, Game, 0, true, hidden, $gamecode); $edlist-columns[] = new EditListColumn(address, IP Address, 15, true, ipaddress, , 15); $edlist-columns[] = new EditListColumn(port, Port, 5, true, text, 27015, 5); $edlist-columns[] = new EditListColumn(name, Server Name, 22, true, text, , 64); $edlist-columns[] = new EditListColumn(rcon_password, Rcon Password, 10, false, text, , 48); $edlist-columns[] = new EditListColumn(publicaddress, Public Address, 20, false, text, , 64); $edlist-columns[] = new EditListColumn(statusurl, Status URL, 20, false, text, , 255); if ($HTTP_POST_VARS) { if ($edlist-update()) message(success, Operation successful.); else message(warning, $edlist-error()); } ? Enter the addresses of all servers that you want to accept data from here.p ?php $result = $db-query( SELECT serverId, address, port, name, publicaddress, statusurl, rcon_password FROM hlstats_Servers WHERE game='cstrike' ORDER BY address ASC, port ASC ); More specificially it happens on this line: $result = $db-query( What am I doing wrong here? Best regards, Ender [Clan Leader] [EMAIL PROTECTED]