These are chat archives for collectiveaccess/support

4th
Apr 2016
tony-rc
@tony-rc
Apr 04 2016 07:17

I'm working with @jessica-s and in the process of uploading lots of image (some 3500+) using CA. I've been using the web interface to queue and started it via the console.

Thus far I've only been able to successfully upload 50 images at time which were also successfully matched too as all other attempts at more have failed with this error: "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted" "/providence/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php". I've since looked up on htmlpurifier.org as to what this purpose is why is this being used in the import process?

Stefan
@stefankeidel
Apr 04 2016 11:23
We run most field content through HTML purifier to prevent simple cross site scripting attacks on the frontend but also to prevent users from using some undesirable tags (like <script>) in HTML fields
Your memory limit seems to be set to 128M, which is enough for most tasks but should be increased if you're trying to batch import a bunch of images. Also, just because PHP ran out of memory in HTMLPurifier that doesn't mean HTMLPurifier is using a ton of memory. It just so happened that that's where it ran out. Could have happend anywhere along the line.