Announcement

Collapse
No announcement yet.

Digital download problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Digital download problem

    I have been ruuning my site for more than 2 years with digital download working perfectly.
    We have now moved from this hosting package to our managed server at 1&1. Actinic is working perfectly on this new server with the exception of digital download.

    The customer places an order and is sent to the SecPay site for card verification. Once the card has been accepted they are then shown a screen with a link to open up their receipt and in the middle of the receipt there is a link "Click here to download your PDF file". It is on clicking this link that the Error message appears.

    On clicking the download link I get the following URL displayed in the status bar:

    http://www.databeuro.com/cgi-bin/nph...Te6e6e.....etc


    Anybody have a clue as to why it has stopped working on my new server?

    #2
    David,

    The solution you are looking for is on this thread... http://community.actinic.com/showthread.php?t=19866

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Thanks...I'd already studued that thread andpossible solutions but with no luck. Much of the discussion seems to b about problems associated with a Windows server but we are Unix.


      Looking at the download link on the receipt page it seems that it isd not picking up the path www.databeuro.com.acatalog/DD/......... but instead writing http://www.databeuro.com/acatalog/np...1.pl/(filename which is in the DD directory)

      I also allow account customers who log in to download digital files by puttinga link on their page:
      e.g.
      <Actinic:SHOWFORPRICESCHEDULE
      Schedules="2"
      HTML="&#60;A HREF=&#34;/acatalog/DD/1003_020324_natural_gas_information_2005.pdf&#34;&#62; &#60;B&#62;Natural Gas Information&#60;&#47;B&#62;&#60;&#47;A&#62;"/>

      This download works fine so I know that everything is in the right place etc. It's just the link that is generated on the receipt page that is wrong.

      So where do I go from here?

      Comment


        #4
        David,

        The link you posted is the one generated by the script that controls the Digital Download files, or nph-dl000001.pl.

        The error you have may occur if the server uses a CGI-Wrapper that does not support non-parsed headers. Check the server HTTP error log for the error:-

        nph-dl000001.pl malformed header from script. Bad header=HTTP/1.1 200 OK:
        To resolve this problem rename nph-download.pl to download.pl in the site directory on your PC and update the site ( Web | Update Website).

        Kind regards,
        Bruce King
        SellerDeck

        Comment


          #5
          OK I've done that ..checked that download.pl is in the cgi-bin and nph-dl000001.pl has gone...uploaded site and still the same link http://www.databeuro.com/cgi-bin/nph...Te6e6e.....etc appears

          The server by the way is a 1and1 managed Unix.

          Am I missing a step?

          Comment


            #6
            David,

            Can you provide a complete download link that you see on the receipt page please, you can change the file name if you want to, but let us know if you have, so that we can tell you if it should or should not work.

            Kind regards,
            Bruce King
            SellerDeck

            Comment


              #7
              David,

              I think you need to look at this thread http://community.actinic.com/showthread.php?t=12845 , look at post #8 by BPJSURF..

              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 NETQUOTEVAROWNLOADMODULE;

              and change it to read

              require NETQUOTEVAROWNLOADMODULE;

              Then upload your store.
              Have you tried this bit as yet?

              Kind regards,
              Bruce King
              SellerDeck

              Comment


                #8
                Digital download problem

                I have completely reloaded the site and checked that all paths/directories are correct. Everything on the shop is working perfectly except for the link that is generated on the reciept page to download the pdf file from the DD directory. This directory is set up and files will upload to this directory when I run an upload.

                I have modified the 'nph-download.pl' as you suggested but this does not solve the problem.

                here is the section of the files I have modified. Is it corrrect?


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


                NETQUOTEVAR:INCLUDEPATHADJUSTMENT

                use strict;
                require NETQUOTEVAROWNLOADMODULE;
                use CGI;


                Finally, here is the link that is generated on the receipt page :
                Click on this link to download your file:
                http://www.databeuro.com/acatalog/np...b7e5e4e7e0e9e6

                However, I have noticed that on the email receipt which I get the download link is truncated to:

                Click on this link to download your file: nph-dl000001.pl/sopemi_2004_TOC.pdf?DAT=e8e9e98ee1e0e8e5e4e48ea2bea1b4bcb88ee3e1e1e58e859e92ffa1b5b7d1e0e0e5e2e6e1e9e7e1e7d1b2b3e3b4b3b5e1e8b2e5e9e3b2b3e6e5e9e6e3e8e2e8e0e3b4b7e5e4e7e0e9e6

                Whereas it should read: http://www.databeuro.com/acatalog/DD/sopemi.........

                Does any of this help solve the problem

                Thanks

                David

                As you will see

                Comment


                  #9
                  Hi David,

                  I would suggest raising a support ticket on this one please as I really do not know what else could be wrong. You can do that @ http://www.actinic.co.uk/support/register.htm.

                  The link on the receipt page for a DD product on my default store which is uploaded to localhost shows thisThe absolute path to the DD folder is not necessary in this case as the nph script will validate the link and initiate the transfer correctly.

                  Kind regards,
                  Bruce King
                  SellerDeck

                  Comment


                    #10
                    I'm also receiving the same error.

                    I have changed server to a dedicater Linux server, hosted with fasthosts.

                    I have changed to the new server, and my digital downloads do not work. I have checked them and they are on the server.

                    I have purged & refreshed all files including the perl scripts & cat files

                    The url to the digital download is http://www.performancefood.co.uk/cgi...e3e7e3e6b2e3b2
                    (I copied this from my receipt page)

                    Can anyone please help me with this one.
                    ____________________
                    Paul Daly
                    www.dalydesign.co.uk
                    web design | graphic design | illustration

                    Comment


                      #11
                      Paul,

                      Have you tried the suggestions in the threads above?

                      Kind regards,
                      Bruce King
                      SellerDeck

                      Comment


                        #12
                        Digital download

                        Hi Bruce

                        You said in your latest reply:

                        "The link on the receipt page for a DD product on my default store which is uploaded to localhost shows this
                        Quote:
                        http://localhost/cgi-bin/nph-dl00000...b5e3e3e8e6b2e6

                        The absolute path to the DD folder is not necessary in this case as the nph script will validate the link and initiate the transfer correctly."


                        This is exactly what I am getting BUT in my case the nph script does not validate the link to the DD directory. So how do we fix it so that this script points to the DD directory and thus enable the PDF file to be found and downloaded?

                        Thanks
                        David

                        Comment


                          #13
                          I would suggest a purge and refresh of the site..

                          1. Manually FTP to your server

                          2. Delete all the .pl and .pm files within your /cgi-bin/ folder

                          3. Delete all the .cat and .fil within your /acatalog/ folder

                          4. Within your local PC, please go to 'C:\Program Files\Actinic v7\Sites\Site1'

                          5. Delete all the .pl and .pm and .cat and .fil files here as well

                          6. Go to the folder 'C:\Program Files\Actinic Ecommerce v6\Original' and copy the .pl and .pm and paste them back into your Site1 folder

                          Please note, if you have any scripts that are modified or changed in any way I would suggest making a backup of the file as replacing from the 'Original' folder will bring in the original set.

                          Once done go to Web | refresh Website

                          Let us know how it goes.

                          Kind regards,
                          Bruce King
                          SellerDeck

                          Comment

                          Working...
                          X