[SPTUsers] RE: Running SPT on Windows 2000 - CSS
Edward Almasy
ealmasy at scout.wisc.edu
Tue Jun 17 14:13:54 CDT 2003
On Thu, Jun 12, at 02:37:34AM, Arbit 1202 wrote:
> Any ideas on what could cause this from the SPT
> development team?
>
> PC
> --- "Topete, Sergio USA"
> <stopete at monterey.nps.navy.mil> wrote:
> > following error message:
> >
> > Fatal error: Cannot redeclare class user in
> > c:\program files\apache
> > group\apache\htdocs\spt\Axis--User.php on line 22
This indicates that a PHP class named "User" is being declared twice
in the code. That shouldn't happen with just the standard SPT code,
because every instance of SPT where Axis--User.php is loaded uses the
"require_once()" PHP construct, which is specifically intended to
prevent this from happening.
So...my best guess is that either 1) you've added some code that has
a class named "User" (or reloads Axis--User.php without using a *_once()
call), or 2) something has gone astray with the PHP require_once()
construct, or 3) there's some behavior with PHP under MS Windows that
is very unexpected. Offhand, I'd guess #2, because Windows doesn't
support soft links in the same fashion as Linux, and the Axis--User.php
file in the MetadataTool subdirectory is (under Linux) just a soft link
to the copy of Axis--User.php one level up. So PHP under Windows may
not recognize they're both the same file when loaded with require_once(),
and try to load the file twice.
If that's the case, I'm not sure what to do about it, other than maybe
to make the copy of Axis--User.php a Windows "shortcut" to the file in
the directory above, and configure your web server to respect shortcuts.
Ed
--
Edward Almasy ealmasy at scout.wisc.edu
Director 1308 W Dayton Street
Internet Scout Project Madison WI 53706
Computer Sciences Department 608-262-6606 (voice)
University of Wisconsin - Madison 608-265-9296 (fax)
More information about the SPTUsers
mailing list