Member
Member
special-k   2010-12-14, 20:02
#1
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?
Administrator
Administrator
acrylian   2010-12-14, 20:05
#2
Since no official theme has a `tags.php` theme page please provide some info what that actually does and how it is used.
Member
Member
special-k   2010-12-14, 20:06
#3
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
Member
Member
sbillard   2010-12-14, 22:16
#4
How many tags do you have?
Member
Member
special-k   2010-12-14, 22:35
#5
179 tags.
Member
Member
sbillard   2010-12-14, 23:21
#6
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.
Member
Member
special-k   2010-12-14, 23:31
#7
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.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.