Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easypopulate 2.61 MS2 problems?


rmowles

Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...

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
//*******************************

while (!succeed) {try()};

 

GMT -6:00

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

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?

Link to comment
Share on other sites

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.

Need Hosting? Just ask!

Link to comment
Share on other sites

  • 1 year later...

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
//*******************************

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...