Error in Article Dashboard: How to Correct This?

Discussion in 'Site & Server Administration' started by Bohol, Jan 23, 2010.

  1. #1
    I am getting this error in our article directory website. What does the warning below mean?

    Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/cpanelname/public_html/foldername/include/functions.php on line 3069
     
    Bohol, Jan 23, 2010 IP
  2. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The error is giving you a clue, file functions.php - line 3069.

    Length parameter - I would say is a variable defining some configuration, which has set limits or filters. You need to correct the length parameter as the error explains.

    I hope you get it fixed :)
     
    FavouritesBlog, Jan 23, 2010 IP
  3. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Problem is that there is no line 3069. Line is only up to 2001. Even the original file doesn't have that line. I got that problem after the site was hacked.
     
    Bohol, Jan 24, 2010 IP
  4. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    A bit of a stab in the dark without knowing the software etc, but it can mean that a file that the script is trying to read such as a template file has a size of zero.

    If you use your FTP client you should be able to see all the file sizes and those with a 0 size you'll need to replace from backups and/or the original distribution of the script.

    Hope that helps.
     
    tolra, Jan 24, 2010 IP
  5. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you Tolra. I replaced all the template files, and the warning has disappeared. What is left now is that the title of the site has the name of the hacker team. See it here.
     
    Bohol, Jan 24, 2010 IP
  6. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #6
    Sorry, I'm not familiar with that software, however either the title is in one of the templates or it is in one of the settings. The settings are either in a file or accessible via the admin interface.
     
    tolra, Jan 25, 2010 IP