Blank pages

Help
2004-09-22
2013-05-30
  • Simon Fairfax
    Simon Fairfax
    2004-09-22

    I'm using obiblio 5.0, Apache 2.0.51, and MySQL 4.0.2 running on WinXP Service pack 2. My problem occurs when searching in OPAC or when trying to lookup patron by number. In both cases, when I hit the submit button, the browser loads a page containing nothing but a stylesheet. The only changes I made were to change all the limits for all the material types to 0.

     
    • Micah Stetson
      Micah Stetson
      2004-09-23

      What are the last few lines of the returned HTML?  Are there any errors in the error logs?  Does this happen exactly the same in the OPAC and in the Cataloging interface?  Does everything else seem to work?  What appears in the address bar?

      Thanks,

      Micah

       
    • Simon Fairfax
      Simon Fairfax
      2004-09-29

      Sorry about the amount of time it took me to answer. The address in the browser when the problem occurs is http://localhost/openbiblio/circ/mbr_view.php?mbrid=1&reset=Y for the member search and http://localhost/openbiblio/shared/biblio_search.php for the title search. Interestingly enough, when I searched for the barcode '100' which is not in the db, it gives me the no results found page. THe url for opac search by title is http://localhost/openbiblio/shared/biblio_search.php as well. In all three cases, the source given by viewing the source through the browser is:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <HTML><HEAD>
      <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
      <BODY></BODY></HTML>

      Everything else does seem to work. Looking through the web directory did not reveal a log file, but maybe it's not stored there? Thanks in advance for your help.

       
      • Micah Stetson
        Micah Stetson
        2004-09-30

        That HTML isn't produced by obiblio.  We don't use a doctype declaration anywhere, and we don't capitalize like that.  In fact, our header HTML looks nothing like that.  Perhaps obiblio is returning an absolutely blank page, and the browser is supplying that HTML for it.

        Do you have display_errors or log_errors set on in your php.ini?  When you search for barcode 100, is that a member barcode or a book barcode?  What does an empty search of the other kind produce?  Did you have any trouble during the install process?  Can you view individual biblios (I.e. .../openbiblio/shared/biblio_view.php?bibid=1)?

        It seems like the problem must be in one of the query classes for no output to be produced.  But there isn't any place that they explicitly exit.  If they exit because of an error, however, you should get an error message.  Set display_errors = On in php.ini and see what happens.

        Micah

         
    • Simon Fairfax
      Simon Fairfax
      2004-10-02

      Ok, after turning on display_errors,

      Fatal error: Cannot redeclare BiblioSearch::$_copyid in C:\Program Files\Apache Group\Apache2\htdocs\openbiblio\classes\BiblioSearch.php on line 53

      shows up after searching for biblio info via barcode or name in the administrator, as well as when searching from opac. Curiously enough, when I use the direct link provided above, the correct page displays.

       
      • Micah Stetson
        Micah Stetson
        2004-10-05

        That's a known bug that shows up when you use PHP 5.  It's been fixed in CVS, but the easiest thing for you to do is just delete the line it's complaining about.  It's a duplicate, and that's why it's complaining.

        Micah

         


Anonymous


Cancel   Add attachments