rmowles Posted September 8, 2003 Posted September 8, 2003 Hi all, I'm installing easypopulate 2.61 on MS2 latest CVS. I've come across two problems: 1) I can generate the .txt file in the temp directory just fine. But when I try to stream it to save it on my machine instead, I get an error: Internet Explorer cannot download p?download=stream&dltype=full from ... (secure site name replaced with ...) I noticed that I get this error when I'm logged into admin using https but not when I log in using http. I'm wondering if it has to do with the fact that my secure site is located at secure. instead of www. 2) I noticed that easypopulate seems to ignore any catalog items in the top level in the catalog (those that aren't in categories or subcategories). I normally would have all my items in categories but I was just testing things so I had only created one item and it wasn't in a category. If anyone has any thoughts on these issues I'd love to hear them! Cheers Robert Quote Aartech Canada Home Automation, CCTV Camera & DVR, Security Store
TomThumb Posted November 11, 2003 Posted November 11, 2003 To allow download of the export files in easypopulate when using SSL / HTTPS with Internet Exploder. Change http header setting for pragma in easypopulate.php // now either stream it to them or put it in the temp directory if ($download == 'stream'){ //******************************* // STREAM FILE //******************************* header("Content-type: application/vnd.ms-excel"); header("Content-disposition: attachment; filename=$EXPORT_TIME.txt"); // header("Pragma: no-cache"); comment out or delete this line header("Pragma: "); // add this line header("Expires: 0"); echo $filestring; die(); } else { //******************************* // PUT FILE IN TEMP DIR //******************************* Quote while (!succeed) {try()}; GMT -6:00
Genius Posted February 24, 2004 Posted February 24, 2004 I have tried your suggestion but i seem to get an error 500: Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. any ideas Quote
csokolov Posted March 4, 2004 Posted March 4, 2004 TomThumb's fix worked great for me. Previously, Safari and IE on a Mac OS X machine would download the database just fine, but IE for Windows would not. Now, it seems that all browsers are happy. I wonder if someone can integrate this into the contribution to prevent somebody's frustration in the future? Quote
CentralMass Posted March 4, 2004 Posted March 4, 2004 I am having trouble getting the easypopulate to work. I have oscommerce 2.2 MS2, which version of easypopulate should I be installing? Whatever I have tried hasn't worked....so I am starting over again. Quote Need Hosting? Just ask!
theide Posted January 30, 2006 Posted January 30, 2006 I was having the error downloading from Admin until I ran across this thread and implemented your fix. THANKS! To allow download of the export files in easypopulate when using SSL / HTTPS with Internet Exploder. Change http header setting for pragma in easypopulate.php // now either stream it to them or put it in the temp directory if ($download == 'stream'){ //******************************* // STREAM FILE //******************************* header("Content-type: application/vnd.ms-excel"); header("Content-disposition: attachment; filename=$EXPORT_TIME.txt"); // ?header("Pragma: no-cache"); ?comment out or delete this line header("Pragma: "); ?// add this line header("Expires: 0"); echo $filestring; die(); } else { //******************************* // PUT FILE IN TEMP DIR //******************************* Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.