Fork me on GitHub

Solution to AT-Lite 0.8 parse error in atApi.php  Bottom

  • I had a parse error preventing my stories from being displayed because instead it threw an error pointing to this code:

    function atTemplateDisplay($tmpcontent)
    {
    $runningconfig = atGetRunningConfig();
    extract($runningconfig);
    eval(ENDPHP . $tmpcontent);
    }

    The code is in modules/Autotheme/includes/atApi.php.

    The problem was a few extra "" characters in modules/Autotheme/includes/postnuke/atcommands.php, so change the code that reads:

    $platformcmd['admin'] = array (
    'article-edit-del' => 'echo
    "["'
    . "   " . '._EDIT."

    | "
    ._DELETE."
    ]";',
    );

    to:

    $platformcmd['admin'] = array (
    'article-edit-del' => 'echo
    "[ "
    . _EDIT . "

    | "
    . _DELETE ."
    ]";',
    );

    This works. (I also took out the three spaces but that wasn't the problem.)
  • 0 users

This list is based on users active over the last 60 minutes.