Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Download Link Failure after successful PDT return to Thank You Page

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Download Link Failure after successful PDT return to Thank You Page

Tagged: Custom, download.php, estore

  • This topic has 9 replies, 3 voices, and was last updated 12 years, 1 month ago by YinYangMind.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • February 7, 2011 at 4:40 am #2656
    YinYangMind
    Member

    Hello,

    Great work you’ve done here!

    Getting the following error – environment variables are listed after error and symptoms, didn’t see exact issues on other similar posts:

    Fatal error: Cannot redeclare download_dispatch() (previously declared in /home/content/00/4595000/html/wp-content/plugins/wp-cart-for-digital-products/download.php:146) in /home/content/00/4595000/html/wp-content/plugins/wp-cart-for-digital-products/download.php on line 177

    Using PayPal Gateway only – full testing of transaction cycle, PayPal account (Buyer & Seller) & credit card – emails to Buyer with Link and Seller Notification working fine.

    When selecting the link in either the Buyer Email or on the Returning ‘thank you page’, the error above occurs.

    Download files are in a separate folder on the root at /video/ – ‘download.php’ (original, not custom) in both /video/ folder and ‘wp-content/plugins/wp-cart-for-digital-products’ folder.

    Linux Grid Hosting – GoDaddy (moved from Windows hosting this weekend)

    PHP 5.4

    MySQL – 4.1

    Wordpress 3.0.1

    Gazette Theme

    Latest Version of eStore

    Chrome 9

    Website – http://www.yogainmyschool.com

    Trying to launch campaign this week and would like to resolve asap!

    Thanks!

    Robert

    February 7, 2011 at 5:48 am #28787
    wzp
    Moderator

    “…Download files are in a separate folder on the root at /video/ – ‘download.php’ (original, not custom) in both /video/ folder and ‘wp-content/plugins/wp-cart-for-digital-products’ folder.”

    There’s the problem… If you want to have a custom location for the download script, you must use the custom download script instructions.

    http://www.tipsandtricks-hq.com/ecommerce/how-to-customize-the-encrypted-download-url-224

    February 8, 2011 at 4:28 am #28788
    YinYangMind
    Member

    Ok,

    I’ve followed both the newest instructions and the old instructions and now have the ‘old’ instructions setup and still get the following error:

    “Fatal error: Cannot redeclare download_dispatch() (previously declared in /home/content/00/4595000/html/wp-content/plugins/wp-cart-for-digital-products/download.php:146) in /home/content/00/4595000/html/wp-content/plugins/wp-cart-for-digital-products/download.php on line 177”

    Any ideas?

    Thanks!

    February 8, 2011 at 5:00 am #28789
    amin007
    Participant

    There can be only one copy of the “download.php” file. If you have done the customization then make sure to use the “custom_download.php” file. Don’t touch the “download.php” file.

    February 8, 2011 at 8:34 pm #28790
    YinYangMind
    Member

    Ok, I now have just one ‘download.php’ (used the custom-download.php without any changes except to rename to download.php) and have both the digital video file and the download.php file in the download directory which is in yogainmyschool.com/video/ folder. I’ve set the Download Verification Script location to the same directory.

    Now I have the following error: Please tell us “the Custom Download Validation Script could not find the download.php file in the eStore plugin directory.” Thank you!

    It seems to be saying that the download.php script that I’ve set up in the custom download folder is pointing back to the eStore location looking for the download.php file that I renamed so it would not be a duplicate file…I’m confused!

    We’re almost there! I hope this last issue can be resolved quickly…all the other functions are working fine including emails.

    Thanks!

    Robert

    February 9, 2011 at 12:25 am #28791
    wzp
    Moderator

    The custom script in the videos directory is supposed to invoke the original script, located in the original directory. Just unrename the one in the plugin directory.

    February 9, 2011 at 12:55 am #28792
    YinYangMind
    Member

    Ok, I’ll give that a try but isn’t that contradictory to what amin007 said to do?

    February 9, 2011 at 1:17 am #28793
    wzp
    Moderator

    No it is not. Take a look at the custom download.php file and compare it to the original one. The custom one is meant to be relocatable to directories outside the normal plugin directory. Its sole purpose is to “find” and then call the original download.php file. When you renamed the original file, it gave up, because it couldn’t find it.

    So, when the user invokes the custom download.php file, it first goes looking for the original one and then transfers control to it.

    February 9, 2011 at 1:20 am #28794
    YinYangMind
    Member

    I must have miss-interpreted amin007’s statement “There can be only one copy of the “download.php” file. If you have done the customization then make sure to delete the copy of “download.php” file from the eStore directory.” from above. Trying it now.

    Thanks!

    February 9, 2011 at 1:39 am #28795
    YinYangMind
    Member

    That did it!

    Thank you VERY MUCH for an outstanding product and support!!!

    Robert

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