PDA

View Full Version : digital download error


harlequin
11-Jul-2003, 12:55 AM
hi there, im using a light edition with digital download on a windows server

after purchase, when we click on the download link we get this error:

Can't locate dd000001.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at D:\webspace\Steve\clients_account \client domain_name.com\www\cgi-bin\nph-dl000001.pl line 18. BEGIN failed--compilation aborted at D:\webspace\Steve\clients_account \client domain_name.com\www\cgi-bin\nph-dl000001.pl line 18.

(clients_account \client domain_name.com above have been changed for anonymity...)

looking at nph-download.pl the file that generates nph-dl000001.pl you have catered for win/nt servers with:

push (@INC, "cgi-bin");

I have tried all variations i can reasonably think of...

push (@INC, "cgi-bin/");
push (@INC, "/cgi-bin");
push (@INC, "./cgi-bin");
push (@INC, "D:\webspace\Steve\clients_account \client domain_name.com\www\cgi-bin");

the first one is a bit different as it is the exact way we used to 'push' the cgi bins on our windows servers when using referrer.pl so we thought it worth a try.

the rest of the order process works, i.e. all the other cgi stuff can see the right location...just the digital download kkkknackered.

thanks in advance..

Steve Quinn
Harlequin Domains
www.harlequindomains.com
0800 0832077

harlequin
11-Jul-2003, 01:29 AM
if i actually put a copy of dd000001.pl in the servers C:/Perl/Site/Lib then the whole shebang works ???

i know the answer is there but if anyone can spot it for me....

Jan
11-Jul-2003, 07:58 AM
There have been problems reported with digital download on windows servers on this forum in the past - take a look at the thread below

http://community.actinic.com/showthread.php?s=&threadid=216&highlight=digital+download

Regards,

harlequin
11-Jul-2003, 10:06 AM
that sorted it, well, almost.

that post was from January 9th and was for an earlier release of v6. The later actinic releases allegedly fix the problem.

NOTE TO ACTINIC:

where you had a quick fix for Gary, you advised :

Next, locate the line

use NETQUOTEVAR:DOWNLOADMODULE;

and change it to read

require NETQUOTEVAR:DOWNLOADMODULE;

i can see that you have partly fixed this in v6.1.2 onwards...however on my copy, it was still saying:

use NETQUOTEVAR:DOWNLOADMODULE;

Once I had manually changed this to

require NETQUOTEVAR:DOWNLOADMODULE;

it worked instantly so you may want to check you distribution of that file....although i know i am in a minority on my windows server and you probably dont get that many requests for it...

happy client now.....

thanks again...

Steve Quinn
Harlequin Domains
www.harlequindomains.com
0800 0832077
Actinic Design, Hosting and Search Engine Optimisation
*** Now able to host Digital Download Software (har har) ***

garyhay
11-Jul-2003, 10:19 AM
Steve

I still had to patch up until 6.1.2

Silver Moon
12-Aug-2003, 10:23 PM
Hi

I am experiencing the exact same problem.
However, I'm not a "developer", so I cannot access the above link posted by Jan.

Would someone be so kind to tell me which template/file needs editing,
so I can change it from "use NETQUOTEVAR:DOWNLOADMODULE;" to "require NETQUOTEVAR:DOWNLOADMODULE;"

Windows XP search found 4 files containing the relevant text, all named nph-download.pl, and I'm assuming it's the one in the "Sites\Site1" dir which needs editing . . . though I'd appreciate someone's expertise confirmation first.


Thanks

SM


ps.
btw, I'm using v.6.1.3, so it looks like the problem still persists.
Also note, the site is on our isp's (Windows) server, not our own server.

harlequin
12-Aug-2003, 10:30 PM
hi there, here is a copy of the post by chris dicken from actinic:

Open 'nph-download.pl' in your Site1 folder and locate the line

NETQUOTEVAR:INCLUDEPATHADJUSTMENT

add the following code just above it.

my $bFound = 0;
my $sDir;
foreach $sDir (@INC)
{
if ($sDir eq ".")
{
$bFound = 1;
last;
}
}
if (!$bFound)
{
push (@INC, ".");
}
push (@INC, "cgi-bin");

Next, locate the line

use NETQUOTEVAR:DOWNLOADMODULE;

and change it to read

require NETQUOTEVAR:DOWNLOADMODULE;

Then upload your store.


yep, it seems its still a little issue with 6.1.xx but hopefully this will cure it..

as far as i am aware, you may only need to perform the second part i.e. changing the NETQUOTEVAR part if you are on the latest v6

please post back if you are having any more trouble as i am around till late tonight..

steve quinn
harlequin domains
www.harlequindomains.com

Silver Moon
12-Aug-2003, 10:36 PM
Thanks Steve

Wow, that was a quick reply. I'm impressed!

I'll try changing "use...." to "require NETQUOTEVAR:DOWNLOADMODULE;" first,
and if I've still got problems, then I'll add the extra code.

I'll be back soon to let you know if it works.

*fingers crossed*


I've just opened the file, and the extra code is already in there

Silver Moon
12-Aug-2003, 10:51 PM
Yay!

Everything's working perfectly now :)


Thank you ever so much! I really appreciate the help. :cool:

harlequin
12-Aug-2003, 10:56 PM
i LOVE the forums, where else would you get people who are competing in business helping each other? actinic forums thats where...other forums just dont compare...my word im going all poetic....time for more coffee

all the best..

steve

cdicken
13-Aug-2003, 08:06 AM
Thanks for the kind comments Steve. :)