Incremental Plugin display error

Discussion in 'Setting-up protection' started by gizzy, Jul 4, 2009.

  1. gizzy

    gizzy New Member

    Joined:
    Jun 13, 2009
    Messages:
    5
    Hi Guys,

    I'm trying to set up my incremental delivery using the plugin, and it seems to be working fine, but when I try to use the .php code given to insert on my php pages, to display the links im getting this error:

    Code:
    Warning: session_start() [function.session-start]: Cannot send
    session cache limiter - headers already sent (output started 
    at /home/name/public_html/members/month2/index.php:7) 
    in /home/name/public_html/members/month2/index.php on line 49
    The frustrating part is directly below the error, the correct links are displayed to the content!!!

    The code im inserting in the page is:

    Code:
    <?php
    session_start();
    if ($_SESSION['_amember_links'])
    {
    	echo "<ul>";
    	foreach ($_SESSION['_amember_links'] as $link_id => $link)
    	{
    		echo "<li><a href=\"".$link['link_url']."\">".$link['link_title']."</a></li>";
    	}
    	echo "</ul>";
    }
    ?>
    Which is exactly as it tells me to. Also the downloads are displaying fine on the member.php page. Its only when i use this code i seem to have a problem.

    Any ideas?
  2. gizzy

    gizzy New Member

    Joined:
    Jun 13, 2009
    Messages:
    5
    Managed to sort it... The code needed breaking up a bit on the page.

    Must admit, think the instructions coming with this plugin are less then clear... But hey ho!

Share This Page