Forum OpenACS Q&A: Image Problem on Installation: _ns_dirlist fails

Hello,

I have an image problem. Does anyone know a good agent? 😉

I've just installed openACS 3.2.4 + Pg 7.0.3 + mod_aolserver 1.1, on
a RH7.0.

Login, bboards, chat all work fine. However, when I go to a page that
has images, the images all appear broken. For instance:
ns2.nothingspecial.com/doc/prototype.html. The curious thing is that
the webserver error_log reports a delivery status of 200 for all of
the images.

Also interesting is that if you go to the base URL of the directory
that holds the images: ns2.nothingspecial.com/doc/prototype-gifs, the
error_log reports:

[Thu Mar 22 03:02:08 2001] [notice] [client 62.82.167.136]

[uri: /doc/prototype-gifs/]

  Ns_PgCloseDb(2):  Closing connection:  localhost:5432:acstest

[Thu Mar 22 03:02:08 2001] [error] [client 62.82.167.136]

[uri: /doc/prototype-gifs/]

  registered_proc blew up --- backtrace follows:

invalid command name "_ns_dirlist"

    while executing

"_ns_dirlist"

    (procedure "ad_handle_abstract_url" line 51)

    invoked from within

"ad_handle_abstract_url conn {}"

Thanks for any suggestions.

Collapse
Posted by Os Tyler on
This is not an answer, but a followup and a workaround:

By turning off abstract url handling (in acs/parameters/$server.tcl):

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

# enable abstract url handling?

        # For an explanation, see: doc/abstract-url.html

        ns_param EnableAbstractURLsP 0

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

and restarting the webserver, the images appeared.

So the problem seems to have something to do with abstract url handling, or some component that abstract url handling relies on.

I would still be interested to know if anyone has opinions whether this is possibly an open-ACS buglet, or perhaps a mod_aolserver issue ... or how to fix it. 😊

Thanks again for any suggestions,

Os

Hi

Where did you find the EnableAbstractURLsP parameter ? I can only find the two files /etc/opt/openacs/ad.ini and /etc/opt/apache/nsd.ini to make changes to.

Regards

Finn Knudsen

Hi

Just a follow up on my own question. It seems that in the distribution I have, there are no parameters file but instead you should be able to locate the relevant variables in the ad.ini file. Should be located in /etc/opt/openacs/ad.ini.

Regards

Finn