Post by shoo002 » Mon Jul 26, 2010 3:25 pm

    Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/brockha1/public_html/system/library/cache.php on line 27
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 5628141 bytes) in /home/brockha1/public_html/system/library/cache.php on line 43

    I am getting this error when I click to edit/view any of my orders. I'm sure I haven't changed any of my settings. Does anyone have any ideas what it can be.
    Thanks
    Stewart

    Active Member

    Posts

    Joined
    Sat Jul 04, 2009 9:40 pm


    Post by cevarief » Mon Jul 26, 2010 3:44 pm

    What PHP version are you using? Seems there's problem with php fread() function.

    Active Member

    Posts

    Joined
    Wed Jun 02, 2010 10:52 pm

    Post by shoo002 » Mon Jul 26, 2010 5:32 pm

    As far as I'm aware it's the latest version

    Do you know how to sort it. Why would it just start doing this all of a sudden.

    Thanks for your help so far
    Stewart

    Active Member

    Posts

    Joined
    Sat Jul 04, 2009 9:40 pm


    Post by cevarief » Mon Jul 26, 2010 9:35 pm

    Do you allow read/write permission to cache folder in /system/cache ? I don't know but i just guess function fread() could open cache file due to file/folder permission issue.

    Active Member

    Posts

    Joined
    Wed Jun 02, 2010 10:52 pm

    Post by Simple » Mon Jul 26, 2010 9:56 pm

    you need to add

    php_value memory_limit 32M

    to your .htaccess file
    Same was happening to me.

    User avatar
    New member

    Posts

    Joined
    Sun Jul 25, 2010 6:44 pm

    Post by shoo002 » Tue Jul 27, 2010 2:22 am

    where do i enter that line, i just put it at the bottom of the .htaccess file and it caused an internal 500 error on my server, put it in my php.ini files and it made no difference.

    Active Member

    Posts

    Joined
    Sat Jul 04, 2009 9:40 pm


    Post by vanskyboy » Tue Jan 04, 2011 1:13 am

    have anyone solved this problem???
    same thing happening to my site now, any solution, thanks

    Newbie

    Posts

    Joined
    Tue Aug 24, 2010 5:54 am
    Who is online

    Users browsing this forum: No registered users and 362 guests