Problem with Lookup running in subdomain

Help
2009-12-26
2013-05-30
  • Klaus Kuhnert

    Klaus Kuhnert - 2009-12-26

    Hi all,
    I've installed opnenbiblio using http://mydomain.com/openbiblio.
    Lookup addon is also installed and will work partly (i get no rsults, but maybe taht is an other problem).
    Then I made an subdomain "biblio.mydomain.com" all works fine, except Lookup, i get allways "file: /lookup2/lookupOptsForm.php ?
    Check your directory name spelling. " This message I get also for lookupHostsForm.php and for lookup.php as well.
    What went wrong?

    Thanks,
    Klaus

     
  • Fred LaPlante

    Fred LaPlante - 2009-12-26

    Look at the end of ../openbiblio/lookup2/customHead.php. You should finsd a block of code like:

        switch ($_SERVER) {
    case '/openbiblio/lookup2/lookup.php':
    require_once(REL(__FILE__, "lookupJs.php"));
      break;

    case '/openbiblio/lookup2/lookupHostsForm.php':
    require_once(REL(__FILE__, "lookupHostsJs.php"));
    break;

    case '/openbiblio/lookup2/lookupOptsForm.php':
    require_once(REL(__FILE__, "lookupOptsJs.php"));
    break;

    default:
      // for debug only. You should never get here. If you do
      // one or more of the above directories is incorrect for your system
      echo "file: $_SERVER ?<br />Check your directory name spelling.";
        }

    check the exact spelling of each directory and modify the code to match. then tell me what you had to change and I will fix the source so it doesn't bother anyone else.

    Fred LaPlante

     
  • Klaus Kuhnert

    Klaus Kuhnert - 2009-12-27

    Hi Fred,

    the following change works:

        switch ($_SERVER) {
        case "/lookup2/lookup.php":
        require_once(REL(__FILE__, "lookupJs.php"));
          break;
       
        case "/lookup2/lookupHostsForm.php":
        require_once(REL(__FILE__, "lookupHostsJs.php"));
        break;
       
        case "/lookup2/lookupOptsForm.php":
        require_once(REL(__FILE__, "lookupOptsJs.php"));
        break;
       
        default:
          // for debug only. You should never get here. If you do
          // one or more of the above directories is incorrect for your system
          echo "file: $_SERVER ?<br />Check your directory name spelling.";
        }

    Maybe with the subdomain I'm allready in the root of openbiblio.
    Now administration works, but I get still no results, it just seems nothing to happen.     

    thanks,  
    Klaus

     
  • Fred LaPlante

    Fred LaPlante - 2009-12-27

    Hmm. I do not understand youtr openbiblio directory structure. Can you temm me the complete path to Lookup2? Can you also tell me your OS? And your Browser.

    If Browser is not FireFox 3+ I strongly recommend you use that for debugging. It is also very helpful if you have FireBug addon installed in FireFox as I t will tell us where Lookup is failing. Also please tell me what the screen looks like when Lookup starts.

    What host are you trying to contact with Lookup, and what is the book ISBN or Title & Author? If I have that information I can try it from here to see if the problem is Lookup or something unusual about the Host.

    Fred LaPlante

     
  • Klaus Kuhnert

    Klaus Kuhnert - 2009-12-27

    My openbiblio directory structure on the server is as usual, it starts with the /httpdocs/openbiblio/      
    But a subdomain points to that directory and access by this subdomain causes the error.

    The second problem I posted already                                                               
    Meanwhile I’ve updated to OpenBiblo 6.1

    Klaus

      : https://sourceforge.net/projects/obiblio/forums/forum/164978/topic/3365101?message=7916855

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks