Error downloading digital product
-
Hello, downloads of downloadable products have stopped working properly. Instead of the desired file, it is a file called “view” that is downloaded instead. What could be going on?
This is an excerpt from the contents of the “view” file
`<!DOCTYPE html><html><head><meta name=”google” content=”notranslate”><meta http-equiv=”X-UA-Compatible” content=”IE=edge;”><style nonce=”/T0dPD4rOQ4xZJaVqsS7ug”>@font-face{font-family:’Roboto’;font-style:italic;font-weight:400;src:url(//fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1Mu51xIIzc.ttf)format(‘truetype’);}@font-face{font-family:’Roboto’;font-style:normal;font-weight:300;src:url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fBBc9.ttf)format(‘truetype’);}@font-face{font-family:’Roboto’;font-style:normal;font-weight:400;src:url(//fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxP.ttf)format(‘truetype’);}@font-face{font-family:’Roboto’;font-style:normal;font-weight:500;src:url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fBBc9.ttf)format(‘truetype’);}@font-face{font-family:’Roboto’;font-style:normal;font-weight:700;src:url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfBBc9.ttf)format(‘truetype’);}</style><meta name=”referrer” content=”origin”><title>Folder_A3_Unicopas_capa.pdf – Google 云端硬盘</title>
The page I need help with: [log in to see the link]
-
I also see that if “Product Name” field, under “Product Data” (Simple/Downloadable Product), is blank WooCommerce includes the name “View” instead of the product name, as expected.
-
This reply was modified 2 years, 11 months ago by
marcelolz.
Oi @marcelolz! Thanks for reaching out to us!
Have you figured it out? Adding the product name should fix it!
You can find more detailed information about handling downloadable products in the link below:
https://woocommerce.com/document/digital-downloadable-product-handling/
If you’re still having issues with that, can you share a copy of your System Status report with us?
You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
My very best,
Hello, until recently, the WooCommerce was working properly. I still have problems:
1. The word “view” is entered if the file name is blank, (next to the download link, the back end).
2. A file called “view” is downloaded instead of the product file (except in the “direct download” option)This is report:
### WordPress Environment ###WordPress address (URL): https://unicopas.org.br/unicopas/biblioteca
Site address (URL): https://unicopas.org.br/unicopas/biblioteca
WC Version: 6.3.1
REST API Version: ? 6.3.1
WC Blocks Version: ? 6.9.0
Action Scheduler Version: ? 3.4.0
WC Admin Version: ? 3.2.1
Log Directory Writable: ?
WP Version: 5.9.2
WP Multisite: ?
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: pt_BR
External object cache: –### Server Environment ###
Server Info: LiteSpeed
PHP Version: 7.4.26
PHP Post Max Size: 512 MB
PHP Time Limit: 240
PHP Max Input Vars: 5000
cURL Version: 7.71.0
OpenSSL/1.1.1dSUHOSIN Installed: –
MySQL Version: 5.5.5-10.5.13-MariaDB-cll-lve
Max Upload Size: 1 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 6.3.1
WC Database Prefix: wp_3_
Tamanho total do banco de dados: 11.64MB
Tamanho dos dados do banco de dados: 9.40MB
Tamanho do índice do banco de dado: 2.24MB
wp_3_woocommerce_sessions: Dados: 0.25MB + índex: 0.02MB + mecanismo InnoDB
wp_3_woocommerce_api_keys: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_woocommerce_attribute_taxonomies: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_woocommerce_downloadable_product_permissions: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
wp_3_woocommerce_order_items: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_woocommerce_order_itemmeta: Dados: 0.05MB + índex: 0.03MB + mecanismo InnoDB
wp_3_woocommerce_tax_rates: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
wp_3_woocommerce_tax_rate_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_woocommerce_shipping_zones: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_woocommerce_shipping_zone_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_woocommerce_shipping_zone_methods: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_woocommerce_payment_tokens: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_woocommerce_payment_tokenmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_woocommerce_log: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_actionscheduler_actions: Dados: 0.13MB + índex: 0.17MB + mecanismo InnoDB
wp_3_actionscheduler_claims: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_actionscheduler_groups: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_actionscheduler_logs: Dados: 0.11MB + índex: 0.11MB + mecanismo InnoDB
wp_3_alm: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_cli_cookie_scan: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_cli_cookie_scan_categories: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_cli_cookie_scan_cookies: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_cli_cookie_scan_url: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_cli_scripts: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_commentmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_comments: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB
wp_3_links: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_options: Dados: 2.30MB + índex: 0.08MB + mecanismo InnoDB
wp_3_podsrel: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
wp_3_postmeta: Dados: 0.52MB + índex: 0.28MB + mecanismo InnoDB
wp_3_posts: Dados: 1.52MB + índex: 0.13MB + mecanismo InnoDB
wp_3_termmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_terms: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_term_relationships: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_term_taxonomy: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_admin_notes: Dados: 0.05MB + índex: 0.00MB + mecanismo InnoDB
wp_3_wc_admin_note_actions: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_wc_category_lookup: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_wc_customer_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_download_log: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_order_coupon_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_order_product_lookup: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
wp_3_wc_order_stats: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
wp_3_wc_order_tax_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_product_attributes_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_3_wc_product_meta_lookup: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB
wp_3_wc_rate_limits: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_wc_reserved_stock: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_3_wc_tax_rate_classes: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_wc_webhooks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_3_yikes_easy_mc_forms: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
wp_blogmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_blogs: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
wp_registration_log: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_signups: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
wp_site: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
wp_sitemeta: Dados: 3.44MB + índex: 0.03MB + mecanismo InnoDB
wp_usermeta: Dados: 0.05MB + índex: 0.03MB + mecanismo InnoDB
wp_users: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB### Post Type Counts ###
_pods_field: 2
_pods_group: 1
_pods_pod: 1
_pods_template: 2
attachment: 114
cookielawinfo: 5
custom_css: 2
customize_changeset: 84
flamingo_contact: 1
gs_bookshowcase: 4
nav_menu_item: 17
page: 9
post: 5
product: 58
publicao: 1
revision: 182
shop_order: 23
wcpa_pt_forms: 1
wp_global_styles: 6
wp_navigation: 1### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (26) ###
Loco Translate: por Tim Whitlock – 2.6.1
PostX – Gutenberg Post Grid Blocks: por wpxpo – 2.4.26
Add to Cart Text Changer: por Saiful Islam – 1.8
Checkout Field Editor for WooCommerce: por ThemeHigh – 1.5.3
Checkout Fields Manager for WooCommerce: por QuadLayers – 5.5.5
Direct Checkout for WooCommerce: por QuadLayers – 2.6.0
WooCommerce: por Automattic – 6.3.1
What The File: por Never5 – 1.5.4
Persistent block editor settings: por Clorith – 1.3.0
Child Theme Configurator: por Lilaea Media – 2.5.9
Embed Plus Plugin for YouTube: por Embed Plus for YouTube Team – 14.1
Hello Dolly: por Matt Mullenweg – 1.7.2
Importador do WordPress: por wordpressdotorg – 0.7
Theme Editor: por mndpsingh287 – 2.7
Astra Bulk Edit: por Brainstorm Force – 1.2.6
CoBlocks: por GoDaddy – 2.22.8
UberMenu 3 – The Ultimate WordPress Mega Menu: por Chris Mavricos
SevenSpark – 3.7.3Easy Image Sizes: por Stephen B – 1.3
Ajax Load More: por Darren Cooney – 5.5.2
Advanced Accordion Block: por Zakaria Binsaifullah – 3.0.0
Co-Authors Plus: por Mohammad Jangda
Daniel Bachhuber
Automattic – 3.4.92Easy Forms for Mailchimp: por YIKES
Inc. – 6.8.6GDPR Cookie Consent: por WebToffee – 2.1.1
Remove admin menus by roles: por InfoD74 – 1.33
User Role Editor: por Vladimir Garagulya – 4.61.2
Ajax Search Pro: por Ernest Marcinko – 4.22### Inactive Plugins (31) ###
Better Admin Bar: por David Vongries – 4.0.1
Better Font Awesome: por Mickey Kay – 2.0.1
Bulk Move: por Sudar – 1.3.0
Catch Infinite Scroll: por Catch Plugins – 2.0.1
Contact Form 7: por Takayuki Miyoshi – 5.5.6
Custom Content Shortcode: por Eliot Akira – 4.0.2
Custom Related Posts: por Bootstrapped Ventures – 1.6.6
Export media with selected content: por Joost de Keijzer – 2.1.4
Favicon by RealFaviconGenerator: por Philippe Bernard – 1.3.23
Flamingo: por Takayuki Miyoshi – 2.2.3
FloatAny: por MaxPressy – 1.0.0
Google Listings and Ads: por WooCommerce – 1.11.1
Jetpack: por Automattic – 10.7
Limit Login Attempts Reloaded: por Limit Login Attempts Reloaded – 2.23.2
LiteSpeed Cache: por LiteSpeed Technologies – 4.5.0.1
MaxSlider: por The CSSIgniter Team – 1.2.2
Nested Pages: por Kyle Phillips – 3.1.20
Network Posts Ext: por John Cardell
Andrey Islentiev – 7.5.9Posts filter multiselect: por tmatsuur – 2.1.1
PublishPress Authors: por PublishPress – 3.16.0
Qode Essential Addons: por Qode Interactive – 1.4.5
Search & Filter: por Code Amp – 1.2.14
Shortcode Widget: por Gagan Deep Singh – 1.5.3
Sidebar Shortcode: por ThinkerWebDesign – 1.0.0
Sticky Menu (or Anything!) on Scroll: por WebFactory Ltd – 2.31
Tabs Responsive: por wpshopmart – 2.2.6
Ultimate Addons for Gutenberg: por Brainstorm Force – 1.25.4
Ultimate Category Excluder: por Marios Alexandrou – 1.5
User Profile Picture: por Cozmoslabs – 2.6.0
WooCommerce Custom Product Addons (Free): por Acowebs – 2.6.1
WordPress Books Gallery: por HM Plugin – 3.8### Settings ###
API Enabled: –
Force SSL: –
Currency: BRL (R$)
Currency Position: left_space
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 ###
Base da loja: #35931 – /acervo/
Sacola: #236 – /carrinho/
Finaliza??o download: #238 – /saida/
Minha conta: #240 – /conta/
Termos e condi??es: #691 – /cookie-policy/### Theme ###
Name: Institucional de Unicopas
Version: 3.7.5.1639347634
Author URL:
Child Theme: ?
Parent Theme Name: Astra
Parent Theme Version: 3.7.9
Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
WooCommerce Support: ?### Templates ###
Overrides: –
### Action Scheduler ###
Cancelado: 1
Oldest: 2022-03-02 20:36:45 -0300
Newest: 2022-03-02 20:36:45 -0300Concluído: 397
Oldest: 2022-03-02 20:45:24 -0300
Newest: 2022-03-24 18:07:46 -0300### Status report information ###
Generated at: 2022-03-24 20:05:46 -03:00
`-
This reply was modified 2 years, 11 months ago by
marcelolz.
Hello,
Thanks for sending the system report, I’d need to ask for one more piece of information.
Please share a copy of any fatal error log found under
WooCommerce > System Status > Logs
(if any).Thank you for your cooperation.
Good night! In WooCommerce > System Status > Logs is no record.
Gracias!
Hi there,
The word “view” is entered if the file name is blank
I can’t reproduce what you describe on my test site which is running with only WooCommerce core enabled and the default Storefront theme. Have you already performed a conflict test?
A file called “view” is downloaded instead of the product file
This doesn’t seem to be the original downloadable product but a file that an online “CheckFileType” service recognizes as an HTML file.
Can you please share the following?
1) Your Downloadable products settings in WooCommerce > Settings > Products > Downloadable products.
2) Downloadable product permissions in WooCommerce > Orders > (select order) > Downloadable product permissions – https://i.imgur.com/HQNy5Lt.png.
I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread. It works with Chrome, Firefox, Safari, and Edge browsers.
We look forward to your response.
Good night! I appreciate your attention. These are the prints
Downloadable product permission https://snipboard.io/cspWhu.jpg
Downloadable products. https://snipboard.io/GZNlC9.jpg
Hello,
Thanks for sharing the screenshots! All looks fine there, the download should be working.
Notice that the order page mentions “view” as the file ordered for download, instead of something like “example.pdf”.
Can you please check if the file for download still shows up in the “Edit product” page? See the image below as reference:
Link to image: https://snipboard.io/N5pDVl.jpgI will reiterate Mirko’s recommendation that a conflict test should be performed for further troubleshooting.
Let us know how it goes.
Good night!
1. The word view appears by itself when this field is blank, rather than the file name, as would be the default.
2. The file is still present, you can download it if the direct download option is selected in the downloadable product settings. As I had to do now, so that site does not become useless.
I appreciate the support.
Hey @marcelolz,
1. The word view appears by itself when this field is blank, rather than the file name, as would be the default.
This is strange! Does it also happen when you have all plugins disabled (except WooCommerce) and your theme changed from Astra to Storefront (https://www.woocommerce.com/storefront/)?
At the same time, can you also clear the cache from your LiteSpeed Cache plugin? Kindly test this setup out and report how it goes.
Best regards.
-
This reply was modified 2 years, 11 months ago by
- The topic ‘Error downloading digital product’ is closed to new replies.