Adobe encrypted pdf not downloading
-
Hi
I have pdf ebooks added on my site for sale. When I add a normal pdf book it is downloaded without any issue upon check out. Recently I added password protected pdf version of the same books. These were encrypted in Adobe using a password to prevent copy and paste. (To open and to print password is not required)Unfortunately when downloaded via shopping cart these only download a single blank page both on test mode and live mode. If I go to media on WP these books open normally.
When replaced them with normal non encrypted books again it will download the full book.
So it appears that Woocommerce dosn’t allow the encrypted book to be downloaded properly.I would be grateful if somebody could shed some light on this or advise me on a workaround please.
Many thanks
HarshaThe page I need help with: [log in to see the link]
-
Hi there,
To take a better look, please provide the following:
* A copy of your site’s
System Status
. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?*
Error Log
: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).Thanks.
Many Thanks Igor.Here they are
1. System status
### WordPress Environment ### WordPress address (URL): https://www.sinhalasongbook.com Site address (URL): https://www.sinhalasongbook.com WC Version: 6.0.0 REST API Version: ? 6.0.0 WC Blocks Version: ? 6.3.3 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.9.4 Log Directory Writable: ? WP Version: 5.8.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.25 (Debian) PHP Version: 7.3.33-1+0~20211119.91+debian9~1.gbp618351 PHP Post Max Size: 10 MB PHP Time Limit: 60 PHP Max Input Vars: 2500 cURL Version: 7.52.1 OpenSSL/1.0.2u SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.48-MariaDB-1~stretch Max Upload Size: 10 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.0.0 WC Database Prefix: wppb_ Total Database Size: 223.11MB Database Data Size: 176.53MB Database Index Size: 46.58MB wppb_woocommerce_sessions: Data: 1.50MB + Index: 0.02MB + Engine InnoDB wppb_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_woocommerce_downloadable_product_permissions: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wppb_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wppb_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wppb_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_actionscheduler_actions: Data: 0.17MB + Index: 0.19MB + Engine InnoDB wppb_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_actionscheduler_logs: Data: 0.14MB + Index: 0.13MB + Engine InnoDB wppb_bp_friends: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_bp_groups: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wppb_bp_groups_groupmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_bp_groups_members: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wppb_bp_user_blogs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_bp_user_blogs_blogmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_bv_activities_store: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_bv_fw_requests: Data: 1.02MB + Index: 0.00MB + Engine InnoDB wppb_bv_ip_store: Data: 0.30MB + Index: 0.30MB + Engine InnoDB wppb_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wppb_comments: Data: 0.31MB + Index: 0.28MB + Engine InnoDB wppb_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wppb_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_options: Data: 3.45MB + Index: 0.16MB + Engine InnoDB wppb_postmeta: Data: 8.52MB + Index: 6.58MB + Engine InnoDB wppb_posts: Data: 11.48MB + Index: 0.47MB + Engine InnoDB wppb_relevanssi: Data: 18.58MB + Index: 33.16MB + Engine InnoDB wppb_relevanssi_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_relevanssi_stopwords: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wppb_sm_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_snp_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_snp_stats: Data: 0.28MB + Index: 0.50MB + Engine InnoDB wppb_termmeta: Data: 0.22MB + Index: 0.16MB + Engine InnoDB wppb_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wppb_term_relationships: Data: 0.25MB + Index: 0.14MB + Engine InnoDB wppb_term_taxonomy: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wppb_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_top_ten: Data: 0.14MB + Index: 0.00MB + Engine InnoDB wppb_top_ten_daily: Data: 102.06MB + Index: 0.00MB + Engine InnoDB wppb_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wppb_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wppb_w3tc_cdn_pathmap: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_w3tc_cdn_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wppb_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wppb_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wppb_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wppb_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wppb_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wppb_wfConfig: Data: 3.05MB + Index: 0.00MB + Engine InnoDB wppb_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfFileMods: Data: 12.55MB + Index: 0.00MB + Engine InnoDB wppb_wfHits: Data: 1.02MB + Index: 0.08MB + Engine InnoDB wppb_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wfIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wppb_wfKnownFileList: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wppb_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfLogins: Data: 0.36MB + Index: 0.17MB + Engine InnoDB wppb_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfNotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wppb_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wppb_wfStatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wppb_wfTrafficRates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppb_yoast_indexable: Data: 3.52MB + Index: 1.08MB + Engine InnoDB wppb_yoast_indexable_hierarchy: Data: 0.13MB + Index: 0.20MB + Engine InnoDB wppb_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wppb_yoast_primary_term: Data: 0.11MB + Index: 0.13MB + Engine InnoDB wppb_yoast_seo_links: Data: 0.20MB + Index: 0.16MB + Engine InnoDB wppb_yoast_seo_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bv_ip_store: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ### Post Type Counts ### advanced_ads: 16 asp-products: 2 attachment: 293 blox: 1 bp-email: 16 custom_css: 1 customize_changeset: 33 directstripelogs: 1 feedback: 18 forum: 4 jp_img_sitemap: 1 jp_sitemap: 1 jp_sitemap_master: 1 my_songs: 1 nav_menu_item: 48 oembed_cache: 5 page: 20 popup_theme: 6 post: 1245 product: 25 pt_view: 2 reply: 1 revision: 93 shop_order: 44 snp_mail_log: 364 snp_popups: 6 song: 2 stripe_order: 10 tabs_responsive: 1 testimonial: 5 topic: 11 tutorial: 2 wp_block: 1 wpforms: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (51) ### Akismet Anti-Spam: by Automattic – 4.2.1 Ninja Popups: by ArsCode – 4.7.0 Breeze: by Cloudways – 1.2.6 Classic Editor: by WordPress Contributors – 1.6.2 Content Views: by Content Views – 2.4.0.2 Count Posts in a Category, Tag, or Custom Taxonomy: by bitacre – 3.1 Counter Widget: by Cyberbundle – 1.0 Duplicate Page: by mndpsingh287 – 4.4.7 Genesis Connect for WooCommerce: by StudioPress – 1.1.1 Genesis eNews Extended: by Brandon Kraft – 2.2.0 Genesis Extender: by The Cobalt Apps Team – 1.9.9 Genesis Responsive Slider: by StudioPress – 1.0.1 Genesis Simple Edits: by StudioPress – 2.3.1 Genesis Simple Hooks: by StudioPress – 2.3.0 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.3.0 Google Listings and Ads: by WooCommerce – 1.9.0 Heartbeat Control by WP Rocket: by WP Rocket – 2.0 jQuery Smooth Scroll: by BlogSynthesis – 1.4.1 jTab Guitar Tab Shortcode: by MatthewMarichiba – 1.0 Google Ads & Marketing by Kliken: by Kliken – 1.0.7 Mailchimp for WooCommerce: by Mailchimp – 2.5.4 MalCare Security - Free Malware Scanner, Protection & Security for WordPress: by MalCare Security – 4.67 PayPal Donations: by Tips and Tricks HQ Johan Steen – 1.9.7 Print, PDF & Email by PrintFriendly: by Print PDF & Email by PrintFriendly – 5.0 Relevanssi: by Mikko Saari – 4.14.5 Shortcodes Ultimate: by Vladimir Anokhin – 5.11.1 Simple Social Icons: by StudioPress – 3.0.2 Simple Taxonomy: by Amaury Balmer – 3.5 Social Warfare: by Warfare Plugins – 4.3.0 Accept Stripe Payments: by Tips and Tricks HQ wptipsntricks – 2.0.52 Top 10: by Ajay D'Souza – 3.0.0 Termly | GDPR/CCPA Cookie Consent Banner: by Termly – 3.0.2 Ultimate Posts Widget: by Clever Widgets – 2.2.0 Ultimate Tag Cloud Widget: by Rickard Andersson – 2.7.2 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.66 WaterWoo PDF: by Little Package – 2.7.12 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.5.1 CURCY - Multi Currency for WooCommerce: by VillaTheme – 2.1.9 WooCommerce Stripe Gateway: by WooCommerce – 5.9.0 WooCommerce Menu Cart: by Jeremiah Prummer Ewout Fernhout – 2.10.3 WooCommerce Payments: by Automattic – 3.4.0 WooCommerce PayPal Payments: by WooCommerce – 1.6.3 WooCommerce: by Automattic – 6.0.0 Wordfence Security: by Wordfence – 7.5.7 Yoast SEO: by Team Yoast – 17.8 WP Extra File Types: by Davide Airaghi – 0.5.2 WP Mail SMTP: by WPForms – 3.2.1 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.1 WP Responsive Menu: by MagniGenie – 3.1.6 WP YouTube Lyte: by Frank Goossens (futtta) – 1.7.18 WPForms Lite: by WPForms – 1.7.1.2 ### Inactive Plugins (1) ### Better Search Replace: by Delicious Brains – 1.3.4 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #9111 - /shop/ Cart: #9112 - /cart/ Checkout: #9113 - /checkout/ My account: #9114 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Genesis Sample Version: 2.2.4 Author URL: https://www.studiopress.com/ Child Theme: ? Parent Theme Name: Genesis Parent Theme Version: 3.3.5 Parent Theme Author URL: https://www.studiopress.com/ WooCommerce Support: ? ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: GB WooCommerce currency supported: ? PayPal card processing available in country: ? Pay Later messaging available in country: ? Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: ? ### WooCommerce Payments ### Version: 3.4.0 Connected to WPCOM: Yes Blog ID: 115082069 Account ID: acct_1K42UN2EMtmOkIhB ### Action Scheduler ### Complete: 469 Oldest: 2021-12-07 12:09:13 +0000 Newest: 2021-12-24 11:19:05 +0000 Failed: 1 Oldest: 2021-06-02 03:52:09 +0000 Newest: 2021-06-02 03:52:09 +0000 Pending: 6 Oldest: 2021-12-24 13:19:05 +0000 Newest: 2021-12-28 00:05:59 +0000 ### Status report information ### Generated at: 2021-12-24 12:23:55 +00:00 <strong>2. Error log</strong>
2021-12-07T23:24:21+00:00 CRITICAL Uncaught Error: Call to a member function get_currency() on bool in /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-content/plugins/woocommerce-payments/includes/multi-currency/FrontendCurrencies.php:214
Stack trace:
#0 /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-includes/class-wp-hook.php(303): WCPay\MultiCurrency\FrontendCurrencies->init_order_currency(false)
#1 /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(0, Array)
#2 /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(233): apply_filters(‘woocommerce_tha…’, 0)
#3 /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(63): WC_Shortcode_Checkout::order_received(”)
#4 /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout in /home/525825.cloudwaysapps.com/xcenatafcq/public_html/wp-content/plugins/woocommerce-payments/includes/multi-currency/FrontendCurrencies.php on line 214`If I may pipe in here… It looks like you have the WaterWoo PDF watermarking plugin active, and that could be an important piece of the puzzle here. If you are trying to run WaterWoo PDF on an encrypted PDF that will not work, the plugin does not include libraries to unencrypt the PDF nor have you provided credentials.
Make sure to exclude that file from watermarking. In the free version the only way to do that currently is to list the files you DO want marked in the settings textarea, and omit that file in the list.
Hi Little package
Thank you for your input. That could well be the case. I will try that and get back to you.
Thanks again
HarshaEasier testing would be to just deactivate WaterWoo for now. ??
(@littlepackage)
It in deed ease the case when I deactivate waterwoo file downloaded successfully.
I guess now I will have to choose between two options. prevent copy paste or watermark.Thank you very much for both of you for your effort.
Be safe
Harsha
There are more options than that, but you can keep it simple if you like. ??
WaterWoo requires PDFs be un-passworded, un-encrypted — so that they can be parsed and manipulated. Check the FAQs. FWIW the premium version of the plugin will password and encrypt them for you while watermarking. But neither plugin – nor any plugin yet on the market – will allow for encrypted PDFs. For now, you could try using this code in your functions.php file (or by using the Code Snippets plugin, frontend) to let the unencrypted file pass through despite errors the encryption causes with TCPDI.
function my_serve_unwatermarked_file() { return true; } add_filter( 'wwpdf_serve_unwatermarked_file', 'my_serve_unwatermarked_file', 10, 1 );
This function allows PDFs that fail watermarking to squeak through to the customer so obviously use it cautiously. I will be adding some parameters for the next release so if you’re interested in using it keep an eye. Any further discussion please open a ticket in the WaterWoo forums here. Thank you.
- The topic ‘Adobe encrypted pdf not downloading’ is closed to new replies.