EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10022


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Phrase Editor not working


CAUTION: This e-mail originated outside the University of Southampton.

Hi

 

I have made great progress on the final few steps of polishing the importing and presentation of my data. However, I cannot complete this work due, I think, to the phrase editor not working. There are various points where I need to add phrases. For example, in the range of types of doctoral theses, which is currently too limiting for my purposes. I have done my best to track down why Ajax fails when I use the phrase editor. I have tried tracking what is happening using the Firefox developer tools.  The browser console shows an error: Uncaught TypeError: form is null. No AJAX requests to /cgi/ajax/phrase are appearing in the Network tab.

 

I have tried a few things:

  • Made /opt/eprints3/cgi/ajax/phrase executable.
  • Checked file permissions and ownership.
  • Added console.log statements to debug _javascript_.
  • Searched for /cgi/ajax/phrase in the codebase but found no results.

 

Some errors that have cropped up:

  • Mixed content warnings (HTTP resources being loaded on an HTTPS site).
  • AJAX requests being redirected to /cgi/users/login with a 401 Unauthorized error.

 

I am using EPrints version: 3.4. Server: Ubuntu. Browser: Firefox (with HTTPS-Only Mode enabled).

 

I am out of my depth when it comes to _javascript_, and I hope that someone has seen and resolved this before. I could not find anything directly useful in the eprints-tech archives!

 

Best wishes

 

Will   

 

Will Hughes

Emeritus Professor of Construction Management and Economics

School of the Built Environment     

University of Reading, PO Box 219, Whiteknights

Reading, RG6 6DF, UK