Opened 13 years ago

Last modified 13 years ago

#3818 new defect

PHP Mapscript failure reading a mapfile in FastCGI

Reported by: aboudreault Owned by: aboudreault
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: worthlutz, dmorissette

Description (last modified by dmorissette)

Reported by worthlutz:

I am reopening this thinking that the problem is the same. Let me
know if I should have started another ticket.

I think that I have the same parsing problem with MapScript
reading the mapfile with ms_newNewMapObj($mapfile).

PHP Warning: ms_newMapObj(): [Mapserver Error]: loadProjection() 
Parsing error near ():line 10.......

line 9-11 = 

PROJECTION
    "init=espg:26915"
END

if I include the following lines I get an additional parsing error:
lines 5-6 
 CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_errfile.txt" 
 DEBUG 5

PHP Warning: ms_newMapObj(): [Mapserver Error]: getString(): 
Parsing error near (/var/www/tmp/ms_errfile.txt):(line 5)....

I'm waited until today to report this because it looked like the 
same problem and I hoped the fix would be in beta5 which I am using 
from ubuntuGIS repository.

This was working in beta3. Where should I begin testing? I can 
compile from trunk if necessary. I'm just not sure where to begin.

Change History (4)

comment:1 by aboudreault, 13 years ago

worthlutz, could you confirm that you get this error only in FastCGI?

comment:2 by aboudreault, 13 years ago

well, sorry that's not fastcgi ... I mean apache vs php-cli. I'm going to do some tests.

comment:3 by dmorissette, 13 years ago

Description: modified (diff)

comment:4 by worthlutz, 13 years ago

After wasting a bunch of time trying to get you a test case I think this is all my problem. I think after updating to beta5 I did NOT restart apache thus was still using beta4! I just restarted my server and I think the problem is gone. As I thought yesterday, it probably was the problem you fixed yesterday.

I will let you know if I'm wrong here.

worth

Note: See TracTickets for help on using tickets.