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.

limit="5" in channel entries tag throwing php error

May 27, 2013 11:37pm

Subscribe [2]
  • #1 / May 27, 2013 11:37pm

    Hi,
    I have a channel entries tag that looks like this:

    <?php
    {exp:channel:entries channel="podcast_feed" sort="asc"}
    ...code…
    {/exp:channel:entries}
    ?>

    No problems so far. However, when I add a limit attribute to the channel entries tag like this:

    <?php
    {exp:channel:entries channel="podcast_feed" sort="asc" limit="5"}
    ...code…
    {/exp:channel:entries}
    ?>

    I get the following PHP error:
    “Parse error: syntax error, unexpected ‘http’ (T_STRING), expecting ‘,’ or ‘;’ in [path]\system\expressionengine\libraries\Functions.php(683) : eval()‘d code on line 586”

    Has anyone else encountered this, and do you know how to fix it?
    Thanks!
    Regards,
    James.

  • #2 / May 28, 2013 12:38am

    Bhashkar Yadav

    727 posts

    Hi James,

    There wouldn’t be any issue with limit parameter. Why you are putting channel entry tag within PHP. Please check PHP syntax within the template properly. PHP syntax might causing error.

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

ExpressionEngine News!

#eecms, #events, #releases