performant-software / Neatline

A lightweight framework for building interactive maps and publishing them on the web.
www.neatline.org
Other
105 stars 34 forks source link

"New Record" button missing #478

Closed jim1001 closed 3 years ago

jim1001 commented 4 years ago

Using Omeka 2.7 & Neatline 2.6.3.

No "New Record" button appears - see screenshot.

Neatline_no_new_record_button

We are testing a proxy system where requests go to a central machine (also holding the databases) & then are routed to a different machine holding the Omeka installation files.

An internal server error, as shown, is seen when a value is sent via the search box. However I also see a similar error when doing the same on a different installation with same software versions but all on same machine. On that installation the "New Record" button is present.

Any idea why the "New Record" button doesn't appear on the proxy system & how to diagnose?

Thanks.

jim1001 commented 4 years ago

Update: my colleague spotted issue #475 which may be cause. Will post again after testing.

jim1001 commented 4 years ago

My colleague fixed this issue. Here's what she said:

the problem came down to the URL rewriting method in the proxy code. The suggested proxy-html output filter did its job on fixing urls for html, js and css files but the bit in Neatline that requests a list of records, is doing so by an AJAX call and is expecting JSON data in return. Unfortunately the mod_proxy_html filter was converting the JSON to an HTML document, so Neatline had no valid data. ...I’m now using mod_substitute to rewrite urls and that appears to do its job and pass JSON back as is.

She also said it wasn't obvious as the Neatline code didn't report the error.

eam5 commented 3 years ago

Issue resolved