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.

Can't Set Magpie URL Parameter Dynamically

June 01, 2011 5:03pm

Subscribe [3]
  • #1 / Jun 01, 2011 5:03pm

    JohnGribben

    111 posts

    This question may be related to a resolved thread.

    I’m getting these errors when I try to dynamically set the url parameter:

    A PHP Error was encountered
    Severity: User Warning
    Message: MagpieRSS: Failed to fetch {analysts-feed}. (HTTP Error: Invalid protocol “”)
    Filename: plugins/pi.magpie.php
    Line Number: 1387

    A PHP Error was encountered
    Severity: Notice
    Message: Trying to get property of non-object
    Filename: plugins/pi.magpie.php
    Line Number: 104

    Here is the code that isn’t working:

    {exp:channel:entries channel="rss-feeds" dynamic="off" url_title="analysts-update" limit="1"}
    {exp:magpie url="{analysts-feed}" limit="3" refresh="720"}
        {magpie:items}
        <div class="entry row">
           <div class="caption">
                <h4>{magpie:title}</h4>
    <p>            {magpie:summary} <a href="http://{magpie:link}%22class=%22jump" class="jump" target="_blank" rel="noopener">More »</a><br />
           </div> <br />
        </div><br />
        {/magpie:items}<br />
    {/exp:magpie}<br />
    {/exp:channel:entries}

    I have set “Automatically turn URLs and email addresses into links?” to “No” in the channel’s preferences.  It works when the “url” parameter is hard coded.

    I am using:

    EE 2.1.4
    Build 20110411
    Magpie 1.3.5

    Also:

    Structure 3.0.1
    Low Reorder 1.1.1
    Playa 4.0.4.1

    Thanks!
    John

  • #2 / Jun 02, 2011 6:45am

    John Henry Donovan

    12339 posts

    John,

    I provided a method in your other thread. Can you let us know if we can close this one out for you?

  • #3 / Jun 02, 2011 10:19am

    JohnGribben

    111 posts

    Yeah, sure John.  Sorry about that.

  • #4 / Jun 02, 2011 12:12pm

    Sue Crocker

    26054 posts

    Closing per request..

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

ExpressionEngine News!

#eecms, #events, #releases