-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 errors #562
Comments
Thanks for the suggestions. What kind of issues does this catch for you? |
Hi Gabor
I use 'perl -cw' to find anything that gets caught by the compiler -
missing semicolons, mismatched brackets, undeclared variables, scope
problems, missing 'use' or 'require' and so on. When making a small
change to a working script it's tempting just to upload it (to a test
instance of the site) and hope for the best, but a quick 'perl -cw' at
least ensures that it will syntax check.
It's a lot easier and quicker reading the output from the Perl compile
phase than deciphering the server log. My main hosting service has switched
from Apache to Nginx, which has a much less readable log file.
It's also the case that warnings generated by a webpage don't always appear
in the log file, and even if they do, you probably wouldn't notice them.
Peter
…On Wed, 2 Mar 2022 at 04:19, Gabor Szabo ***@***.***> wrote:
Thanks for the suggestions. What kind of issues does this catch for you?
—
Reply to this email directly, view it on GitHub
<#562 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVB6YDPXXFPYQW6PBVNHF5TU53T4HANCNFSM5PUDMXXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Peter Campbell Smith*
***@***.***
07599 992350 or 01372 728593
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe it's too obvious to include, but my first response to a 500 error is:
perl -cw app.pl
Most of my scripts use $ENV{DOCUMENT_ROOT} or other environment variables, so this works better:
export DOCUMENT_ROOT=/path/to/website/root
perl -cw app.pl
The text was updated successfully, but these errors were encountered: