[Cartoweb-users] Ajax call starts endless "loading" loop

Oliver Christen oliver.christen at camptocamp.com
Wed Nov 28 03:45:32 EST 2007


okay, my fault, I read your message too quickly.

do you have a javascript error notified in your firefox or IE ? (not a popup but a browser's notification)
if you havent do so already, install the firebug extension in Firefox, so we can see more in details whats happening and if the ajax request are effectively sent and received. ("console" tab, be sure "Show XMLhttpRequests" is selected in the options)

regards
Oliver
  ----- Original Message ----- 
  From: karsten vennemann 
  To: cartoweb-users at lists.maptools.org 
  Sent: Wednesday, November 28, 2007 9:16 AM
  Subject: RE: [Cartoweb-users] Ajax call starts endless "loading" loop


  Hmm. I created a server.ini and set the profile to development.
  Client.ini has the same setting.

  There are no php errors logged in my phperrors.log, however I found this line in my apache log:
  [Wed Nov 28 00:05:22 2007] [info] [client 127.0.0.1] (OS 10053)An established connection was aborted by the software in your host machine.  : core_output_filter: writing data to the network

  The JS Trace outout seems to be the same see below:
  + never ending load message still available L

  Setting Ajaxhandler's profile to development...
  Initiating actions
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_n...
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_nw...
  Warning: element pan_nw does not exist!
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_w...
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_sw...
  Warning: element pan_sw does not exist!
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_s...
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_se...
  Warning: element pan_se does not exist!
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_e...
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_ne...
  Warning: element pan_ne does not exist!
  AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:keymap...
  Warning: element keymap does not exist!

  --- Action Search.DoIt triggered ---
  Calling Search.DoIt onBeforeAjaxCall()
  Calling AjaxPlugins.Common.onBeforeAjaxCall()
  Initiating AJAX request
  Pending actions: 1
  GET params:
  ajaxActionRequest=Search.DoIt&

  POST params:posted=1&js_folder_idx=1&selection_type=&selection_coords=&features=&project=ocla&fake_reset=&fake_query=&outline_label_text=Your label&tool=zoomin&recenter_doit=0&null=&openNodes=&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract&outline_mask=no&shortcut_doit=0&recenter_x=&recenter_y=&id_recenter_ids=&search_name=&search_config=countries&search_sort_column=&search_sort_direction=asc&search_number=&search_page=&query_alllayers=1&query_layerid[]=counties&recenter_scale=0&mapsize=0&shortcut_id=-1&

  Waiting for response...


------------------------------------------------------------------------------

  From: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
  Sent: Tuesday, November 27, 2007 23:04
  To: karsten vennemann; cartoweb-users at lists.maptools.org
  Subject: Re: [Cartoweb-users] Ajax call starts endless "loading" loop

   

  well, you could set your profile to "development" instead of "production" so we can actualy know what the real error message is.

   

  regards

  Oliver

    ----- Original Message ----- 

    From: karsten vennemann 

    To: cartoweb-users at lists.maptools.org 

    Sent: Wednesday, November 28, 2007 7:08 AM

    Subject: RE: [Cartoweb-users] Ajax call starts endless "loading" loop

     

    I based my project on demoCW3. Yes - initially the search was working (before I did modify the tpl files a bit). Actually it is working right now in Internet Explorer but not in Firefox. That is why I was wondering how that could be related to the php_sqlite extension. Anyway,  I downloaded the pecl php extensions for my php 5.0.5 and included  extension=php_pdo.dll and extension=php_pdo_sqlite.dll in php.ini (it appears that "php_pdo_sqlite" this is a synonym for "php_sqlite" extension). They load fine when I test with php_ini. After restarting Apache I am still getting the endless Ajax call and loading message (not in Internet Explorer though where everything works fine). 

    Thus, I am researching (without success yet L ) whether there is a different cause for this ?

     

    Here is my JST race debugger messages:

    (by the way I deleted some of the panning elements in my tpl file - how can I get rid f the warnings below - like Warning: element pan_nw does not exist!

    e.g.)

     -------------------------------------------------------------------------

    Setting Ajaxhandler's profile to development...

     

    Initiating actions

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_n...

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_nw...

    Warning: element pan_nw does not exist!

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_w...

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_sw...

    Warning: element pan_sw does not exist!

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_s...

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_se...

    Warning: element pan_se does not exist!

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_e...

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:pan_ne...

    Warning: element pan_ne does not exist!

    AjaxHandler.attachAction(): Attaching action:Location.Pan to element id:keymap...

    Warning: element keymap does not exist!

     

    --- Action Search.DoIt triggered ---

     

    Calling Search.DoIt onBeforeAjaxCall()

     

    Calling AjaxPlugins.Common.onBeforeAjaxCall()

    Initiating AJAX request

    Pending actions: 1

    GET params:

    ajaxActionRequest=Search.DoIt&

    POST params:

    posted=1&js_folder_idx=1&selection_type=&selection_coords=&features=&project=ocla&fake_reset=&fake_query=&outline_label_text=Your label&tool=zoomin&recenter_doit=0&null=&openNodes=&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract&outline_mask=no&shortcut_doit=0&recenter_x=&recenter_y=&id_recenter_ids=&search_name=&search_config=countries&search_sort_column=&search_sort_direction=asc&search_number=&search_page=&query_alllayers=1&query_layerid[]=counties&recenter_scale=0&mapsize=0&shortcut_id=-1&

    Waiting for response...

     

    The result is a endless display of the Loading.. window

    Karsten


----------------------------------------------------------------------------

    From: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
    Sent: Monday, November 26, 2007 23:00
    To: karsten vennemann; cartoweb-users at lists.maptools.org
    Subject: Re: [Cartoweb-users] Ajax call starts endless "loading" loop

     

    Hi

     

    now the plugin "search" is loaded by default in the demo and if you used a demo as basis for you new project, you will have that plugin loaded too.

    that plugin requires that you load the sqlite extension in your php.ini

    simply uncomment the line extension=php_sqlite.so (on linux) or extension=php_sqlite.dll (on windows) and restart apache.

     

    or you can remove the search plugin from your project's client.ini file, if you dont need the search functionality

     

    regards

    Oliver

      ----- Original Message ----- 

      From: karsten vennemann 

      To: cartoweb-users at lists.maptools.org 

      Sent: Tuesday, November 27, 2007 1:20 AM

      Subject: [Cartoweb-users] Ajax call starts endless "loading" loop

       

      Hi All,
      I have customized the layout templates for my cartoweb 3.4 project. I did run a query before I did some changes.
      Every time I open the project in Firefox an Ajax call (see blow) is posted and seems to start an endless loop (Loading message never disappears).
      I did run
      cw3setup.php --install --base-url http://localhost:81/sites/cartoweb3/htdocs/ --profile development --project ocla
      cw3setup.php --clean 
      - also I rebot3ed my machine (did help either).

      It seems that some cache never gets cleaned - or why would
      ajaxActionRequest=Search.DoIt otherwise be triggered?


      In Internet Explorer all works fine (for a rare change).

       

      Thanks

      Karsten

       

       

      --- Action Search.DoIt triggered ---

       

      Calling Search.DoIt onBeforeAjaxCall()

       

      Calling AjaxPlugins.Common.onBeforeAjaxCall()

      Initiating AJAX request

      Pending actions: 1

      GET params:

      ajaxActionRequest=Search.DoIt&

      POST params:

      posted=1&js_folder_idx=1&selection_type=&selection_coords=&features=&project=ocla&fake_reset=&fake_query=&outline_label_text=Your label&tool=zoomin&recenter_doit=0&null=&openNodes=&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract&outline_mask=no&shortcut_doit=0&recenter_x=&recenter_y=&id_recenter_ids=&search_name=&search_config=countries&search_sort_column=&search_sort_direction=asc&search_number=&search_page=&query_alllayers=1&query_layerid[]=counties&recenter_scale=0&mapsize=0&shortcut_id=-1&

      Waiting for response...

       


--------------------------------------------------------------------------

      _______________________________________________
      Cartoweb-users mailing list
      Cartoweb-users at lists.maptools.org
      http://lists.maptools.org/mailman/listinfo/cartoweb-users


----------------------------------------------------------------------------

    _______________________________________________
    Cartoweb-users mailing list
    Cartoweb-users at lists.maptools.org
    http://lists.maptools.org/mailman/listinfo/cartoweb-users



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071128/afa77a4b/attachment-0001.html


More information about the Cartoweb-users mailing list