Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message please help


dmatwood

Recommended Posts

Posted

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;

}

}

?>

Posted
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

Posted
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.

  • 4 weeks later...
Posted

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.

 

:'(

Posted
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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...