[Cartoweb-users] CGI Problem

Karol Briones karolitab at gmail.com
Wed Jan 7 22:51:27 EST 2009


Hi Oliver,
When the application start show this message:

Array ( [map] =>
C:/ms4w/apps/cartoweb3/projects/SIGGuayaquil/server_conf/SIGGuayaquil/SIGGuayaquil.map
[program] => /cgi-bin/mapserv.exe [posted] => 1 [js_folder_idx] => 9
[selection_type] => [selection_coords] => [features] => [project] =>
SIGGuayaquil [collapse_keymap] => 0 [fake_reset] => [fake_query] =>
[outline_label_text] => your label [tool] => zoomin [recenter_doit] => 0
[recenter_scale] => 0 [mapsize] => 1 [openNodes] => [layers] => Array ( [0]
=> manzanas [1] => metrovia [2] => ruta ) [outline_mask] => no
[outline_point_symbol] => circle [outline_point_size] => 10
[outline_point_color] => #0000cd [outline_point_transparency] => 100
[outline_line_size] => 3 [outline_line_color] => #ff0000
[outline_line_transparency] => 100 [outline_polygon_outline_color] =>
#000000 [outline_polygon_background_color] => #ff9900
[outline_polygon_transparency] => 60 [id_recenter_layer] => metrovia
[id_recenter_ids] => [pdfMarginX] => 20 [pdfMarginY] => 20 [pdfA4x] => 210
[pdfA4y] => 297 [pdfA3x] => 297 [pdfA3y] => 420 [pdfFormat] => A4
[pdfResolution] => 96 [pdfScale] => 100000 [pdfOrientation] => portrait
[pdfMapAngle] => [pdfMapCenterX] => [pdfMapCenterY] => [pdfTitle] => SIG
Guayaquil [pdfNote] => [pdfLegend] => 0 [query_alllayers] => 1
[query_layerid] => Array ( [0] => metrovia [1] => ruta ) [query_hilight] =>
Array ( [0] => metrovia [1] => ruta ) [query_attributes] => Array ( [0] =>
metrovia [1] => ruta ) [query_table] => Array ( [0] => metrovia [1] => ruta
) [query_policy_0] => POLICY_XOR [query_maskmode] => Array ( [0] => metrovia
[1] => ruta ) [query_policy_1] => POLICY_XOR [edit_layer] => edit_point
[edit_validate_all] => 0 [LangCookie] => es [TestCookie] => OK [PHPSESSID]
=> ceaa395b31b8a7f399c5f268aa1a5329 )

That is normal, but when I add the print_r($_REQUEST) in the function
handleHttpPostRequest of ClientEdit.php and display these parameters:

