Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

CGI Script Not Showing Bottom of Page

by Baffled (Acolyte)
on Feb 11, 2008 at 06:26 UTC ( #667331=perlquestion: print w/replies, xml ) Need Help??
Baffled has asked for the wisdom of the Perl Monks concerning the following question:

Is there a common answer to a cgi script not displaying the bottom of some pages? My script works fine when I upload it to another domain or even another subdomain, however it seems to not finish diplaying some pages bottoms in parts of it. I had this happen about two years ago and was able to fix it with some guidance, but cant remember much about the details. Im a real newbie at this, but this is something that is considered simple basics to you guys.

I could direct you to the same page on both the working and not working sites so you are able to see but not sure if they like posting urls in this forum but can send them if needed.

These are the same files in both top level and sub domains and its running correctly in one while in the top level domain it seems to not be generating the bottom half of some pages delivered via cgi. Its the same file, download it from one and change the path and upload to the other and vise versa? This is an example of the same page from both sites, as you can see the top level one seems to not be able to complete the page or display the footer while the sub domain displays it all correctly.

Additionally I tested the script out under a different IP and domain of bidderssite.NET and it works fine there as well.
So this is why I have to ask for the guidance of the monks..

Replies are listed 'Best First'.
Re: CGI Script Not Showing Bottom of Page
by moritz (Cardinal) on Feb 11, 2008 at 08:02 UTC
    The common answer is: you made a mistake.

    Check your web server's error log, and see if it contains anything useful.

    Start your script with use strict; use warnings; and see if there are any warnings.

    For debugging purposes, use use CGI::Carp qw(fatalsToBrowser); to find out if there was an error during execution

Re: CGI Script Not Showing Bottom of Page
by McDarren (Abbot) on Feb 11, 2008 at 06:30 UTC
    You're probably better off posting the code here. If there is lots of code, try trimming out anything that isn't relevant, and if it's particularly long, you can use <readmore> tags.
      Hello McDarren, Besides being a emmence amount of code I dont feel comfortable posting that part of my code online, but I posted a few links so you can see the results, I guess I was hoping for a general answer for something common to start me looking in the right direction. See the thing is it works fine under other domains as well as the sub, and its usable and mostly working on that one. Its just the bottom half of pages from the main script that are rendered when a ?action call happens, and even then not all of them but enough.
        If you cannot show the code, at least tell us the structure of your code:
        • Are the headers/footers in separate files?
        • How are they all linked together?
        • Do you use templates?
        • Are the main and sub-domain sites running on the same server? As the same user, with the same privileges?
        • What errors do you see in the logs of the web-server?
        • What version of Perl are you using?
        • Do you use mod_perl?
        • ...


        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: CGI Script Not Showing Bottom of Page
by eric256 (Parson) on Feb 11, 2008 at 14:13 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://667331]
Approved by McDarren
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-02-25 12:24 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (312 votes). Check out past polls.