ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Magpie is Stuck

March 20, 2007 1:40pm

Subscribe [0]
  • #1 / Mar 20, 2007 1:40pm

    xxdesmus

    7 posts

    I am using Magpie to pull in my recent tunes feed from Last.fm

    Here is my site, XxDesmusxX.NET—> Recent Tunes is on the right-hand sidebar.

    Here is the feed it is pulling in,

    http://ws.audioscrobbler.com/1.0/user/xxdesmusxx/recenttracks.rss

    The feed is updating correctly, and I haven’t even touched the magpie plugin or code in a few months, but I noticed the other day it just stopped updating.

    Here is the code I am using (and have been using for months now):

    <h3 class="sidetitle">Recent Tunes</h3>
    <div class="quickbits">
    {exp:magpie url="http://ws.audioscrobbler.com/1.0/user/xxdesmusxx/recenttracks.rss" limit="8" refresh="1"}
    <ul>
    {items}
    <li><a href="http://{link}">{title}</a>
    </li>
    {/items}
    {/exp:magpie}
    <div id="lastbit"><li><a href="http://www.last.fm/user/xxdesmusxx/">:: Archives ::</a></li>
    </div>
    </ul>
    </div>


    Running EE v1.5.2 Build 20061128
    Magpie RSS Parser (v.1.3.2)

    Any ideas?


    Thanks for any assistance.

  • #2 / Mar 23, 2007 2:59pm

    xxdesmus

    7 posts

    anyone? I figured Paul especially would know of a simple fix for this ...

  • #3 / Mar 25, 2007 1:12am

    DigiFiend

    41 posts

    Ive got what appears to be the same issue.  I use the Feedgrab plugin (which utilizes the magpie plugin core) and all of a sudden, my code for retrieving info off a last.fm rss feed has stalled.

    After upgrading the feedgrab plugin to .7, the feed list did change, but it’s stuck again.  Perhaps there is something going on with caches?  Makes no sense to me since I haven’t touched this code in months.

    Same versions as above (EE 1.5.2, Magpie 1.3.2), also running feedgrab .7

  • #4 / Mar 26, 2007 2:02pm

    Paul Burdick

    480 posts

    Go into your system folder via FTP and double check that the cache folder has 777 permissions.  Then, delete the contents of the cache directory.  Sounds like a cache file is getting stuck, likely because of permissions.

  • #5 / Mar 26, 2007 2:56pm

    DigiFiend

    41 posts

    Go into your system folder via FTP and double check that the cache folder has 777 permissions.  Then, delete the contents of the cache directory.  Sounds like a cache file is getting stuck, likely because of permissions.

    The cache directory did indeed have 777 perms, deleting the items in the cache folder did allow feedgrab to update the info.  As the feed is a last.fm feed based on music played at home, I’ll see if the cache continues to stick or if this was a random occurrence.

    Thanks for the help!

  • #6 / Mar 27, 2007 2:41pm

    DigiFiend

    41 posts

    Go into your system folder via FTP and double check that the cache folder has 777 permissions.  Then, delete the contents of the cache directory.  Sounds like a cache file is getting stuck, likely because of permissions.

    As mentioned before, the cache directory did have 777 permissions.

    Running version .61 of Feedgrab, I deleted the contents of the Magpie cache directory, and the plugin worked.  Once.  Then was restuck.  Manually deleting the contents of the directory allows the plugin to update a single time.

    Running version .7 of Feedgrab, the cache isn’t an issue.  I can’t run .7 however because it won’t process the long dash in my feeds properly.

    Since I seem to have narrowed down the problem with Feedgrab to a magpie issue, would it be best to keep asking questions in a Magpie thread or in a Feedgrab thread?  Also, are you aware of any server side change that could cause suck a problem with cache files getting stuck?

    Thanks for your help!

  • #7 / Mar 27, 2007 2:46pm

    Paul Burdick

    480 posts

    Go into the magpie_cache directory.  There is going to be a file in there, does it have 777 permissions.  If PHP is unable to modify the file, then that would cause it not to update.  Also, what value do you have for the refresh=”” parameter?

  • #8 / Mar 27, 2007 2:53pm

    DigiFiend

    41 posts

    Go into the magpie_cache directory.  There is going to be a file in there, does it have 777 permissions.  If PHP is unable to modify the file, then that would cause it not to update.  Also, what value do you have for the refresh=”” parameter?

    Magpie Cache dir = 777
    Current 3kb cache file = 777

    Current “track grabber” template that populates blog:

    {assign_variable:my_weblog="default_site"}
    {assign_variable:my_template_group="site"}
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    
    {exp:feedgrab url="http://ws.audioscrobbler.com/1.0/user/DigiFiend/recenttracks.rss"
    weblog="7"
    title="title"
    date="pubDate"
    use="link|description"
    fields="extended|body"
    refresh="1"
     }
  • #9 / Mar 27, 2007 3:04pm

    Paul Burdick

    480 posts

    I just downloaded the FeedGrab plugin and I see it includes its own version of the Magpie library and not the one included in ExpressionEngine.  So, this is officially a problem with it and since it is a third party plugin you should contact the author.  They should probably first make sure the download is happening and then whether the script is processing the data correctly.

  • #10 / Mar 27, 2007 3:19pm

    DigiFiend

    41 posts

    I just downloaded the FeedGrab plugin and I see it includes its own version of the Magpie library and not the one included in ExpressionEngine.  So, this is officially a problem with it and since it is a third party plugin you should contact the author.  They should probably first make sure the download is happening and then whether the script is processing the data correctly.

    Thanks Paul, I work with the feedgrab author to resolve this.

  • #11 / Apr 01, 2007 1:58am

    liquilife

    147 posts

    I have had the same problem using the included magpie plugin with Expression Engine. I have a last.fm rss feed as well updated by Winamp that has worked beautifully for months and months. Not long ago the EE magpie plugin stopped updating. I’ve confirmed the RSS feed is updating so it’s an issue with Magpie. Oddly enough I’ve made no changes to bring about this issue.. it just sort of happened on it’s own.

    I have verified the cache folder for magpie is set to 777. I can delete out the cache and the RSS list will forcefully update, but then it’s stuck again.

    Are any of you using Dreamhost by chance? Perhaps Dreamhost made a global change by chance affecting how this works?

  • #12 / Apr 01, 2007 4:07am

    DigiFiend

    41 posts

    I have had the same problem using the included magpie plugin with Expression Engine. I have a last.fm rss feed as well updated by Winamp that has worked beautifully for months and months. Not long ago the EE magpie plugin stopped updating. I’ve confirmed the RSS feed is updating so it’s an issue with Magpie. Oddly enough I’ve made no changes to bring about this issue.. it just sort of happened on it’s own.

    I have verified the cache folder for magpie is set to 777. I can delete out the cache and the RSS list will forcefully update, but then it’s stuck again.

    Are any of you using Dreamhost by chance? Perhaps Dreamhost made a global change by chance affecting how this works?

    I am also using dreamhost.  I suspect it may some problem with the specific version of magpie being used.  As documented above, I’m actually using a plugin that has incorporated magpie code in it, so my problem isn’t identical but similar.

    I’ve worked around the problem by running a cron job that deletes the magpie cache files every 10 minutes (my code that utilizes the magpie cache updates every 15 minutes).  Sloppy kludge like fix, but the only way I could get around the problem.

    If you find out about any dreamhost changes, I’d be interested in hearing about them.

  • #13 / Apr 07, 2007 6:41am

    ChrisClark

    60 posts

    I’m not on Dreamhost, and I’m having the same problem. I just deleted the FeedGrab plugin from my site (it’s never worked well for me), and cleared my magpie cache. Should that solve the problem, or am I going to have to run a chron to automate the ?

    And, if I have to use chron, can anyone explain to me how it’s done? I feel stupid every time I look at the instructions. Do I just put the code into any old template? Does the template have to be accessed in order for the chron to run?

  • #14 / Apr 09, 2007 1:25pm

    Paul Burdick

    480 posts

    The Magpie plugin, that is distributed with ExpressionEngine, should delete the cache automatically as long as the permissions are set to writable for the /system/cache/ folder *and* your server does not have special restrictions.  If one is using another plugin script that is using the Magpie library, then I cannot guarantee that it has been written correctly and will automatically delete the cache files correctly.

    Using the Cron plugin in ExpressionEngine is likely not to make much of a difference, as it is still PHP trying to delete or overwrite the cache.

  • #15 / Apr 09, 2007 2:01pm

    liquilife

    147 posts

    Using the included Magpie plugin here.

    Paul, I had only checked the magpie folder within the cache folder for the correct permissions. Your post prompted me to check the permission of the ‘cache’ folder and it was indeed set to 755. Now set to 777.

    That being said, it is still not updating. I have ensured that the cache folder and the magpie folder is set to 777. Heck, even the temp files created in the magpie cache folder are created with 777 permissions. I’m completely lost here.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases