![]() |
||||
|
|
||||
[Fwd: Re: [maplab-users] cannor redeclare class]Paul Spencer spencer@dmsolutions.caMon, 16 Jun 2003 19:42:25 -0400
|
||||
This is a multi-part message in MIME format.
--------------080103070900050207010007
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I'll add a bug to check this condition and see if it can be avoided.
Cheers,
Paul
--
Paul Spencer
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
--------------080103070900050207010007
Content-Type: message/rfc822;
name="Re: [maplab-users] cannor redeclare class"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Re: [maplab-users] cannor redeclare class"
Return-Path: <arjan@imposium.nl>
Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146])
by in1.magma.ca (Magma's Mail Server) with ESMTP id h5FLN9ig027075
for <pagameba@magma.ca>; Sun, 15 Jun 2003 17:23:09 -0400
Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139])
by xcalibur.dmsolutions.ca (8.11.6/8.11.6) with ESMTP id h5FLN8i21900
for <spencer@dmsolutions.ca>; Sun, 15 Jun 2003 17:23:08 -0400
Received: from master (213-84-208-53.adsl.xs4all.nl [213.84.208.53])
by smtpzilla3.xs4all.nl (8.12.9/8.12.9) with ESMTP id h5FLN7oS033297
for <spencer@dmsolutions.ca>; Sun, 15 Jun 2003 23:23:07 +0200 (CEST)
From: "Arjan Duijs - Imposium" <arjan@imposium.nl>
To: <spencer@dmsolutions.ca>
Subject: RE: [maplab-users] cannor redeclare class
Date: Sun, 15 Jun 2003 23:23:17 +0200
Message-ID: <000001c33384$567a2150$9600000a@master>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
In-Reply-To: <3EEC6F5D.5090700@magma.ca>
Paul,
I found the conflicting module in php.
Its probably from a previous version of maplab.
extension=php_mapscript_37.dll
after removing it stopped the redeclare class error
Met vriendelijke groet
Arjan Duijs
> -----Original Message-----
> From: Paul Spencer [mailto:pagameba@magma.ca]
> Sent: zondag 15 juni 2003 15:07
> To: Arjan Duijs - Imposium
> Subject: Re: [maplab-users] cannor redeclare class
>
> This should be fixed this summer. You will experience problems if you
> remove the error class, that is not the root cause of the problem. My
> suspicion is that one of the modules you load through php.ini is
causing
> the conflict and I will need to change maplab because of that. If you
> can figure out which module it is I can at least document it.
>
> Cheers,
>
> Paul
>
> Arjan Duijs - Imposium wrote:
>
> > I solved it yesterday night, i removed the class error from the
> > error_manager.php
> >
> > ------
> >
> > class Error
> >
> > {
> >
> > /**
> >
> > * The error type to report (public).
> >
> > */
> >
> > var $nErrorType;
> >
> >
> >
> > /**
> >
> > * The current error message (public).
> >
> > */
> >
> > var $szMessage;
> >
> >
> >
> > /**
> >
> > * The context (original PHP page) that caused the error
> >
> > */
> >
> > var $szContext;
> >
> >
> >
> > /**
> >
> > * Construct a new Error instance and initialize it.
> >
> > *
> >
> > * @param nErrorType integer - The type of error.
> >
> > *
> >
> > * @param szMessage string - The error message.
> >
> > */
> >
> > function Error($nErrorType, $szMessage)
> >
> > {
> >
> > // initialize error items
> >
> > $this->nErrorType = $nErrorType;
> >
> > $this->szMessage = $szMessage;
> >
> > $this->szContext = $_SERVER["PHP_SELF"];
> >
> > }
> >
> >
> >
> > // end Error class
> >
> > }
> >
> > -------
> >
> >
> >
> > line 240 through 279
> >
> >
> >
> >
> >
> > -------
> >
> > unfortunately I stumbled upon a new problem...
> >
> > I am running Apache2.. I have to reconfigure my whole webserver to
> > PHP->CGI.
> >
> >
> >
> > It this going to be fixed anywhere soon?
> >
> >
> >
> >
> >
> >
> >
> > Met vriendelijke groet
> >
> >
> >
> > Arjan Duijs
> >
> >
> >
> >
> >
> >
> >
> >> -----Original Message-----
> >
> >> From: Paul Spencer [mailto:pagameba@magma.ca]
> >
> >> Sent: zondag 15 juni 2003 14:45
> >
> >> To: Arjan Duijs - Imposium
> >
> >> Cc: maplab-users@dmsolutions.ca
> >
> >> Subject: Re: [maplab-users] cannor redeclare class
> >
> >>
> >
> >> this is a php error that means that the same file that defines the
> class
> >
> >> Error in being "include"d twice somehow. Normally, files that are
> >
> >> "include"d from more than one place are protected by using
> >
> >> "include_once". It is possible that somewhere, the file is
included
> >
> >> using include("error_manager.php") instead of
> >
> >> include_once("error_manager.php"). The other possibility is that
this
> >
> >> is a poor choice for a class name (being so generic) and some
other
> >
> >> module that you have loaded by default though php.ini is causing a
> >
> >> conflict with this name.
> >
> >>
> >
> >> Things to try:
> >
> >>
> >
> >> * search for include( in all the .php and .phtml files in maplab
and
> >
> >> replace with include_once(
> >
> >>
> >
> >> * comment out extension modules in php.ini until the problem goes
> away.
> >
> >>
> >
> >> If either of these solve the problem, please let us know what
fixed it
> >
> >> so we can improve our package.
> >
> >>
> >
> >> Thanks,
> >
> >>
> >
> >> Paul
> >
> >>
> >
> >> Arjan Duijs - Imposium wrote:
> >
> >> > Hello,
> >
> >> >
> >
> >> > After installing maplab locally on my appache2 server, and
> configuring
> >
> >> > it, i am getting the folowing error.
> >
> >> >
> >
> >> > *Fatal error*: Cannot redeclare class error in *C:\Program
> Files\Apache
> >
> >> >
Group\Apache2\htdocs\maplab\htdocs\common\logger\error_manager.php*
> on
> >
> >> > line *247*
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> > I tried to comment that part, nut then the whole app doesn't
work
> >
> >> anymore.
> >
> >> >
> >
> >> > Could someone please help?
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> > Met vriendelijke groet
> >
> >> >
> >
> >> >
> >
> >> >
> >
> >> > Arjan Duijs
> >
> >> >
> >
> >>
> >
> >> --
> >
> >> Paul Spencer
> >
> >> Applications and Software Development
> >
> >> DM Solutions Group Inc.
> >
> >> http://www.dmsolutions.ca
> >
> >>
> >
> >
> >
>
> --
> Paul Spencer
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
--------------080103070900050207010007--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |