ZenphotoCMS Forum
PrintTags fails with memory limit error - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: PrintTags fails with memory limit error (/thread-7962.html)



PrintTags fails with memory limit error - special-k - 2010-12-14

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?




PrintTags fails with memory limit error - acrylian - 2010-12-14

Since no official theme has a tags.php theme page please provide some info what that actually does and how it is used.




PrintTags fails with memory limit error - special-k - 2010-12-14

I just edited my post to show what's in that page.

Edit 2:

Here are all the contents of that file:

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




PrintTags fails with memory limit error - sbillard - 2010-12-14

How many tags do you have?




PrintTags fails with memory limit error - special-k - 2010-12-14

179 tags.




PrintTags fails with memory limit error - sbillard - 2010-12-14

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.




PrintTags fails with memory limit error - special-k - 2010-12-14

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.