You are here:  » new PT installation or not?

Support Forum



new PT installation or not?

Submitted by Paul1107 on Thu, 2009-09-10 20:58 in

Hi David,

Just after your opinion regarding the quickest way to populate a site with dynamic content

I have an PT installation specific to one of the niches I work in, this currently feeds 2 sites. I have been building a further site in the same niche and would like to start populating it with products via PT in the same way I do the other.

However my problem is that as I've mapped quite a few categories which are specific to the two other sites, and in adaping it for the new site I fear I may have to undo all those mapped categories to access those products for the new site, and this would also mean changing the sitemap.php quite a bit.

Therefore my question is, would it be just as easy to set up a new installation specifically for this site, and if so, can I just copy the existing installation in a different directory by following the instructions found here node/2965, obviously chaning the config.php appropriately.

I hope that makes sense?

Thanks Paul

Submitted by support on Fri, 2009-09-11 08:19

Hi Paul,

That would work fine - and would save you having to re-register all the feeds of course. Once up and running, you can then remove / modify the category mapping as required for the new site...

Cheers,
David.

Submitted by Paul1107 on Tue, 2009-09-15 20:19

Hi David,

This is all set up now, and I thought it was going along fine, I ran a fetch script manually to import the feeds in one go, but while all the feeds update in the modified column, only 2 out of around 25 feeds imported.

I've checked the script and the nothing appears to be different between the path syntax of the feeds that did import against those that did not, any ideas at all?

Regards

paul

Submitted by support on Wed, 2009-09-16 06:54

Hi Paul,

Check that the feeds that did not import look fine on disk - in other words check that they are not zero bytes for instance, in case there was a transient error on the remote server generating the feeds.

If they look OK, does an example of one of the feeds that did not import otherwise import correctly if you try to import from /admin/ of that installation?

Is this the same server / server instance that has imported lots of feeds in a single process before - in other words it shouldn't be a timeout issue for example?

Cheers,
David.

Submitted by Paul1107 on Wed, 2009-09-16 12:27

Hi David,

I've checked that the feeds were not empty, and the feeds folder shows them to be OK ie they all correspond to the sizes they should be. I have also imported one feed through the manual process which also worked OK. I am hosting a further two PT directories on the same server, and all are working fine, so Shouldn't be a problem with this one is no different in terms of set up.

Having looked at the setup.php though there is a small issue on line one, wwould that be the culprit?

WARNING: $config_useRewrite is TRUE but .htaccess not found!

Checking database connection...PASS

Checking database selection...PASS

Checking database tables...PASS

thanks Paul

Setup Completed!

Using PHP Version 4.4.9

Using MySQL Version 5.0.67-1~ui40+2

Submitted by support on Wed, 2009-09-16 12:52

Hi Paul,

The warning on setup.php shouldn't have any impact on importing; but should be fixed anyway otherwise product / merchant / category links won't work etc.! When $config_useRewrite is set to true (to enable search engine friendly URLs); the installation directory also needs to contain a .htaccess file that you create from a copy of htaccess.txt in the distribution. When running in a sub-directory; the file needs to be edited first to change:

RewriteBase /

to...

RewriteBase /folder/

(where folder is the name of the sub-directory into which the script is running)

With regards tot he import; if the feeds are fine and it is working manually; it might have been a transient server error that caused the process to terminate. I would let it run for another night and see if all imports succeed on the next run...

Cheers,
David.

Submitted by Paul1107 on Wed, 2009-09-16 13:28

Hi David,

Sorry to pre empt you but I originally had the problem on Saturday and have left it running for the past number of days, and only the 2 same feeds import?

Sorry I know you're in the middle of something else for me so don't rush...

Cheers

Submitted by support on Thu, 2009-09-17 08:31

Hi Paul,

Could you email me the specific fetch script that is failing and the URL of the site so that I can access the associated /feeds/ and /admin/ folders and I'll check it out for you...

Cheers,
David.