• Resolved CallMeAndy

    (@callmeandy)


    I started using your plugin again! – to be frank because I couldn’t find anything else that was working for me. Some aspects of the plugin are quite cool even if there are some difficulties.

    But I have just been reminded why I stopped using your product before. Previously many items were being formatted with the wrong images (actually I am editing because I have just found that is still the case as well – on this occasion correct feed but an image from a different post). Now its also, links in the post and the feed links: author, continue reading and Read Full post – all pointing to the feed of a different item! (Not every time but of those I checked about 50% – actually on rechecking more like 90% and the images almost always mucked up) (links within seemingly pointing to a different random – the feed links all to the same)

    If it helps an example was exhibited in this post: http://wild-about-travel.com/2013/08/unforgettable-swiss-national-day-interlaken-paragliding-parade/?utm_source=rss&utm_medium=rss&utm_campaign=unforgettable-swiss-national-day-interlaken-paragliding-parade

    Its only a guess but you ought to normalise posts in the database instead of serializing the data – this method is just asking for trouble. A table for feed to posts would surely make things easier, I don’t know if it is the numbers but I have a bout 30 feeds attached, if it was working as it should that would increase to 300 or so.)

    All that said I hope you are able to deal with this issue, and I am able to reinstate your plugin. Your support record and activity is admirable but this is a critical obstacle – attribution is messed up – the user experience is undermined – and my productivity is destroyed.

    All the best Allen.

    http://wordpress.org/plugins/wp-rss-multi-importer/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Allen

    (@amweiss98)

    What is an example RSS feed URL where are the links and images are getting messed up from my plugin?

    Thread Starter CallMeAndy

    (@callmeandy)

    I gave an example of the original in the post above.

    Here is a screenshot of a preview courtesy of my WP editor.

    Note bottom left the url in the status box at the time the mouse pointer on my screen was hovered over the: Read the Full Post On Link: Wild About travel. Also note the image is not showing at all in this instance.

    You sound like you don’t believe me Allen, I have no axe to grind with you, on the contrary I am trying to give you as much as possible to help you find the solution – please trust me – most times it is showing the wrong image – if you want I can give you another example.

    but more specifically here is the code:
    <p><span style="font-style: italic; font-size: 16px;">By <a class="colorbox" href="http://blog.responsibletravel.com/you-vote-you-decide-tell-us-who-is-the-creme-de-la-creme-of-responsible-tourism/">Simon Falvo</a></span></p><div class="ftpimagefix" style="float: left;"><img class="size-full wp-image-15592 " alt="" /></div><p class="wp-caption-text">Farmers at Swiss National Day Parade</p><p>On the <strong>1st of August 1291</strong> the Cantons of Uri, Schwyz and Unterwald swore an oath of mutual support in case of an external aggression endangering their freedom, thus setting the foundation of what would become the Swiss Confederacy. It took however 600 years before the government in 1891 declared the 1st of August as the official Swiss National Day.</p><p>The National Day is celebrated in every municipality across Switzerland with bonfires, fireworks and often parades and other activities and entertainment.</p><p class="wp-caption-text">Parade on Swiss National Day</p><p>In <strong>Interlaken</strong>, the houses and hotels were all decorated with flags of Switzerland – red with a bold white cross in the middle – and the ones of the 26 cantons. Everything in this lovely town, nestled between the <strong>Lake of Thun</strong> and the <strong>Lake of Brienz</strong>, was joyful and colourful.</p><p><img class="size-full wp-image-15586 " title="You vote, you decide: Tell us who is the “Crème de la Crème” of responsible tourism!" alt="" width="600" height="410" /></p><p class="wp-caption-text">Paragliding above Interlaken</p><h2>How exciting being part of a group of people paragliding with the swiss flags to celebrate Swiss National Day!</h2><p>In the morning, I had the <a class="colorbox" id="rssmore" href="http://blog.responsibletravel.com/you-vote-you-decide-tell-us-who-is-the-creme-de-la-creme-of-responsible-tourism/">...continue reading...</a></p><p>Read the full post on : <a class="colorbox" href="http://youtu.be/bcnWysA9gxo">Wild About travel</a></p>

    You can see responsibletravel is in all the links as opposed to wild-about-travel and also additionally the missing image is not formed correctly – no src. But look at the title and what it would have been pointing to if it had have had the src attribute: wrong image.

    Plugin Author Allen

    (@amweiss98)

    ok..try replacing this file with what’s on your server and see if this helps

    https://dl.dropboxusercontent.com/u/3132388/excerpt_functions.php

    Thread Starter CallMeAndy

    (@callmeandy)

    Hi Allen,
    right I only have two I can report on in the first batch attempt at fetching the feed, the URL’s are both good – one of which was a blog that I’m pretty sure was failing on the URL’s before. However Both have picked up images from posts in the Youtube feed.

    So not quite off the hook yet but its a pretty speedy response! 🙂

    Thread Starter CallMeAndy

    (@callmeandy)

    Looked at two more tonight 00:20,
    at Havana Lion this article seemed to be as it should be.
    Th second one I looked at
    relating to this post

    not so – images either missing (no src still) but when they are there (3rd img), they are from the first post example above.

    Here is the code from the second article:

    <p><span style="font-style: italic; font-size: 16px;">By <a class="colorbox" href="http://feedproxy.google.com/~r/HavanaLion/~3/vKggRryPibM/">Joe Fylan</a></span></p><p>Visiting a country during its low season can be a tempting prospect. There are many reasons why you might want to visit a country during its months of ‘downtime’ and Thailand is no exception to this.  Some popular reasons why people choose to visit during a low season include:</p><ul><li>Cheaper flights and accommodation</li><li>More choices of accommodation</li><li>Less tourists and other visitors</li><li>Chance of seeing the ‘real’ destination as opposed to during the tourist-centric peak season</li><li>Possible to avoid the heat and humidity of the summer season</li></ul><p>While there are many advantages of visiting Thailand during the quieter, low season months, which partly coincide with the rainy season, there are also a few disadvantages to be aware of.</p><div class="wp-caption aligncenter" id="attachment_2395" style="width: 610px;"><img class="size-full wp-image-2395" title="Answering the most difficult travel question" alt="" width="600" height="344" /><p class="wp-caption-text">Beach During the Rainy Season – Photo Credit: <a class="colorbox" href="http://www.baconismagic.ca/canada/snorkeling-with-beluga-whales/" target="_blank"> Steve C. (Flickr)</a></p></div><h2>Thailand’s Rainy Season</h2><p>The rainy season in Thailand tends to run from May to October, once Songkran has finished and until the Loy Kratong festival. However, it changes on a yearly basis and affects different parts of the country very differently. While the ‘term rainy’ season conjures up images of all-day monsoons, that isn’t the case in Thailand.</p><p>On days when it rains, there will typically be a build-up of uncomfortable humidity before the weather breaks in the afternoon or evening, and there is an <b>intensely impressive downpour accompanied by a tropical storm</b>. This isn’t your typical European rain; this is Thai rain which is warm, hard and heavy. Once the rain does begin to fall, it is usually a welcome sight as at this point, it means the humidity subsides for a very brief period after the downpour making the climate almost pleasant. These storms are normally accompanied by powerful thunder and lightning shows will are great to watch.</p><p>However, these <b>storms don’t occur every day</b>, even at the height of the rainy season, which changes according to which part of the country you are in. This can be good for getting out and about without getting soaked but it also increases the long humid build up periods, making life pretty hot and sweaty.</p><p>If you choose to come to Thailand during the low season when rain is more common you should prepare yourself for a few of the <b>negative aspects of the country during this time of year:</b></p><h3>Lack of Direct Sunlight</h3><p>One is a lack of direct sunlight. This means if you have come for a suntan, you might be disappointed, as while it is still hot, the <b>sky is generally overcast</b>, preventing the rays from reaching you. This can also be a plus of coming at this time of year as it can make the climate a little more comfortable in terms of protecting you from the direct heat of the sun.</p><h3>Scuba Diving and Snorkelling</h3><p>As the amount of rain increases, the seas become more disturbed, which can make scuba diving and snorkelling, something which Thailand is famed for, not a good idea. <b>Underwater visibility levels become very low</b> during the low season thanks to the extra rainfall. This means that diving activities are usually put on hold until the peak months due to the often disappointing lack of visibly.</p><div class="wp-caption aligncenter" id="attachment_2396" style="width: 610px;"><img class="size-full wp-image-2396" alt="" width="600" height="338" /><p class="wp-caption-text">Floods on Samui – Photo Credit: <a class="colorbox" target="_blank">Soma (Flickr)</a></p></div><h3>Flash Floods</h3><p>While it doesn’t does often flood on a national scale, apart from in 2011, the downpours during the rainy season often overpower the drains that serve the roads. This is usually temporary and the water levels subside after an hour or so.</p><p>However for those trying to get somewhere, finding an available or mobile taxi can be difficult, and most motorcycle taxis tend to avoid travelling during these <b>street floods</b>. If you plan on travelling by road during the rainy season in Thailand, such as by bus or minivan, make sure you allow for some disruption to your itinerary as it is highly likely to occur.</p><p>These mini-floods can also bring out a whole host of wildlife including monitor lizards and large snakes which can be exciting but also dangerous. For this reason it is good to keep your wits about you while wading through the floodwater. The dirty water from the drains and struggling sewer system is another very good reason not to go barefoot exploring during the floods if at all possible.</p><div class="wp-caption aligncenter" id="attachment_2397" style="width: 610px;"><img class="size-full wp-image-2397" alt="" src="http://photos.baconismagic.ca/Travel/Ecuador/i-BKqDg9W/0/650x650/whale%20watching-650x650.jpg" width="600" height="401" /><p class="wp-caption-text">Flash Floods – Photo Credit: <a class="colorbox" target="_blank">Hankoss (Flickr)</a></p></div><h2>Should I Visit Thailand During the Low Season?</h2><p>There are just as many good reasons for choosing to travel to Thailand during the low season as there are bad ones. When planning your trip it is up to you to weigh up the pros and cons of each of the three main seasons and decide which are more important to you.</p><p>It is certainly cheaper to come during the off-peak months but you might miss out on some of the main attractions of the country which make this such as popular destination.</p><p>Thailand can often struggle with the amount of backpackers and travellers who arrive on its shores each year. Especially during the peak months of November to February, as well as April during the Songkran festival and the Thai New Year.</p><p>Popular beaches such as those on Phuket, Koh Samui and Koh Phi Phi can become uncomfortably crowded during the peak months around Christmas, making this a good time to avoid if a lack of rain and lots of sun isn’t the most important thing for you.</p><p>Overall Thailand is still very much an excellent travel destination during the low season months. However it is important to be aware of the differences before making your trip so you know what you might be missing out on and letting yourself in for.</p><p>Read the full post on : <a class="colorbox" href="http://feedproxy.google.com/~r/HavanaLion/~3/vKggRryPibM/">Havana Lion</a></p>

    Off to bed now – knackered!
    Thanks Allen.

    Plugin Author Allen

    (@amweiss98)

    I don’t know what to tell you…this is what I get (the last entry is that article you said didn’t work)

    http://www.screencast.com/t/X9Yu8mLpRW

    and that looks just like the entry on the page from which this comes

    http://havanalion.com/is-it-worth-visiting-thailand-during-the-rainy-season

    Plugin Author Allen

    (@amweiss98)

    also, here is that feed on another web site..again, no problems

    http://www.wprssimporter.com/

    Thread Starter CallMeAndy

    (@callmeandy)

    Allen your example shows a fetch of a single feed so how could it jumble up articles from two feeds. I have 30 feeds setup. If this is to work it will be 300 ish.

    It is the correct source but this is not perhaps addressing the problem of multiple sources being fetched.

    Plugin Author Allen

    (@amweiss98)

    here it is with 2 other feeds – all intermixed and sorted by date

    http://www.wprssimporter.com/

    if you look at the code that produces this you will see that it really makes no difference if there are 3 or 300 since the plugin loops through all the feed and takes the feed items and places it in the blog posts…then it’s up to WordPress to show them on the site.

    Thread Starter CallMeAndy

    (@callmeandy)

    Its true I haven’t looked at the code but your code must be extracting elements from the feed and defining the html for the post – this is what would seem to be going wrong.

    With that Havana Lion feed this is the first image as defined in the feed:
    <img class=”size-full wp-image-2395″ alt=”Beach During the Rainy Season – Photo Credit: Steve C. (Flickr)” src=”http://havanalion.com/wp-content/uploads/2013/07/rainy-season-beach.jpg&#8221; width=”600″ height=”344″ />

    After fetching with your baby I get this:
    <img class=”size-full wp-image-2395″ title=”Answering the most difficult travel question” alt=”” width=”600″ height=”344″ />

    As to looking at the PHP I had a quick glance – but frankly I dont have time to debug it at the moment. I have to say it looks like your code is doing a lot of extraction and assignment from the feed, rather than simply just simply passing the data for a given feed item to WP to process. Forgive if I am wrong this is just what the voices in my head are telling me 🙂

    The error must be in isolating, extracting elements, assigning them to variables and reassembling, before passing a given feed item. You seem to be saying that it is not this process that is at fault but that the packet of data that would relate to one post, passed in isolation, is scrambled by WP, but how can that be you are passing a specific set of data to WP for a given item. The error has to be in what is passed to WP.

    Plugin Author Allen

    (@amweiss98)

    here’s the thing…what I’ve found with other people is that when my plugin puts code into the post, if they are using some other plugin what happens is that there is filter called save_post, and the other plugin (not mine) or theme changes the html…since I cannot reproduce your errors on two of my sites, I can only assume it is something going on with your wordpress installation or, most likely, your theme or another plugin.

    Thread Starter CallMeAndy

    (@callmeandy)

    Fair enough Allen – I started off setting up another site so I can test it on a different theme, obviously turning off the plugins is an easier thing. But some other stuff in the way at the moment so I got held-up probably come back to you on this over the weekend.

    Thread Starter CallMeAndy

    (@callmeandy)

    Sorry it has taken a long time to revisit this problem. I had left it installed but the thing was churning away on feed-to-post mode as drafts. I was expecting I would have to remove it altogether as I have never had the time to get to the bottom of the problem. And frankly still have not .
    However to my surprise all issues reported about links being taken from other posts, and making an unusable mess of the whole thing have mysteriously evaporated.

    To my recall the only thing altered in this time was the WP release. But its possible there was a plugin upgraded that I don’t recall. So not really a definitive answer but at least as far as I am concerned the product is usable again.

    So sorry for the grief this question might have posed in that I never really was able to deliver on isolating the cause.

    All the best,
    Andy Seabrook

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Linked post is from a different feed and images from wrong post!’ is closed to new replies.