From: Andy E. <ae...@sd...> - 2014-09-10 17:16:48
|
With it right before the throw new ILS Exception line I get the following URL: http://argos.sdln.net:1895/rest-dlf/record/SYS01000819872/items/?view=full&patron=BHS522929 This is a valid URL and returns a response. I tested it in my browser and using wget from the VuFind server and got the record info on both. Andy From: Demian Katz [via vufind] [mailto:ml-...@n4...] Sent: Wednesday, September 10, 2014 11:08 AM To: Andy Erion Subject: Re: vufind 2.3 with Aleph You could probably put die statements before both of the: throw new ILSException( lines.... - Demian From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666145&i=0>] Sent: Wednesday, September 10, 2014 1:04 PM To: [hidden email]</user/SendEmail.jtp?type=node&node=4666145&i=1> Subject: Re: [VuFind-General] vufind 2.3 with Aleph That give me the following URL: http://argos.sdln.net/X?op=bor-auth&library=BHS50&bor_id=21592012005832&verification=erion&user_name=WWW-X&user_password=WWW-X That URL pulls the patron information and works fine. There must be multiple calls to doHTTPRequest and we are killing it on the first one, not the one with the error. I'll see if I can come up with a way to kill it on the correct call to doHTTPRequest. Thanks for all your help, Andy From: Demian Katz [via vufind] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666144&i=0>] Sent: Wednesday, September 10, 2014 10:31 AM To: Andy Erion Subject: Re: vufind 2.3 with Aleph Ahh, what may be happening here is that the exception is causing a different template to be rendered before your debug information actually makes it to the output. We can do this by brute force, though. Try opening up the module/VuFind/src/VuFind/ILS/Driver/Aleph.php file, and finding this code: /** * Perform an HTTP request. * * @param string $url URL of request * @param string $method HTTP method * @param string $body HTTP body (null for none) * * @return SimpleXMLElement */ protected function doHTTPRequest($url, $method='GET', $body = null) { if ($this->debug_enabled) { $this->debug("URL: '$url'"); } (Should be around line 558) After the block above, just add: die(); Then when you refresh the page, you'll probably get a broken display... but hopefully you'll see a URL at the bottom of it. Should that fail, you could try: die("<p>" . $url . "</p>"); to be totally sure the URL is output. - Demian From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666143&i=0>] Sent: Wednesday, September 10, 2014 12:22 PM To: [hidden email]</user/SendEmail.jtp?type=node&node=4666143&i=1> Subject: Re: [VuFind-General] vufind 2.3 with Aleph I see the debugging at the top, the vufind search header, a red error box, the exception report, a Backtrace, then the footer. Ive attached screen shots of what I am seeing. The Backtrace is quite long and requires scrolling so it took two screen shots to capture the full page. Andy ************************ Andy Erion Senior Programmer/Analyst South Dakota Library Network Direct: (605)645-6160 Main Line: (800)245-5690 ************************ From: Demian Katz [via vufind] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666142&i=0>] Sent: Wednesday, September 10, 2014 10:14 AM To: Andy Erion Subject: Re: vufind 2.3 with Aleph Strange. The debug you're seeing shows the Solr request to retrieve the record data. This should be followed by debugging information related to the Aleph driver - VuFind should call getHolding(), which in turn should call doRestDLFRequest(), which in turn should call doHTTPRequest(), which should output a debug message like "URL: http://your-server/..." Note that these messages should appear inside the holdings tab area at the bottom of the screen rather than up at the top with the Solr messages. I assume you scrolled down and checked there, but I'd be interested to hear what, if anything, you're seeing in the tab area... or, if no tab area is appearing at all, whether there are any error messages in your Apache log that might help. - Demian From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666141&i=0>] Sent: Wednesday, September 10, 2014 12:05 PM To: [hidden email]</user/SendEmail.jtp?type=node&node=4666141&i=1> Subject: Re: [VuFind-General] vufind 2.3 with Aleph I have debugging turned on in Aleph.ini as well. Andy From: Demian Katz [via vufind] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666140&i=0>] Sent: Wednesday, September 10, 2014 10:03 AM To: Andy Erion Subject: Re: vufind 2.3 with Aleph Just took a look at the Aleph driver code, and it appears there's an additional debug_enabled setting in Aleph.ini that should be turned on (in addition to the one in config.ini) to get debugging out of the driver. - Demian From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666139&i=0>] Sent: Wednesday, September 10, 2014 11:52 AM To: [hidden email]</user/SendEmail.jtp?type=node&node=4666139&i=1> Subject: Re: [VuFind-General] vufind 2.3 with Aleph I tried enabling debugging, but it didn't provide much information. 2014-09-10T09:50:08-06:00 DEBUG: Query fl=%2A%2Cscore&hl=true&hl.fl=%2A&hl.simple.pre=%7B%7B%7B%7BSTART_HILITE%7D%7D%7D%7D&hl.simple.post=%7B%7B%7B%7BEND_HILITE%7D%7D%7D%7D&wt=json&json.nl=arrarr&q=id%3A%22000819872%22 2014-09-10T09:50:08-06:00 DEBUG: => GET http://127.0.0.1:8080/solr/biblio/select?fl=%2A%2Cscore&hl=true&hl.fl=%2A&hl.simple.pre=%7B%7B%7B%7BSTART_HILITE%7D%7D%7D%7D&hl.simple.post=%7B%7B%7B%7BEND_HILITE%7D%7D%7D%7D&wt=json&json.nl=arrarr&q=id%3A%22000819872%22 2014-09-10T09:50:08-06:00 DEBUG: <= 200 OK 2014-09-10T09:50:08-06:00 DEBUG: Deserialized SOLR response Andy From: Demian Katz [via vufind] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666138&i=0>] Sent: Wednesday, September 10, 2014 9:35 AM To: Andy Erion Subject: Re: vufind 2.3 with Aleph The URL VuFind is requesting is actually being accessed server-side, so Firebug won't help you here. However, if you turn debug to true near the top of your local/config/vufind/config.ini file, there is a fairly good chance that you'll see it embedded in the output. Note that turning on debug will cause all the AJAX responses to break, but if you go to a record view, you should see some helpful inline messages (assuming that the Aleph driver is set up to output debug info... if it isn't, let me know and I can help you adjust it so that it is). - Demian > -----Original Message----- > From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=0>] > Sent: Wednesday, September 10, 2014 11:15 AM > To: [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=1> > Subject: Re: [VuFind-General] vufind 2.3 with Aleph > > The sample URL is one I constructed after looking at the Aleph documentation > on the API. > > I am trying to find the URL that the VuFind requesting. I'm using Firebug to > analyze what's going on, but I am a bit of a novice with the tool. I should > be able to figure it out. > > Andy > > -----Original Message----- > From: Demian Katz [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=2>] > Sent: Wednesday, September 10, 2014 6:33 AM > To: Andy Erion; [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=3> > Subject: RE: [VuFind-General] vufind 2.3 with Aleph > > Is it possible that you can access this from your desktop, but your VuFind > server does not have permission? > > I'm not sure what level of debugging output is supported by the Aleph driver, > but have you tried to find out the exact URL being used and make sure that > works? Or is that how you found the sample URL you cited? > > - Demian > > > -----Original Message----- > > From: Andy Erion [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=4>] > > Sent: Tuesday, September 09, 2014 4:52 PM > > To: [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=5> > > Subject: Re: [VuFind-General] vufind 2.3 with Aleph > > > > I was able to get the RESTful API running and I can hit it and get a > > response (IE. > > http://argos.sdln.net:1895/rest-dlf/record/SYS01000847718?view=full) > > > > However, when I click on an item in VuFind to look at its details I > > get an error, "Unable to connect to argos.sdln.net:1895 . Error #0: > > stream_socket_client(): unable to connect to argos.sdln.net:1895 > > (Permission denied)" > > > > Andy > > > > -----Original Message----- > > From: Oliver Schihin [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=6>] > > Sent: Friday, August 22, 2014 1:26 AM > > To: Andy Erion; [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=7> > > Subject: Re: [VuFind-General] vufind 2.3 with Aleph > > > > RESTful needs to be running, as soon as you are going to work with > > items and transactions in and out of Aleph. There are some calls that > > run via X-Server, and for some functions, you have the choice (for > > instance, to authenticate, you can either user REST or X), but still, X- > Server is limited. > > > > If you are a litte bit familiar with PHP, a look at VuFinds > > Aleph-Driver can be helpful to see what it does, and how: > > https://github.com/vufind- > > org/vufind/blob/master/module/VuFind/src/VuFind/ILS/Driver/Aleph.php > > > > We are using Aleph as a backend, with local modifications. If you have > > questions, post on the list. Some Aleph users hang around here. > > > > Oliver > > > > > > ---------------------------------------------------------------------- > > -------- > > Want excitement? > > Manually upgrade your production database. > > When you want reliability, choose Perforce. > > Perforce version control. Predictably reliable. > > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg. > > clktrk _______________________________________________ > > VuFind-General mailing list > > [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=8> > > https://lists.sourceforge.net/lists/listinfo/vufind-general > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > VuFind-General mailing list > [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=9> > https://lists.sourceforge.net/lists/listinfo/vufind-general ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VuFind-General mailing list [hidden email]</user/SendEmail.jtp?type=node&node=4666136&i=10> https://lists.sourceforge.net/lists/listinfo/vufind-general ________________________________ If you reply to this email, your message will be added to the discussion below: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666136.html To unsubscribe from vufind 2.3 with Aleph, click here. NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ________________________________ View this message in context: RE: vufind 2.3 with Aleph<http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666138.html> Sent from the vufind-general mailing list archive<http://vufind.2307425.n4.nabble.com/vufind-general-f4655162.html> at Nabble.com. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VuFind-General mailing list [hidden email]</user/SendEmail.jtp?type=node&node=4666139&i=2> https://lists.sourceforge.net/lists/listinfo/vufind-general ________________________________ If you reply to this email, your message will be added to the discussion below: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666139.html To unsubscribe from vufind 2.3 with Aleph, click here. NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ________________________________ View this message in context: RE: vufind 2.3 with Aleph<http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666140.html> Sent from the vufind-general mailing list archive<http://vufind.2307425.n4.nabble.com/vufind-general-f4655162.html> at Nabble.com. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VuFind-General mailing list [hidden email]</user/SendEmail.jtp?type=node&node=4666141&i=2> https://lists.sourceforge.net/lists/listinfo/vufind-general ________________________________ If you reply to this email, your message will be added to the discussion below: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666141.html To unsubscribe from vufind 2.3 with Aleph, click here. NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> [http://vufind.2307425.n4.nabble.com/images/icon_attachment.gif]Vufind Error P1.jpg (366K) Download Attachment<http://vufind.2307425.n4.nabble.com/attachment/4666142/0/Vufind%20Error%20P1.jpg> [http://vufind.2307425.n4.nabble.com/images/icon_attachment.gif]Vufind Error P2.jpg (513K) Download Attachment<http://vufind.2307425.n4.nabble.com/attachment/4666142/1/Vufind%20Error%20P2.jpg> ________________________________ View this message in context: RE: vufind 2.3 with Aleph<http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666142.html> Sent from the vufind-general mailing list archive<http://vufind.2307425.n4.nabble.com/vufind-general-f4655162.html> at Nabble.com. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VuFind-General mailing list [hidden email]</user/SendEmail.jtp?type=node&node=4666143&i=2> https://lists.sourceforge.net/lists/listinfo/vufind-general ________________________________ If you reply to this email, your message will be added to the discussion below: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666143.html To unsubscribe from vufind 2.3 with Aleph, click here. NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ________________________________ View this message in context: RE: vufind 2.3 with Aleph<http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666144.html> Sent from the vufind-general mailing list archive<http://vufind.2307425.n4.nabble.com/vufind-general-f4655162.html> at Nabble.com. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VuFind-General mailing list [hidden email]</user/SendEmail.jtp?type=node&node=4666145&i=2> https://lists.sourceforge.net/lists/listinfo/vufind-general ________________________________ If you reply to this email, your message will be added to the discussion below: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666145.html To unsubscribe from vufind 2.3 with Aleph, click here<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4665996&code=YWVyaW9uQHNkbG4ubmV0fDQ2NjU5OTZ8MTI0MzQ2MzAyOA==>. NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://vufind.2307425.n4.nabble.com/vufind-2-3-with-Aleph-tp4665996p4666146.html Sent from the vufind-general mailing list archive at Nabble.com. |