- Forums
- PHP
- Cannot Redeclare Timestamp_to_iso8601()
Fatal Error: Cannot Redeclare Timestamp_to_iso8601 Previously Declared In Soap.lib.php On Line 455 [2090], Last Updated: Mon Jun 24, 2024
Webune Support
Mon Jan 25, 2010
1 Comments
1760 Visits
Hello
Welcome to Webune. Webune provides hosting to PHP programmers like you.
Today's support questions is regarding ISPConfig and Remote Frameworks. A user was trying to run the script when he received this error and reported to us:
Fatal error: Cannot redeclare timestamp_to_iso8601() (previously declared in /var/www/web1/web/ispconfig/soap.lib.php:435) in /var/www/web1/web/ispconfig/soap.lib.php on line 455 so how do you fix it?
look for this code:
include('ispconfig/connect-remote.php');
replace it with:
include_once('ispconfig/connect-remote.php');
as you can see, by using the include_once function instead of the include() function, PHP is will only include the connect-remote.php file only once so there is no confusion for repeating the same functions, thus, giving you this error.