BLOG:CMS :: Support Forum
Support Forum for BLOG:CMS
You are not logged in.
#1 14.06.2004 16:29
- Alex Krylov
- BLOG:CMS Junior
- Registered: 14.06.2004
- Posts: 10
- Website
Fatal error - cannot redeclare class 'soapclient'
After installation i've got error message "Fatal error - cannot redeclare class 'soapclient" in file nucleus/plugins/related/nusoap.php at line 4096.
I don't know reasons for this error but make workaround - enclose class declaration in check bounds:
if (!class_exists('soapclient')) {
class soapclient extends nusoap_base {
...class definition...
}
}
Offline
#2 14.06.2004 16:46
- Radek Hulán
- Site Admin

- From: Prague, Czech Republic
- Registered: 17.03.2004
- Posts: 2508
- Website
Re: Fatal error - cannot redeclare class 'soapclient'
After installation i've got error message "Fatal error - cannot redeclare class 'soapclient" in file nucleus/plugins/related/nusoap.php at line 4096.
I don't know reasons for this error but make workaround - enclose class declaration in check bounds:
if (!class_exists('soapclient')) {
class soapclient extends nusoap_base {
...class definition...
}
}
this is weird, as nusoap.php included ONLY ONE TIME, in /index.php. So it hardly can be redeclared somewhere else. I double checked script again.. Have you made any mods to config.php or index.php?
Offline
#3 14.06.2004 17:14
- Radek Hulán
- Site Admin

- From: Prague, Czech Republic
- Registered: 17.03.2004
- Posts: 2508
- Website
Re: Fatal error - cannot redeclare class 'soapclient'
Alex, for now, uninstall plugin NP_Related, and remove <%Related(..)%> from DETAILED template. I will investigate the issue.
Thank you.
Radek
Offline
#4 15.06.2004 11:53
- Alex Krylov
- BLOG:CMS Junior
- Registered: 14.06.2004
- Posts: 10
- Website
Re: Fatal error - cannot redeclare class 'soapclient'
No mods, just after downloat/install.
Once again, after removing plugin and "related" line in DEFAULT template: Fatal error: Cannot redeclare class soapclient in /var/www/blog.pteka.ru/nucleus/plugins/related/nusoap.php on line 4096
Offline
#5 20.08.2004 23:41
- urchin
- newbie...
- Registered: 20.08.2004
- Posts: 2
Re: Fatal error - cannot redeclare class 'soapclient'
I have the same error, but it only occurs when I run it using PHP5. With PHP version 4 there is no problem.
I looked into it and think that the problem is the nusoapmime.php. It declares the class soapclientmime which extends the class soapclient. To me, this seems to be the only piece of code where PHP5 could think that the soapclient class is declared again ![]()
I'm not to familiar with version 5 of PHP. If anyone knows how to come around this, I would appreciate an answer ![]()
P.S. I used version 0.6.8 of NuSOAP
Last edited by urchin (20.08.2004 23:42)
Offline
#6 21.08.2004 00:02
- Radek Hulán
- Site Admin

- From: Prague, Czech Republic
- Registered: 17.03.2004
- Posts: 2508
- Website
Re: Fatal error - cannot redeclare class 'soapclient'
this error is fixed in release 3.4.0 and above (soapclient renamed to soapclientw)
simple fix is also to uninstall NP_Related..
Offline
#7 21.08.2004 12:02
- urchin
- newbie...
- Registered: 20.08.2004
- Posts: 2
Re: Fatal error - cannot redeclare class 'soapclient'
Thank you for a quick reply. Didn't even cross my mind that PHP5 has a soap-extension with a class called SoapClient ![]()
Offline
