You are here:  » How do I import feeds into PT database?


How do I import feeds into PT database?

Submitted by Jannii on Wed, 2018-11-14 14:35 in

Hi,

I've installed PT on an existing WordPress site (which is in the root directory of my domain) by creating a new pt folder under the root directory. Is this the correct place to put it because after installing the PTO plugin I can no longer access the PT backend to do the feed imports. When I try to access domain/pt/admin/index.php it redirects to the WordPress site with an Oops that page doesn't exist message. I have been able to import some products as WordPress posts from the PT database (I had imported one feed when testing the PT installation before I installed and activated the plugin) but can't figure out why I can no longer access the PT backend.

Should the site URL and Home URL settings be the same or different as I'm completely flummoxed!

Any help would be gratefully accepted.

Submitted by support on Thu, 2018-11-15 08:09

Hello Jannii,

Yes, that's the correct place to install Price Tapestry, however I'm wondering if you had moved the installation there and were previously using rewrite, so you have a /pt/.htaccess file, you would need to make sure that it is using the correct RewriteBase, in other words, /pt/.htaccess line 5 should be:

RewriteBase /pt/

This would correspond with the $config_baseHREF setting in /pt/config.php which should be;

  $config_baseHREF = "/pt/";

Of course if you're not using rewrite (so $config_useRewrite is set to FALSE in /pt/config.advanced.php) then as long as /pt/.htaccess does not exist, if you still cannot access /pt/admin/ that would indicate that the top level WordPress .htaccess is not doing the usual file exists check before directing all requests into the WordPress engine. To do this your WordPress .htaccess should have the following lines:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

If they don't exist, make a backup copy just incase and then add the lines immediately before the main RewriteRule to WordPress' index.php...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by Jannii on Mon, 2018-11-26 20:41

I originally had my WP installation in a sub-directory of the root /blog but once I found out I could integrate my PT installation with it I left my PT installation where it was in the /pt/ directory and moved the WP installation to the root. I've never had the Rewrite option set to true in either config file so I'll check the .htaccess files in case I've managed to screw those up somehow. Thanks for the help.

Submitted by Jannii on Thu, 2018-11-29 14:43

Hi again David,

I managed to sort the config and htaccess files out so I can access the PT home page and Admin home in the PT folder again but now when I enter the password that I've set in config.advanced.php it recognises it as there's no error message (checked by entering a wrong password and get a red password error message) but it just returns to the login page so I still can't import any feeds! Do you have any idea what could be causing this please?

Submitted by support on Thu, 2018-11-29 14:54

Hi Jannii,

I know you've been using the script for several years now - can you confirm the distribution that you have installed in /pt/?

Thanks,
David.
--
PriceTapestry.com