mdarcangelo Posted September 1, 2014 Share Posted September 1, 2014 Hi, I got a huge problem in letting customers downloading an mp3 but it seems the problem tested on images too. Basically when the customer receive a download link and try to save it it does not get a "save as" to save it were they want to BUT it does download the file opening a browser page make it impossible to save it, I did test the virtual product using a jpg image and it gives me the same problem.. PLEASE HELP, is prestashop able to accomplish such task? why is the browser opening and no save dialog appear? Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 anyone please I need assistance on this.. Link to comment Share on other sites More sharing options...
vekia Posted September 2, 2014 Share Posted September 2, 2014 case like that needs deeper inspecition please share link to your shop Link to comment Share on other sites More sharing options...
bellini13 Posted September 2, 2014 Share Posted September 2, 2014 what version of Prestashop? Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 case like that needs deeper inspecition please share link to your shop need admin? http://www.yogaevolution3d.it/shop/ Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 need admin? http://www.yogaevolution3d.it/shop/ @bellini13 Prestashop 1.6.0.9 Link to comment Share on other sites More sharing options...
bellini13 Posted September 2, 2014 Share Posted September 2, 2014 From a clean PS v1.6.0.9, I created a new Virtual Product and attached an MP3 file to it. I then placed an order for this product, and I was able to download and open the file properly using Chrome and Firefox. So there is some variable or configuration difference on your store. Could be that you altered some core code or installed a module that created an override. Perhaps even the theme you are using is causing an issue. Or perhaps even your hosting environment. Perhaps describe what changes you have made to your store that would be different from a default clean install, that might give us a hint. Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 From a clean PS v1.6.0.9, I created a new Virtual Product and attached an MP3 file to it. I then placed an order for this product, and I was able to download and open the file properly using Chrome and Firefox. So there is some variable or configuration difference on your store. Could be that you altered some core code or installed a module that created an override. Perhaps even the theme you are using is causing an issue. Or perhaps even your hosting environment. Perhaps describe what changes you have made to your store that would be different from a default clean install, that might give us a hint. I'll investigate quickly and report, so far I only installed a full background slider and sliders everywhere.. theme is the default one i'll try to unistall them and report Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 unfortunately I did unistall the only 2 modules from me installed ( Sliders Everywhere and FullScreen Slideshow ) and did try to click on the download link both from admin ( price set to 0 ) and from the email received still same problem...what eventually could be the server env causing this? I'm stuck now and need to deliver..could not expect that I don't think that change some CSS color could influence such behaviour ) Link to comment Share on other sites More sharing options...
bellini13 Posted September 2, 2014 Share Posted September 2, 2014 could it be a language issue? what languages are enabled on the store? I agree, the issue is not likely caused by those 2 modules, or CSS changes you have made. Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 2, 2014 Author Share Posted September 2, 2014 could it be a language issue? what languages are enabled on the store? I agree, the issue is not likely caused by those 2 modules, or CSS changes you have made. can't say, the only language installed is italian and no other languages installed, i thought to buy a mp3 download to buy module BUT splashing some money and get the same problem will leave me in a very bad light..can't get it and it is the only bit left..and the most important Link to comment Share on other sites More sharing options...
bellini13 Posted September 3, 2014 Share Posted September 3, 2014 i used english language during my test. do you want to enable english on your store and try again to confirm? Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 3, 2014 Author Share Posted September 3, 2014 (edited) i used english language during my test. do you want to enable english on your store and try again to confirm? Right, I think you got it right, I did disable italian and enable english language and it owrked right BUT I can't leave mysite in English, I also tried to enable both leaving my own langage on default but it did back troubling me with the same...were do I look? how could it be a lnguage problem I wonder... Edited September 3, 2014 by mdarcangelo (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted September 3, 2014 Share Posted September 3, 2014 No idea, but now that you know the issue, you can open a bug tracking report so that Prestashop can fix the issue. If I had to guess, I would look at the filename to ensure it does not have any special characters in it. Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 3, 2014 Author Share Posted September 3, 2014 (edited) No idea, but now that you know the issue, you can open a bug tracking report so that Prestashop can fix the issue. If I had to guess, I would look at the filename to ensure it does not have any special characters in it. thank you, very helpful, I hope to get it fixed asap as I'm 48h to deadline p.s.did check that and had no special character apart from underscore Edited September 3, 2014 by mdarcangelo (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted September 3, 2014 Share Posted September 3, 2014 unfortunately PS will not address this issue for you within 48 hours, never mind months... unless someone else from the community can step in and assist you, I believe you will need to dig deeper into the issue 1 Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 3, 2014 Author Share Posted September 3, 2014 unfortunately PS will not address this issue for you within 48 hours, never mind months... unless someone else from the community can step in and assist you, I believe you will need to dig deeper into the issue right...well I hope someone from the admin or anyone able to trying understanding the reason why would be great..but I won't pest the forum with it..thank you for your assistance..I'm not in the knowledge to try find this bug..sadly Link to comment Share on other sites More sharing options...
Gregory Roussac Posted September 8, 2014 Share Posted September 8, 2014 Hi,What is your text editor ?You probably edited /www/shop/themes/default-bootstrap/lang/it.php and uploaded it with BOM bytes which cause headers to be sent to the browser.I edited this file and withdrawn BOM bytes and the file is ok. Please avoid modifying files directly with your text editor or change of text editor. Notepad++ is handling BOM Bytes worrectly on Windows. I am closing your issue so.Regards Link to comment Share on other sites More sharing options...
bellini13 Posted September 8, 2014 Share Posted September 8, 2014 Hi Gregory, your reply confused me. Did the OP open a bug report that you are replying to? Were you able to determine that the OP did something to cause this issue and that it is now resolved? Link to comment Share on other sites More sharing options...
Gregory Roussac Posted September 8, 2014 Share Posted September 8, 2014 (edited) Hi, I was replying to Marco from http://forge.prestashop.com/browse/PSCFV-12513 I guess it is mdarcangelo Yes an italian translation file was manually modified somehow and first BOM bytes in it were making headers sent to the browser. That is why it worked with english and not italian. Do not forget to enable mode_dev to true in /config/defines.inc.php when you encounter an error. In this case I just enabled mode_dev on his FTP and this gave me a PHP error telling that headers were already sent in /www/shop/themes/default-bootstrap/lang/it.php at line 1. Regards Edited September 8, 2014 by Gregory Roussac (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted September 8, 2014 Share Posted September 8, 2014 ah, thanks for explaining, i hadn't seen a bug report opened. Thanks for resolving the issue for the OP, nice find! Link to comment Share on other sites More sharing options...
mdarcangelo Posted September 10, 2014 Author Share Posted September 10, 2014 Hi, I was replying to Marco from http://forge.prestashop.com/browse/PSCFV-12513 I guess it is mdarcangelo Yes an italian translation file was manually modified somehow and first BOM bytes in it were making headers sent to the browser. That is why it worked with english and not italian. Do not forget to enable mode_dev to true in /config/defines.inc.php when you encounter an error. In this case I just enabled mode_dev on his FTP and this gave me a PHP error telling that headers were already sent in /www/shop/themes/default-bootstrap/lang/it.php at line 1. Regards Thank you once again... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now