You are here:  » Registering a test feed


Registering a test feed

Submitted by itzvince on Sat, 2015-07-04 15:04 in

This is probably a really dumb question.

I am just trying to test a csv feed that I have created and the auto-detection works fine. However, it doesn't recognize the line breaks in my csv file and so some of the fields have combined the first item of the next line with the last item of the previous line. I'm probably doing something very wrong but I would appreciate any help! Thank you!

Submitted by support on Sat, 2015-07-04 15:39

Hi itzvince and welcome to the forum!

The first thing to check is whether the auto-detection missed "quoted text" which can happen occasionally in feeds where quoted text is only used where necessary, so if you first go to Feed Registration Step 1, instead select the actual format of your test feed from the drown-down menu and then proceed to Step 2 and check whether the sample data is displayed correctly.

That should be all it is, but less likely perhaps is the text editor used to create your feed has used line-break consisting of only carriage-return characters, in which case, if you check the Settings / Options in your text editor used to create the test feed and look for a "Newline" options, either MS-DOS or UNIX will be fine.

If neither of the above appear to be the case let me know and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by itzvince on Sat, 2015-07-04 16:00

I think the latter was the problem because I generated the CSV using Excel 2008 for Mac and apparently it handles line-breaks incorrectly. I've created the test csv using a text editor and it's now fine. However, I'm getting a different problem which is when I click on "Register and Trial Import", I get a 404 error and nothing happens. Thank you for your quick response!

Submitted by itzvince on Sat, 2015-07-04 16:03

I should probably add that the url goes to ... pt/admin/admin/ which is probably causing the problem but I don't know how to fix this with my .htacess because it is pretty much the default wordpress one.

Submitted by support on Sat, 2015-07-04 16:09

Hi,

That sounds like $config_baseHREF is empty at line 6 in pt/config.php. For a Price Tapestry installation for use with PriceTapestry.org for WordPress, installed in /pt/ make sure it is configured as follows:

  $config_baseHREF = "/pt/";

That should be all it is - no need for a /pt/.htaccess in this setup, so also ensure so that you can test successfully within the /pt/ installation that $config_useRewrite is set to FALSE at line 8 in pt/config.php.

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by itzvince on Sat, 2015-07-04 16:11

I'm also using wordpress as the front-end and have pretty much followed the instructions although I was a little bit confused with the settings for $config_useRelated, $config_useTracking, $config_useInteraction, and $config_useFullText and I changed those all to TRUE as in the instructions. That's pretty much where I am at now.

Submitted by itzvince on Sat, 2015-07-04 16:14

Both line 6 and line 8 were configured as you mention already, what else could it be?

Submitted by itzvince on Sat, 2015-07-04 16:14

do I need to delete the /pt/.htacess.txt or do I just keep it as a txt?

Submitted by support on Sat, 2015-07-04 16:20

Hi,

You can leave htaccess.txt as it is, since there's no need for rewrite in /pt/ as it's only used for feed administration.

For some reason the script isn't picking up the value of $config_baseHREF and is therefore appending "admin/" to the currently URL - please could you email me your modified pt/config.php and I'll check it out for you right away for you...

Thanks!
David.
--
PriceTapestry.com

Submitted by itzvince on Sat, 2015-07-04 16:24

Thank you for your help David, I've just sent it.

Submitted by itzvince on Sat, 2015-07-04 16:49

Just wanted to add here for other beginners that the problem was incorrectly formatted quotes!

David: The register and import is now taking me to http://localhost/pt/admin/ and it seems to be ignoring my wordpress installation..

What's the next step?

Submitted by support on Sat, 2015-07-04 16:55

Thanks for the posting the update!

/pt/ is effectively standalone from WordPress, once you have at least one feed set-up you can proceed with the plugin configuration / setup from /wp-admin/ > Settings > PriceTapestry.org - follow the steps from http://www.pricetapestry.org/node/20 and if you're not sure at any step let me know where you're up to and I'll point you in the right direction...

Cheers,
David.
--
PriceTapestry.com

Submitted by itzvince on Sat, 2015-07-04 16:59

Hi David,

Sorry I think I should clarify that I meant it was missing out my url for my test domain so it should be /localhost/url/pt/ but now it's just /localhost/pt/

Submitted by support on Sat, 2015-07-04 17:08

Hi,

"localhost" wouldn't normally form part of the $config_baseHREF value although it _can_ be a fully qualified URL - so it could begin "http://localhost....".

It's not ideal trying to develop any kind of website (Price Tapestry, WordPress or anything) on localhost in a sub-directory because you'll find yourself having to change all sorts of values when your site goes online and everything becomes top level instead of being in a sub-directory! For example, if you made a sub-directory to build your site on localhost so you're using:

http://localhost/www.example.com/

...when the site goes live, it would become:

http://www.example.com/

...so everything that was expecting "www.example.com" in the relative URLs would have to be changed - not impossible, just not particularly easy way to develop. Ideally, you would develop locally as

http://localhost/

..and then the site goes online as

http://www.example.com/

Anyway it sounds like you're up and running now but let me know if you're still not sure at all of course...

Cheers,
David.
--
PriceTapestry.com

Submitted by itzvince on Sat, 2015-07-04 19:27

Hi David,

Thanks for all the help, yes I have it successfully up and running now!