You are here:  » Randomrss links not working

Support Forum



Randomrss links not working

Submitted by marco@flapper on Wed, 2011-01-26 15:50 in

Hi,
I made a RSSrandom.php based on http://www.pricetapestry.com/node/3194

But the links are not working, probably because of the changes made to move PT one folder up (http://www.pricetapestry.com/node/3773).

You can see the rss feed here:
{link saved}

And will notice that the links in the feed have two times the folder where pricetapestry is installed in e.g.:

{link saved}

Submitted by support on Wed, 2011-01-26 16:02

Hi Marco,

All you need to do is override $config_baseHREF after common.php has been included, so where you have this code at line 3:

  require("includes/common.php");

...and REPLACE that with:

  require("includes/common.php");
  $config_baseHREF = "/";

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2011-01-26 16:52

The links work now, but I noticed something very strange.

If I use this RSS feed in Wordpress (in a RSS widget) it displays Wordpress posts instead of the Pricetapestry posts. I have the same problem if I use the normal rss.php but if I use a RSSfeed from another Pricetapestry website it displays the Pricetapestry products...

You can see it in the footer (at the left):

{link saved}

Submitted by support on Thu, 2011-01-27 09:53

Hi Marco,

Check your widget configuration - it looks as if it is just pointing at a Wordpress generated RSS feed and not the one from your Price Tapestry site - that should be all it is. I'm not familiar with that widget but if you're not sure, let me know the full URL of the RSS feed you are expecting to be displayed in that poisition; and also if you know what it is the URL of your Wordpress site's RSS feed for comparison.

Regarding your other question about your football XML feed - drop me an email and I'll see if it's suitable for use with Magic Parser for you. No need to buy another license as you already have the script as part of Price Tapestry..

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Thu, 2011-01-27 11:30

I know it is strange. I checked it by adding a rss feed to another Pricetapestry website and also another Wordpress RSS and then it works normal.

But if I add:
{link saved}

it doesn't show the normal Pricetapestry products but seems to go to some random Wordpress posts. The articles aren't even the same as the normal Wordpress RSS feed:
{link saved}

Submitted by support on Thu, 2011-01-27 11:48

Hi Marco,

I wonder if it is caching your home page? Try creating a test post, promoting it to the front page (this should make sure that the cache is refreshed), then deleting the post - that might do the trick if it is a caching issue...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Thu, 2011-01-27 12:24

I tried it but it doesn't make a difference.

Submitted by support on Thu, 2011-01-27 13:55

Hi Marco,

I'll try and work out what's going on for you - could you email me

- The page URL where the RSS feed is not returning what you expect
- The .htaccess for that page (i.e. your top level .htaccess)
- The RSSrandom.php URL
- The .htaccess for that page (i.e. your Price Tapestry installation)

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2011-01-31 08:46

Hi, just checked if it would show on another Wordpress installation but there it also doesn't show the Pricetapestry content.
Any ideas on this yet?

Submitted by support on Mon, 2011-01-31 09:01

Hi Marco,

Is that installation on a different URL completely to the RSS feed?

Can you try an experiment. It just occurred to me that the widget may be falling back to displaying posts (rather than nothing) if for some reason it isn't happy with the RSS content. Could you try adding a totally invalid URL as RSS feed URL - for example:

http://www.example.com/rss.xml

If that displays the same content, let me know and I'll investigate the random RSS feed format further...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2011-01-31 13:28

hi,
The totally invalid url displays the same content.

Submitted by support on Mon, 2011-01-31 13:43

Hi Marco,

I checked your feed in the W3C RSS validator and it is fine.

Could you try another RSS feed in the widget and check that it is working OK then? Try the BBC News headlines feed for example:

http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2011-01-31 13:54

The bcc items are shown correctly.

Submitted by support on Mon, 2011-01-31 13:56

Thanks, Marco.

I'll compare your feed to the BBC feed and see if I can spot any subtle differences.

Cheers,
David.
--
PriceTapestry.com

Submitted by support on Mon, 2011-01-31 14:57

Hi Marco,

I just followed up by email...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2011-01-31 15:12

You are right. I placed the test news.xml on the server and in the rss widget and the news items aren't showing too.

Submitted by support on Mon, 2011-01-31 15:28

Hello Marco,

That has basically got to the bottom of the problem then, but it could be one of 2 things:

1) Your server cannot resolve a domain name that points to itself

~or more likely~

2) Your server cannot connect to itself via HTTP because of routing / firewall issues.

At this point, I would recommend that you contact your host for assistance. Here is what I would ask them:

"I am running a script on my website that is trying to display the contents of an RSS feed that come from a feed in a subdirectory of the same website. I can only enter the address of the RSS feed as an Internet URL, and it would appear that my server cannot connect to itself via HTTP in order to do this. Is there any reason why PHP on my hosting account should not be able to make an HTTP connection to itslef? I am able to display to contents of an RSS feed from any other website successfuly."

Hopefully, your host should be able to resolve the routing / firewall problem based on that information.

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Tue, 2011-02-01 08:24

Hi,
I guess it was option 1. I moved the domain from one ip to another in DNS, but the server account was still on the old ip. I removed the old account and made an addon domain on the same account as the new ip. And now the items are shown.

Thank you very much for your clear analysis.