Hi Thomas, Thanks for this - I've replicated the lines present for similar files in /openils/var/web/opac/skin/default/xml/setenv.xml and /openils/var/web/opac/common/js/config.js but after restarting Apache and OpenSRF I'm still getting the same error.
Thanks, Mark On 23 Nov 2011, at 17:02, Thomas Berezansky wrote: > I had to add lines to config.js and setenv.xml, if I recall, when adding a > page to our JSPac. I forget if I had to add lines elsewhere. > > Thomas Berezansky > Merrimack Valley Library Consortium > > > Quoting Mark Gavillet <[email protected]>: > >> Hi >> >> Not sure whether I've missed something obvious here. I'm trying to add a new >> page to the opac. I've created the symlink 'register.xml' which points to >> 'index.xml', which subsequently tries to load 'page_register.xml' (this >> seems to be the way myopac.xml, advanced.xml, etc. work.) >> >> When I try to load the page in a browser I get 500 internal server error. >> The apache log has: >> >> [Wed Nov 23 16:48:43 2011] [info] [client XXX.XXX.XXX.XXX] Connection to >> child 7 established (server localhost:443) >> [Wed Nov 23 16:48:43 2011] [info] Seeding PRNG with 656 bytes of entropy >> [Wed Nov 23 16:48:43 2011] [info] Initial (No.1) HTTPS request received for >> child 7 (server localhost:443) >> [Wed Nov 23 16:48:43 2011] [error] [client XXX.XXX.XXX.XXX] XMLENT XML Parse >> Error: not well-formed (invalid token) at line 822: parsing >> /openils/var/web/opac/skin/default/xml/header.xml: data (none) >> [Wed Nov 23 16:48:43 2011] [error] [client XXX.XXX.XXX.XXX] unable to >> include "header.xml" in parsed file >> /openils/var/web/opac/skin/default/xml/register.xml >> [Wed Nov 23 16:48:43 2011] [error] [client XXX.XXX.XXX.XXX] XMLENT XML Parse >> Error: syntax error at line 1: parsing >> /openils/var/web/opac/skin/default/xml/register.xml: data [an error occurred >> while processing this directive] >> [Wed Nov 23 16:48:43 2011] [info] [client XXX.XXX.XXX.XXX] Connection closed >> to child 7 with standard shutdown (server localhost:443) >> >> header.xml parses and loads without any problems when using other pages. >> Does anyone have any idea why this is happening? >> >> Thanks >> Mark > >
