PrintTags fails with memory limit error

I just upgraded zenphoto to the latest version. I am on DreamHost with a custom php.ini with memory_limit set to 90M.

When I try to print tags on a page (called tags.php), I get the following errors:

My function call failed with this: printAllTagsAs("cloud");

Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 3 bytes) in /home/*****/*****.org/zp-core/functions-db.php on line 104

What am I doing wrong here? I can try and increase the memory but this is a fairly trivial thing to do, right?

Comments

  • acrylian Administrator, Developer
    Since no official theme has a `tags.php` theme page please provide some info what that actually does and how it is used.
  • I just edited my post to show what's in that page.

    Edit 2:

    Here are all the contents of that file:

    <?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'light'); ?>
    <?php printAllTagsAs("cloud"); ?>

    To add more clues to my problem, I can't also view the Tags tab from the admin panel. It just shows this error:

    atal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 24 bytes) in /home/****/****.org/zp-core/functions-db.php on line 104
  • How many tags do you have?
  • 179 tags.
  • That is not so many! Do you have a lot of images with those tags?

    Anyway, you can give tonight's nightly build a try. I have done some optimizing of the code that collects tags. If that does not help, check your database obj_to_tag table and see how large it is.
  • My obj_to_tag table as 181,017 records. I have a total of 29,376 images.

    I will give the nightly build a try.
Sign In or Register to comment.