WARNING: fread(): Length parameter

Discussion in 'Installation' started by dcjones, Jul 14, 2006.

  1. dcjones

    dcjones Guest

    Hi all,

    In have installed aMember Pro, no problems there I think.

    I have a link on my site to the login.php aMember file but when the lick is accessed the following error appears.

    WARNING: fread(): Length parameter must be greater than 0. in line 1734 of file Smarty.class.php

    Do anyone know what this is.

    Many thanks

    Dereck
  2. pilkington

    pilkington New Member

    Joined:
    Jul 5, 2006
    Messages:
    3
    Same here

    But mine seems to come and go - can't determine a pattern yet. If I access the login page while already logged in, it just redirects me back to the site home page. I'm testing the trial version.
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You get this error because there is an empty template somewhere. Smarty does not like this. Just find and edit that template and add one space to it, so size will be greater then zero.
  4. scoobee

    scoobee New Member

    Joined:
    Sep 22, 2006
    Messages:
    2
    I really want to purchase this product for my customer

    I am designing a website for my customer and your product is exactly what I need. I loaded the demo and was able to signup but I get that
    Length parameter must be greater than 0. in line 1734 Smarty.class.php
    after I login. I have searched for an empty template, but maybe Im doing something wrong... I can not find the problem. I need this demo to work so I can show my customer and then purchase your product. Please help.

    Thanks...the demo site is www.scoobeeweb.com/vid


    Thanks again.

    S
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I see it is already fixed. I guess a template file (in amember/templates/ folder) was uploaded with zero size and it caused these issues.
  6. maccast

    maccast New Member

    Joined:
    Mar 6, 2010
    Messages:
    22
    I'm getting this error on the edit user page:

    Code:
    WARNING: fread() [function.fread]: Length parameter must be greater than 0 in line 1738 of file Smarty.class.php
    How can I determine which template is being called to fix it?
  7. maccast

    maccast New Member

    Joined:
    Mar 6, 2010
    Messages:
    22
    Ooops. Nevermind, it was the amember/templates/add_field.inc.html file. I just put a space into the template and the warning went away.

Share This Page