Currently, Ajax always displays "loading" without ever loading anything. I also tried it in the test module pages and it's the same thing.

Comments

khanz’s picture

I am too facing the same issue.

gardner’s picture

+1

Notice: Undefined variable: options in function popup_filter_ajax_getdisplays() (line 246 in file /home/......./www/modules/popup/modules/popup_filter/includes/popup_filter.admin.inc).

Scheepers de Bruin’s picture

Status: Active » Closed (cannot reproduce)

Please try version 1.0

Also try checking the console in firebug if using firefox. There should be a listing of the ajax requests and the server response.

reych9’s picture

I don´t know why, but this occurs when we are working with the root directory inside another folder. for example: http://localhost/sitio-drupal. to solve this problem we must work with our site in the root of our web server. For example http://sitio-drupal.

to do that we must configure our apache, here are a litle tuto
http://www.mclibre.org/consultar/php/otros/in_php_configuracion.html

good luck

Morn’s picture

Version: 7.x-1.x-dev » 7.x-1.0
Priority: Normal » Minor
Status: Closed (cannot reproduce) » Active

My site is working in the root directory (@ #4) but I get the same Notice every time I edit the a page that has popup filter active (even if there is no [.... ] popup text).
The complete message is:

Site	http:.... /ajax/popup-filter/getdisplays/vortags_katalog
Referrer	http:... /node/291/edit
Nachricht	Notice: Undefined variable: options in popup_filter_ajax_getdisplays() (Zeile 246 von /home/  ... /sites/all/modules/popup/modules/popup_filter/includes/popup_filter.admin.inc).

Strange is that "vortags_katalog" is a view Name whose Displays are displayed with http://drupal.org/project/quicktabs (but is not displayed on this page!)

Html Extract of the edit page where "vortags_katalog" appears (the view isn't displayed on this page!):

..............
<div class="popup-content-view popup-content-section">
      <div class="form-item inline">
        <label for="popup-content-view">Ansicht:</label>
        <select id="popup-content-view" class="form-select"><option value="vortags_katalog">vortags_katalog</option><option value="Stellengesuche">Stellengesuche</option><option value="vtadLinks">vtadLinks</option><option value="RegioTermine">RegioTermine</option><option value="stellenangebot">stellenangebot</option><option value="contexthelp">contexthelp</option><option value="aufgezeichnete_webinare">aufgezeichnete_webinare</option><option value="artikel_vortraege">artikel_vortraege</option><option value="taxonomy_term">taxonomy_term</option><option value="Forschungsarbeiten">Forschungsarbeiten</option><option value="fm_termine">fm_termine</option><option value="vtadinderpresse">vtadinderpresse</option><option value="neueste_beitraege">neueste_beitraege</option><option value="admin_content">admin_content</option><option value="admin_users">admin_users</option><option value="mobil">mobil</option><option value="calendar">calendar</option><option value="tutorial_webinare">tutorial_webinare</option><option value="f_rdermitglieder">f_rdermitglieder</option><option value="admin_people">admin_people</option><option value="archive">archive</option><option value="backlinks">backlinks</option><option value="comments_recent">comments_recent</option><option value="frontpage">frontpage</option><option value="glossary">glossary</option><option value="popular">popular</option><option value="tracker">tracker</option></select>
      </div>
........

The rest looks fine, so for me, its only a minor error that occurs when calling the edit page

Leoo’s picture

Priority: Normal » Minor

Hello,

Working locally, with my site drupal02 in c:/xampp/htdocs/drupal02, i dont really see how to apply #4: looking at the link http://www.mclibre.org/consultar/php/otros/in_php_configuracion.html, it seems i have to change in the file httpd.conf DocumentRoot and Directory from "C :/ xampp / htdocs" to "C:"? And cut/copy all the content of my c:/xampp/htdocs folder into c:? But then I have 2 xampp folders under C:, and I dont really want to add lots of new folders/files straight under c:??

Trying to quickly debug popup.js under firebug (im Newbie), on line 322:
var url = $('a.ahah-path', placeHolder).attr('href');
inspect url gives "/ahah/popup/node/43adfafe5a705f8513e112e1ed526aa5" in my case
And the eternal 'Loading' popup.

If I comment out the code and replace the URL with prepending my site name:
//LV: var url = $('a.ahah-path', placeHolder).attr('href');
var url = '/drupal02'+$('a.ahah-path', placeHolder).attr('href');

Then my popup loads the node I want..

Hope this helps..

L

Leoo’s picture

Priority: Minor » Normal
Scheepers de Bruin’s picture

Priority: Minor » Normal

At the end of popup.util.inc, change this method to:

function popup_cache_attributes($cache){

  if (is_array($cache)){

    $hash = md5(serialize($cache));
    cache_set($hash, $cache, 'cache', time() + 360000);

    return $hash;

  } else {

    $cached = cache_get($cache);

    return $cached ? $cached->data : FALSE;
  }

}
Scheepers de Bruin’s picture

Status: Active » Closed (fixed)

Thanks all, fix in new release