Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorxiphias
    • CommentTimeAug 24th 2009
     
    Hi,

    I've been working on a new website which includes a plogger gallery. Up untill today it all worked fine.
    Yesterday i added a few more pictures to the gallery (38) which puts total at around 200 pics.
    This pictures are about 5Mb in size but import went fine.

    Now for some reason i can go to the main page which shows my collections, I cant go into a collection or into a album but I can few pictures.

    When I try to go to a collection page I get (/?level=collection&id=2):
    Out of memory (Needed 1048548 bytes)

    SELECT COUNT(DISTINCT `parent_album`) AS `num_items` FROM `plogger_pictures` WHERE `parent_collection` = '4'

    In file: /plogger/index.php

    On line: 1989

    When I go to a collection which has no Albums the page works, and I get the plogger message which says Collection has no Albums.

    An album page gives me the following error (/plogger/?level=album&id=2):
    Out of memory (Needed 1048548 bytes)

    SELECT COUNT(DISTINCT p.`id`) AS cnt FROM `plogger_pictures` AS `p` WHERE `p`.`parent_album` = 2

    In file: /plogger/index.php

    On line: 1767

    Server has plenty of RAM, 4GB and when I look in MySQL health and Windows Taskmanager hardly any memory is used. Also when page is loading it's done in a second so not stalling anywhere.

    Does anyone havew an idea?

    Thanks,



    Michael
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 24th 2009
     
    xiphias,

    This has to do with your memory_limit variable in php.ini. Increase it in php.ini or in plog-globals.php to something larger that will allow larger files to be resized for thumbnails (or use smaller images).
    •  
      CommentAuthorxiphias
    • CommentTimeAug 25th 2009
     
    sid,

    Thanks for the info. Looked in php.ini and setting was at 8M. Checked the plog-globals.php which was set to 64M is it was lower then 64M. I raised in steps up to 512M and I still get same message it wants 1M.
    if (intval(ini_get('memory_limit')) < 512) {
    @ini_set('memory_limit', '512M');
    }

    If I change plog-globals.php is refreshing the browser enough to reset the value?

    Importing the large images went fine and browsing images works fine also: http://j15.sportfotografie.us/plogger/?level=picture&id=180
    Just not browsing Albums or Collections and Admin is out now also.
    Large images are used for printing service, that's why I use the full res images.

    I would think that when importing is done, all should be generated or at least be able to generate if import went good.

    Any ideas?
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 25th 2009
     
    xiphias,

    You are attempting to set it in plog-globals.php, so you should not need to do anything except refresh the browser window after you change the variables. However, since it looks like the error is still not going away, I'm guessing that your server has disabled the ini_set function for the memory_limit variable (thus it is not actually changing the variable). This depends on the server setup. You are not seeing any errors regarding this since the '@' symbol is placed in front of the function call, suppressing errors generated by that function.

    You may need to contact your webhost to see if they can increase your memory_limit server wide or if you can change the memory_limit variable via an .htaccess file or a local php.ini file (they should be able to tell you how to alter the variable and if there is a hard-coded limit to the variable despite what you set it for). It's having the error on collections and albums because it is grabbing all of the information from the database to create the album or image list. This fills up the memory if you have a lot of collections, albums, or pictures in any one location.

    Are you limiting the Number of Thumbnails Per Page in the Admin -> Options tab? If not, try lowering that number to see if you can get it to display.

    That's all I can think of at the moment.
    Thankful People: xiphias
    •  
      CommentAuthorxiphias
    • CommentTimeAug 25th 2009
     
    Sid,

    Thanks for the quick response, I've raised the memory_limit in php.ini from 8M to 96M but I guess I have to reset the server which I'm not so sure I want to do since it also runs a 12K user forum. I'ld rather set for this site and not server wide. Server only holding about 3 live sites but it's basicly a dedicated server for the forum it's running. This site is a little extra ;-)

    Just find it strange to run into memory problems. Site still in development and Plogger only has 5 collections with about 7 albums between 4 of them holding a total of about 190 pictures.
    Have one Plogger install stand allone (other server) which has about 3 collections 25 albums and 2500 pictures.

    Where could I change the ini_set value so it can be set in the plog-globals.php, can't find it in php.ini.

    Thanks again,


    Michael
    •  
      CommentAuthorxiphias
    • CommentTimeAug 25th 2009
     
    I removed the @ infront of @ini_set seeing if I would get an error but I don't. Guess it should work then.
    I made a phpinfo.php where I set memory value like in plog-globals.php, get no error (removed @) but don't see memory value anywhere in the info :S
    •  
      CommentAuthorxiphias
    • CommentTimeAug 25th 2009
     
    Set php.ini from 8M to 32M and I guess it has been reset because it's working now. Thanks again for the help Sid.