dmatwood Posted October 29, 2007 Posted October 29, 2007 I'm getting this message, Fatal error: Cannot redeclare class soapclient in /home/thecageb/public_html/Storefront/catalog/includes/classes/nusoap.php on line 7239 Can anyone tell me whats wrong with the code? it won't let me post the whole code, but the line is the } before ?> Thanks David <?php /* $Id: nusoap.php,v 1.94 2005/08/04 01:27:42 snichol Exp $ break; } if (! $found) { $this->debug('Add cookie ' . $newName . '=' . $newCookie['value']); $this->cookies[] = $newCookie; } } return true; } } ?>
Nullachtfuffzehn Posted October 29, 2007 Posted October 29, 2007 It hasn't something to do with that line rather than the class is already declared. Somehow the mentioned script is called twice somewhere.
dmatwood Posted October 29, 2007 Author Posted October 29, 2007 It hasn't something to do with that line rather than the class is already declared. Somehow the mentioned script is called twice somewhere. Can I email the code too you? thanks David
Guest Posted October 30, 2007 Posted October 30, 2007 Can I email the code too you?thanks David catalog/includes/classes/nusoap.php on line 7239 Well that is not an osc file and it is massive. Could search for class soapclient in your files.
Guest Posted November 28, 2007 Posted November 28, 2007 Hi everyone, I'm a totally beginner when it come to programing, so I hope some one can help me out with this problem too. My web site was running fine, but today when I try to test it, I too got the below message. Fatal error: Cannot redeclare class soapclient in /home/kidsworl/public_html/includes/classes/nusoap.php on line 7239 Can some one give me a clear direction of how to fix this problem? Thank you very much. :'(
Jan Zonjee Posted November 29, 2007 Posted November 29, 2007 I'm a totally beginner when it come to programing, so I hope some one can help me out with this problem too. My web site was running fine, but today when I try to test it, I too got the below message. Fatal error: Cannot redeclare class soapclient in /home/kidsworl/public_html/includes/classes/nusoap.php on line 7239 Can some one give me a clear direction of how to fix this problem? So it would be good if you read a book on PHP instead of relying on the forum for every little problem you have :) Did you read the post above of Nullachtfuffzehn? It looks like the file is called twice. Now, you added this to your site so you know what contribution this is. Go check that contribution for occurrences of (most likely) require(DIR_WS_CLASSES . 'nusoap.php'); or include(DIR_WS_CLASSES . 'nusoap.php');. Find them all and change them to require_once(DIR_WS_CLASSES . 'nusoap.php'); and/or include_once(DIR_WS_CLASSES . 'nusoap.php');. That will most likely fix the problem.
Guest Posted December 5, 2007 Posted December 5, 2007 Thanks Jan. I will try this one out. As far as for the reading goes, you wouldn't believe all the books that I purchased...I now have at least 15 books on PHP, HTML, MySQL, Apache, osCommerce, etc... I think I'm going crazy just by reading all these books :-" I only turn to the forum when I really-really couldn't figure the problem out myself... I think this is my only 2nd post in the forum. So it would be good if you read a book on PHP instead of relying on the forum for every little problem you have :) Did you read the post above of Nullachtfuffzehn? It looks like the file is called twice. Now, you added this to your site so you know what contribution this is. Go check that contribution for occurrences of (most likely) require(DIR_WS_CLASSES . 'nusoap.php'); or include(DIR_WS_CLASSES . 'nusoap.php');. Find them all and change them to require_once(DIR_WS_CLASSES . 'nusoap.php'); and/or include_once(DIR_WS_CLASSES . 'nusoap.php');. That will most likely fix the problem.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.