Array ( [map] =>
C:/ms4w/apps/cartoweb3/projects/SIGGuayaquil/server_conf/SIGGuayaquil/SIGGuayaquil.map
[program] => /cgi-bin/mapserv.exe [posted] => 1 [js_folder_idx] => 9
[selection_type] => [selection_coords] => [features] => [project] =>
SIGGuayaquil [collapse_keymap] => 0 [fake_reset] => [fake_query] =>
[outline_label_text] => your label [tool] => edit_point [recenter_doit] => 0
[recenter_scale] => 0 [mapsize] => 1 [edit_feature_1231373984610798] =>
Array ( [name] => prueba [surname] => prueba [place] => Guayaquil [age] =>
24 [WKTString] => POINT() [operation] => insert ) [edit_selected] =>
1231373984610798 [openNodes] => [layers] => Array ( [0] => manzanas [1] =>
metrovia [2] => ruta [3] => edit_point ) [outline_mask] => no
[outline_point_symbol] => circle [outline_point_size] => 10
[outline_point_color] => #0000cd [outline_point_transparency] => 100
[outline_line_size] => 3 [outline_line_color] => #ff0000
[outline_line_transparency] => 100 [outline_polygon_outline_color] =>
#000000 [outline_polygon_background_color] => #ff9900
[outline_polygon_transparency] => 60 [id_recenter_layer] => metrovia
[id_recenter_ids] => [pdfMarginX] => 20 [pdfMarginY] => 20 [pdfA4x] => 210
[pdfA4y] => 297 [pdfA3x] => 297 [pdfA3y] => 420 [pdfFormat] => A4
[pdfResolution] => 96 [pdfScale] => 100000 [pdfOrientation] => portrait
[pdfMapAngle] => [pdfMapCenterX] => [pdfMapCenterY] => [pdfTitle] => SIG
Guayaquil [pdfNote] => [pdfLegend] => 0 [query_alllayers] => 1
[query_layerid] => Array ( [0] => metrovia [1] => ruta ) [query_hilight] =>
Array ( [0] => metrovia [1] => ruta ) [query_attributes] => Array ( [0] =>
metrovia [1] => ruta ) [query_table] => Array ( [0] => metrovia [1] => ruta
) [query_policy_0] => POLICY_XOR [query_maskmode] => Array ( [0] => metrovia
[1] => ruta ) [query_policy_1] => POLICY_XOR [edit_layer] => edit_point
[edit_validate_all] => 1 [LangCookie] => es [TestCookie] => OK [PHPSESSID]
=> ceaa395b31b8a7f399c5f268aa1a5329 )

Only change this lines:

[edit_feature_1231373984610798] => Array ( [name] => prueba [surname] =>
prueba [place] => Guayaquil [age] => 24 [WKTString] => POINT() [operation]
=> insert )
[edit_selected] => 1231373984610798

Apparently normal.

Thanks and regards,
Karol.

2009/1/7 Oliver Christen <oliver.christen at camptocamp.com>

