You are here:  » Slow Import Progress Pages Not Appearing


Slow Import Progress Pages Not Appearing

Submitted by bat on Tue, 2015-09-08 12:23 in

Hi David,
A weird issue I've come across today. Whenever I click Slow Import and then import a feed on {link saved{, it doesn't take me to the slow import progress screen where it shows the products being imported e.g. 300...600...900, etc.

Instead, the Slow Import page looks like it's loading a new page but then doesn't and still shows the Slow Import Registered CSV Feeds page as though I haven't even clicked a merchant's import. However, if I actually check the front end of the site and the merchant I'm meant to be Slow Importing, it's actually importing the products. Every refresh I do shows more products have been added.

So in conclusion, it's working but I can't always tell it's working because the Slow Import progress screen doesn't appear. One of my merchant CSV files has over 5000 products yet each time I click the Slow Import and it does the import in the background, it only imports 295 products. Without being able to see the Slow Import progress page, I can't see if it's the PT install which is the problem or the feed, but it would be nice to see the progress page regardless. Any ideas what it could be? I checked a different PT installation on a different domain and that's running fine.

Only things I've changed today/yesterday are index.php, html/footer.php, includes/merchantlinks.php

Thanks

Submitted by support on Tue, 2015-09-08 13:11

Hello bat,

The default for $config_slowImportSleep is actually 0 in recent distributions (making "Slow" import not actually any slower than a standard import, but of course enables importing via the web interface when PHP is limited in max_execution_time) and it is possible that depending on browser / gateway / proxy behaviour because of the zero delay it's never actually getting to the point of rendering the progress page. Try using a setting of 1 (second) by changing line 39 in config.advanced.php as follows;

  $config_slowImportSleep = 1;

...that should be all it is...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by bat on Tue, 2015-09-08 13:41

Hi David,
It was already set to 2. I've changed it to 1 but still the same issue.
It seems for a few CSV feeds its sticking to importing the first 300 products and not going further. An XML feed with 800+ products it's fully importing.
It's still not showing the Slow Import progress screen either.

I might have accidentally deleted something as the other PT installations are fine. So I suppose it's just finding the culprit.

Submitted by support on Tue, 2015-09-08 14:03

Hello bat,

That's strange - if not already 15/09A extract and use includes/MagicParser.php from the 15/09A (Beta) distribution which has the latest support for slow import of both XML and CSV, if still no joy it may be something feed related, in which case if you could let me know the URL of the installation and the filename of an example feed that appears to get stuck after the first block, I'll fetch the feed from your /feeds/ folder to my test server and check it out further for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by bat on Tue, 2015-09-08 14:11

I've used the latest MagicParser, still no joy.
{link saved}

Submitted by support on Tue, 2015-09-08 14:34

Thanks bat, i've grabbed the feeds, I'll check them out on my test server and follow up by email with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by bat on Wed, 2015-09-09 08:57

Hi David,
I've tried slow importing just now and it's working. It's fixed itself on its own. Strange huh?
Sorry to mess you about. Seems like my installation has a mind of its own.

Submitted by support on Wed, 2015-09-09 11:31

No worries!

The repeated page loading by meta refresh could potentially be affected by a proxy or gateway server somewhere along the connection path (most likely at the edge of either your ISP or hosting provider's network). If it happens again and you'd like me to investigate further drop me an email as soon as you notice it and I'll check it out for you...

Cheers,
David.
--
PriceTapestry.com