Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Why server error out with module

by hippo (Chancellor)
on Oct 26, 2020 at 14:27 UTC ( #11123183=note: print w/replies, xml ) Need Help??


in reply to Why server error out with module

3. the correct output, though lately that isn't happening at all :(

Your script and module don't produce any output that would be rendered in an HTML page.. See replies - this is not the case.

1. error 500 page

When that happens, consult the error log on the server to determine the cause.

FWIW, my money is still on something odd your hoster is doing.


🦛

Replies are listed 'Best First'.
Re^2: Why server error out with module
by keen2learn (Novice) on Oct 26, 2020 at 14:49 UTC
    Do you mean this wouldn't be rendered? It is outputted sometimes, between either a 500 page or a software error message regarding failing to find a sub routine.
    <!doctype html> <html> <head> <title>$pageTitle</title> </head> <body></body> </html>

      My mistake - you are quite right. I had missed the print qq($doctypeAndHeader); line. You don't need to quote a single variable when you print it like that, BTW. print $doctypeAndHeader; will do just as well and might be less confusing.

      So, you should be seeing this on each call. If not, check the webserver error log for the reasons. Good luck!


      🦛

        Thank you for the 'print' advice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-12-04 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?