>  well, "POINT()" is effectively hardly a valid geometry.
> are you sure you dont have a javascript error when you place the point on
> the map before submiting ?
>
> the only why to know whats going on is to debug the passage of the point
> geometry to see if the problem is in the javascript or in the php, then
> poinpoint it further.
> a good start would be to add print_r($_REQUEST); in the function
> handleHttpPostRequest of ClientEdit.php, which should display the list of
> parameters received by the epplications at each submit, which would allow to
> see if a valid geometry is passed from the user's browser to the server.
>
> regards
> Oliver
>
> ----- Original Message -----
> *From:* Karol Briones <karolitab at gmail.com>
> *To:* Oliver Christen <oliver.christen at camptocamp.com>
> *Cc:* cartoweb-users at lists.maptools.org
> *Sent:* Wednesday, January 07, 2009 4:45 AM
> *Subject:* Re: [Cartoweb-users] CGI Problem
>
> Hi oliver,
>
> The log error show this only error message:
>
> [error] [client 127.0.0.1] , referer:
> http://localhost/cartoweb3/htdocs/client.php
>
> and about the edit plugin, the cartoweb error page show:
>
> Class : SoapFaultWrapper
> Message : Unable to insert feature in edit database Message: DB Error: unknown error  Userinfo: INSERT INTO public.edit_point (the_geom , name, surname, place, age) VALUES (GeometryFromText('POINT()', -1) , 'punto', 'prueba', 'guayaquil', '24')  [nativecode=ERROR:  Invalid OGC WKT (too short)]
>
> Backtrace:
>
> file: 281 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.php
> call: Utils::checkDbError(Object(DB_Error), "Unable to insert feature in edit database")
>
> file: 601 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.php
>
> call: ServerEdit->insertFeature(Object(Feature))
>
> file: 74 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php
> call: ServerEdit->handlePreDrawing(Object(EditRequest))
>
> file: 132 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php
>
> call: ServerPluginHelper->callHandleFunction(Object(ServerEdit), "handlePreDrawing")
>
> file: UNKNOWN - UNKNOWN
> call: ClientResponderHelper->handlePreDrawingHelper(Object(ServerEdit))
>
> file: 267 - C:\ms4w\apps\cartoweb3\common\PluginManager.php
>
> call: call_user_func_array(Array(2), Array(1))
>
> file: 285 - C:\ms4w\apps\cartoweb3\common\PluginManager.php
> call: PluginManager->callPluginImplementing(Object(ServerEdit), "ClientResponder", "handlePreDrawing", Array(0))
>
> file: 301 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
> call: PluginManager->callPluginsImplementing("ClientResponder", "handlePreDrawing")
>
> file: 349 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
>
> call: Cartoserver->doGetMap(Object(MapRequest))
>
> file: 370 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
> call: Cartoserver->callWithExceptionCheck("doGetMap", Object(MapRequest))
>
> file: 76 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php
>
> call: Cartoserver->cacheGetMap(Object(MapRequest))
>
> file: 184 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php
> call: MapResultCache->getMapResultFromServer(Object(MapRequest))
>
> file: 380 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
>
> call: MapResultCache->getMap(Object(MapRequest))
>
> file: 104 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
> call: Cartoserver->getMap(Object(MapRequest))
>
> file: 165 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
>
> call: CartoserverService->callDirect("getMap", Object(MapRequest))
>
> file: 233 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
> call: CartoserverService->callFunction("getMap", Object(MapRequest))
>
> file: 948 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
> call: CartoserverService->getMap(Object(MapRequest))
>
> file: 1086 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
> call: Cartoclient->getMapResultFromRequest(Object(MapRequest))
>
> file: 1261 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
> call: Cartoclient->doMain()
>
> file: 38 - C:\ms4w\apps\cartoweb3\htdocs\client.php
> call: Cartoclient->main()
>
> I'm using the cartoweb 3.4.0 version, the cache options are set in false.
>
> Thanks and regards,
> Karol.
>
>
> 2009/1/6 Oliver Christen <oliver.christen at camptocamp.com>
>
>>  hi
>>
>> the cgi error seems like a critical Apache failure, and I have no idea
>> what would cause that.
>> do you have anything in the Apache error log ?
>> also maybe try to enable/increase the php error reporting level in your
>> php.ini
>>
>> about the edit plugin, you can try to disable caching (see 5.6.2. and
>> 5.6.3. in the documentation
>> http://www.cartoweb.org/doc/cw3.5/xhtml/user.caches.html#user.caches.config.common
>> )
>> but this problem should not appear in Cartoweb 3.5 as the cache is now
>> disabled by default when using the edit plugin function.
>> which version of Cartoweb are you using ?
>>
>> regards
>> Oliver
>>
>>   ----- Original Message -----
>> *From:* Karol Briones <karolitab at gmail.com>
>> *To:* cartoweb-users at lists.maptools.org
>> *Sent:* Tuesday, January 06, 2009 5:07 AM
>> *Subject:* [Cartoweb-users] CGI Problem
>>
>> Hello List,
>>
>> I have a problem with CGI, I installed the "edit plugin" in my cartoweb
>> proyect with the "spanish internationalization", I'm translated all to
>> spanish, but the problem is when I try to add a new point on the map, first
>> the point don't show in the first click of the mouse, in the second click of
>> the mouse, the point appear in the up left corner, then I try to save the
>> data point and appear the windows message:
>>
>> CGI/FastCGI has encountered a problem and needs to close...
>>
>> I need to install some aditional software?, thanks for your help.
>>
>> Thanks and regards,
>> Karol.
>>
>> ------------------------------
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>>
>
>
> --
> Saludos Cordiales
> Karol Briones Fuentes
>
> Egresada Ingeniería en Computación
> Especialización Sistemas Multimedia - ESPOL
>
> Phone: 5934-2463540
> Cellular: 5938-4735721
>
>


-- 
Saludos Cordiales
Karol Briones Fuentes

Egresada Ingeniería en Computación
Especialización Sistemas Multimedia - ESPOL

Phone: 5934-2463540
Cellular: 5938-4735721
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20090107/c1bfe9a9/attachment-0001.htm 


More information about the Cartoweb-users mailing list