Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Encrypted Links Fail With WP PDF Stamper Encrypted Downloads
- This topic has 13 replies, 5 voices, and was last updated 12 years, 11 months ago by admin.
-
AuthorPosts
-
December 5, 2011 at 12:53 am #4936KSpectator
Versions of Plugins
WP eStore 5.9.9.2
WP PDF Stamper 3.3.8
Error Message when link is clicked…
The wp_eStore download manager ran into a problem that it couldn’t handle, and is unable to process your download request. Please contact the site administrator.
Please tell the site administrator the problem was due to the following reason:
The download script couldn’t locate the file associated with the digital product. If the administrator thinks this reason is in error, maybe a different URL conversion option might fix the problem.
Debug Logs
ipn_handle_debug.log
[12/05/2011 12:12 AM] – Advisory : Log file reset.
[12/05/2011 12:12 AM] – SUCCESS :Paypal Class Initiated by 66.211.170.66
[12/05/2011 12:12 AM] – SUCCESS :Post string : mc_gross=9.99&protection_eligibility=Eligible&address_status=confirmed&item_number1=2&payer_id=3KHM3TWC2GM2W&tax=0.00&address_street=PO+BOX+684351&payment_date=16%3A12%3A48+Dec+04%2C+2011+PST&payment_status=Completed&charset=windows-1252&address_zip=78768-4351&mc_shipping=0.00&mc_handling=0.00&first_name=Thomas&mc_fee=0.59&address_country_code=US&address_name=Thomas+Montana¬ify_version=3.4&custom=ip%3D72.179.55.138&payer_status=verified&business=sales%40mylifeasacougar.com&address_country=United+States&num_cart_items=1&mc_handling1=0.00&address_city=Austin&verify_sign=AgkbSFB8hsMFn0F9dQb0-BCUlz4pAw0PFM8IMDiupkoZRn-eSeJqCBRA&payer_email=tsmontana%40hotmail.com&mc_shipping1=0.00&txn_id=4VR19289CG473102U&payment_type=instant&last_name=Montana&address_state=TX&item_name1=Conservations+With+Men&receiver_email=sales%40mylifeasacougar.com&payment_fee=0.59&quantity1=1&receiver_id=4UB5NESKJT3JQ&txn_type=cart&mc_gross_1=9.99&mc_currency=USD&residence_country=US&transaction_subject=ip%3D72.179.55.138&payment_gross=9.99&ipn_track_id=kakaPmRg6gr.opkmFQmZtA&
[12/05/2011 12:12 AM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/05/2011 12:12 AM] – SUCCESS :IPN successfully verified.
[12/05/2011 12:12 AM] – SUCCESS :Creating product Information to send.
[12/05/2011 12:12 AM] – SUCCESS :Transaction Type: Shopping Cart
[12/05/2011 12:12 AM] – SUCCESS :Number of Cart Items: 1
[12/05/2011 12:12 AM] – SUCCESS :Item Number: 2
[12/05/2011 12:12 AM] – SUCCESS :Item Name: Conservations With Men
[12/05/2011 12:12 AM] – SUCCESS :Item Quantity: 1
[12/05/2011 12:12 AM] – SUCCESS :Item Price: 9.99
[12/05/2011 12:12 AM] – SUCCESS :Item Shipping: 0.00
[12/05/2011 12:12 AM] – SUCCESS :Item Currency: USD
[12/05/2011 12:13 AM] – SUCCESS :Download Link :
Conservations With Men – http://www.mylifeasacougar.com/wp-content/plugins/wp-cart-for-digital-products/download.php?file=2BOa%2FCgAUvCTjKTqyUyZ9OKTRg%3D%3D
[12/05/2011 12:13 AM] – SUCCESS :Product Email successfully sent to tsmontana@hotmail.com.
[12/05/2011 12:13 AM] – SUCCESS :Notify Email successfully sent to sales@mylifeasacougar.com.
[12/05/2011 12:13 AM] – SUCCESS :Updating Products, Customers, Coupons, Sales Database Tables with Sales Data.
[12/05/2011 12:13 AM] – SUCCESS :Products, Customers, Coupons, Sales Database Tables Updated.
[12/05/2011 12:13 AM] – SUCCESS :Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.
[12/05/2011 12:13 AM] – SUCCESS :Not Using the WP Affiliate Platform Plugin.
[12/05/2011 12:13 AM] – SUCCESS :Paypal class finished.
[12/05/2011 12:13 AM] – SUCCESS :Paypal Class Initiated by 66.211.170.66
[12/05/2011 12:13 AM] – SUCCESS :Post string : mc_gross=9.99&protection_eligibility=Eligible&address_status=confirmed&item_number1=2&payer_id=3KHM3TWC2GM2W&tax=0.00&address_street=PO+BOX+684351&payment_date=16%3A12%3A48+Dec+04%2C+2011+PST&payment_status=Completed&charset=windows-1252&address_zip=78768-4351&mc_shipping=0.00&mc_handling=0.00&first_name=Thomas&mc_fee=0.59&address_country_code=US&address_name=Thomas+Montana¬ify_version=3.4&custom=ip%3D72.179.55.138&payer_status=verified&business=sales%40mylifeasacougar.com&address_country=United+States&num_cart_items=1&mc_handling1=0.00&address_city=Austin&verify_sign=AgkbSFB8hsMFn0F9dQb0-BCUlz4pAw0PFM8IMDiupkoZRn-eSeJqCBRA&payer_email=tsmontana%40hotmail.com&mc_shipping1=0.00&txn_id=4VR19289CG473102U&payment_type=instant&last_name=Montana&address_state=TX&item_name1=Conservations+With+Men&receiver_email=sales%40mylifeasacougar.com&payment_fee=0.59&quantity1=1&receiver_id=4UB5NESKJT3JQ&txn_type=cart&mc_gross_1=9.99&mc_currency=USD&residence_country=US&transaction_subject=ip%3D72.179.55.138&payment_gross=9.99&ipn_track_id=kakaPmRg6gr.opkmFQmZtA&
[12/05/2011 12:13 AM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/05/2011 12:13 AM] – SUCCESS :IPN successfully verified.
[12/05/2011 12:13 AM] – SUCCESS :Creating product Information to send.
[12/05/2011 12:13 AM] – FAILURE :The transaction ID and the email address already exists in the database. So this seems to be a duplicate transaction notification. This usually happens with bad server setup.
[12/05/2011 12:13 AM] – SUCCESS :Paypal class finished.
eStore_post_payment_debug.log
[12/05/2011 12:12 AM] – Advisory : Log file reset.
[12/05/2011 12:12 AM] – SUCCESS :Generating download link for single file.
[12/05/2011 12:12 AM] – SUCCESS :Stamping request for product ID: 2
[12/05/2011 12:12 AM] – SUCCESS :Checking for a reference to the stamped copy of the file for this transaction before invoking another stamp request:4VR19289CG473102U
[12/05/2011 12:12 AM] – SUCCESS :Could not find a reference to the stamped copy of a file
[12/05/2011 12:12 AM] – SUCCESS :Stamping the PDF file if WP PDF stamper plugin is installed.
[12/05/2011 12:12 AM] – SUCCESS :Source file type check… is file type PDF return value: 1
[12/05/2011 12:12 AM] – SUCCESS :Source File URL is: http://www.mylifeasacougar.com/wp-content/uploads/2011/10/Edie-Taylor-Conversations-With-Men-password-your-email-address.pdf
[12/05/2011 12:12 AM] – SUCCESS :Attempting to stamp the PDF file using CURL API
[12/05/2011 12:13 AM] – FAILURE :An error occured while trying to stamp the file! Error details: <!– PHP Wrapper – 500 Server Error –>
[12/05/2011 12:13 AM] – SUCCESS :Performing item specific autoresponder signup if specified.
[12/05/2011 12:13 AM] – SUCCESS :Performing global autoresponder signup if specified.
subscription_handle_debug.log
[12/05/2011 12:12 AM] – Advisory : Log file reset.
squeeze_form_debug.log
[12/05/2011 12:12 AM] – Advisory : Log file reset.
download_manager_debug.log
[12/05/2011 12:12 AM] – Advisory : Log file reset.
[12/05/2011 12:15 AM] – Status : Unresolved DL file path = Error!
[12/05/2011 12:15 AM] – Status : Resolved DL file path = Error!
[12/05/2011 12:15 AM] – FAILURE : Error on file_exists(‘Error!’)
Local Hosting Logs
/public_html/mylifeasacougar/wp-admin/error_log:
[11-Oct-2011 12:51:43] PHP Warning: unlink(/public_html/mylifeasacougar/wp-admin) [function.unlink]: Is a directory in /public_html/mylifeasacougar/wp-content/plugins/wp-pdf-stamper/manage_stamped_files_page.php on line 0
/public_html/mylifeasacougar/error_log:
[12-Oct-2011 10:56:18] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[12-Oct-2011 10:56:18] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[12-Oct-2011 10:58:49] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[12-Oct-2011 10:58:49] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[12-Oct-2011 10:59:25] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[12-Oct-2011 10:59:25] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Even though the debug log marked down that the stamper threw an error, the file still did get stamped and encrypted properly, and none of the errors listed seem to be related to the website. If we only have the WP PDF Stamper stamp, but not encrypt the file, the download links work perfectly.
Any ideas?
December 5, 2011 at 4:02 am #39180PeterMemberHi there,
Looks like you are getting a “500 Server Error”.
This is something which needs to be addressed with your host provider.
Please see this link for more info:
Error 500 – Internal server error (What it means and What to do)
Also your logs appear to indicate that there is no space left on your host.
December 5, 2011 at 1:06 pm #39181KSpectatorThe server logs are for events that happened over 6 weeks ago. I included the whole file. If there was a server space issue, why are the stamped files still created and can be viewed in the Manage Stamped PDF’s. There are no other log entries. I don’t know why the eStore is saying there is a 500 message when the server logs clearly indicate there are not for the time period the plugin was in use.
December 5, 2011 at 2:01 pm #39182wzpModeratorThe correct clue here is:
Status : Unresolved DL file path = Error!
“Error!” is the file name that PDF Stamper passes to eStore, when it has trouble stamping a particular file, and is unable to create the stamped file.
Are you able to manually stamp the file in question?
December 5, 2011 at 8:40 pm #39183KSpectatorYes, the file can be stamped manually. No problem. It is even stamped when the purchase is made (I can go into the Manage Stamped PDF’s), and find it sitting there…when the download link is encrypted, it just can’t find it. The source (unstamped, unencrypted) PDF is in the WP Media Library. The download directory is the default that comes with the plugins. I have noticed that the transaction ID to postpended onto the PDF file name. Perhaps the stamper is looking for the original file name and can’t find it, because that transaction ID is postpended? And why is it generating the download link, before the encypted/stamped file is even created?
December 5, 2011 at 10:03 pm #39184wzpModeratorTo answer the last question… The link is generated AFTER the file is stamped. It expects the stamper to return the name of the stamped file, which is then stored in the eStore database. Perhaps, eStore should be generating some kind of log entry if it’s asked to generate links for files with “Error!” as the name…
Okay, since you can manually stamp the file with PDF Stamper Independently of eStore; perhaps it has something to do with PHP memory usage. How large or complex is the PDF file that’s giving you trouble? Is this problem only limited to this particular file?
December 5, 2011 at 10:25 pm #39185wzpModerator[12/05/2011 12:12 AM] – SUCCESS :Attempting to stamp the PDF file using CURL API
[12/05/2011 12:13 AM] – FAILURE :An error occured while trying to stamp the file! Error details: <!– PHP Wrapper – 500 Server Error –>
Do you have the cURL library installed on your server?
December 6, 2011 at 2:17 am #39186KSpectatorThe server memory issue was my first thought, too, but I adandoned it when the file did actually get stamped. Perhaps with a smaller file, it won’t bonk. The current PDF file is 3 MB. Did a PHPInfo() dump, and it shows that cURL is installed…
curl
cURL support enabled
cURL Information libcurl/7.21.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
I’ll see if I can get a 1 MB PDF to throw the same error.
December 6, 2011 at 10:01 am #39187adminKeymasterSome server’s only allow CURL to be used on external sites (they don’t allow it internally). I have updated PDF Stamper to go around that. Load a fresh build of eStore and the PDF stamper plugins and give it another go:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
December 6, 2011 at 10:05 pm #39188KSpectatorEverything works fine with a very small file (80 KB PDF). Our next step was to update both of the plugins. Thanks for the link. Will update to see how it works out.
December 11, 2011 at 11:47 am #39189KSpectatorWe Updated Versions of Plugins
WP eStore 5.9.9.2 -> 6.2.4
WP PDF Stamper 3.3.8 -> 4.0.7
Seems like it now works on off-peak for the full file size. Will now test on-peak, to make sure it isn’t an issue with shared hosting not having enough resources to process the file.
December 13, 2011 at 9:44 am #39190icomputeMemberI have been having the same problem. I think it is a timing issue – the return from PayPal and generating the “Thank You” page finishes before the PDF link is completed. If you notice, the “Thank You” page has a short link … it’s not complete. So when you click on this short link, the download manager can’t find the generated file. If you hit the back button from the error page and refresh the “Thank You” page, you get the full link. And the link in the email is correct.
December 13, 2011 at 5:27 pm #39191icomputeMemberIs there a way to interrupt the code just before the “Thank You” page is generated to test and see if the Stamper has finished? Maybe put one of the thermometers in to show that we are working? Or at least to intercept the error page. It is quite scary for purchasers when they see that screen
December 14, 2011 at 7:01 am #39192adminKeymasterThere is most likely a race condition occurring on this site. Can you please reply to the site access email that we sent to you before and I will investigate this further.
-
AuthorPosts
- You must be logged in to reply to this topic.