traincity has asked for the wisdom of the Perl Monks concerning the following question:

[Wed Jul 03 03:54:13.006426 2019] [cgi:error] [pid 6060:tid 1128] [cli +ent ::1:63636] End of script output before headers: itemlist.pl, refe +rer: http://localhost/choo/cgi-bin/ua/main.pl [Wed Jul 03 03:54:13.006426 2019] [cgi:error] [pid 6060:tid 1128] [cli +ent ::1:63636] AH01215: Can't locate http://localhost/choo/cgi-bin/ua +/includes/print_item_list.pl in @INC (@INC contains: C:/Strawberry/pe +rl/site/lib/MSWin32-x64-multi-thread C:/Strawberry/perl/site/lib C:/S +trawberry/perl/vendor/lib C:/Strawberry/perl/lib) at C:/Apache24/htdo +cs/choo/cgi-bin/ua/itemlist.pl line 40.\r: C:/Apache24/htdocs/choo/cg +i-bin/ua/itemlist.pl, referer: http://localhost/choo/cgi-bin/ua/main. +pl
Another error in which I think I have to change the link to itemlist.pl in a module? I am not sure. But there is no module in C:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread Actually that isn't the end of the path or there is no .pm file at that location. What am I missing here? One other time I had to change the path in the script and module.

Here is a portion of the code that should be relative for this:

use DBI; use IO::Socket; use UltimateAuction qw(%form $couser $copass $db $dbh %config @auction +_types); use strict; use Digest::MD5 qw(md5_hex); require 'C:/Apache24/htdocs/choo/cgi-bin/ua/variables/variables.cgi'; require 'C:/Apache24/htdocs/choo/cgi-bin/ua/variables/accountvars.cgi' +; &UltimateAuction::service; # connect to our database my $db = &UltimateAuction::mysql_connect; my %cookie = &UltimateAuction::get_cookie(); my $couser = $cookie{'Username'}; my $copass = $cookie{'Password'}; local %form = &UltimateAuction::fetch_form; require 'http://localhost/choo/cgi-bin/ua/includes/print_item_list.pl' +; require 'http://localhost/choo/cgi-bin/ua/includes/print_category_list +.pl'; require 'http://localhost/choo/cgi-bin/ua/includes/print_category_feat +ured.pl'; require 'http://localhost/choo/cgi-bin/ua/includes/gallery_featured.pl +';
The last four lines I believe are the ones that are affected. The first of the four is the one directly involved. Once again, thanks for any help.

2019-07-07 Athanasius added code tags and removed paragraph tags and line breaks within code

Replies are listed 'Best First'.
Re: Module unknown
by Corion (Patriarch) on Jul 03, 2019 at 08:42 UTC
    require 'http://...';

    See require. The require keyword takes a filename as argument. It does not take an URL as argument.

      Thanks for the suggestion. I was told earlier that require needed paths to work and that has worked in the past.

      I had inadvertently made a url instead of a path on the four lines. I changed them to paths and that fixed it.