Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Image uploading not working - javascript error


Reply


12 Posts   2952 Views

Avatar
UncleCheese

4085 Posts

13 November 2009 at 2:54am

Looks like you probably have a huge tree of folders? I would increase your memory limit. I always run my sites at at least 128M, and you're at 32M.

Avatar
Platypus

Community Member, 43 Posts

13 November 2009 at 3:22am

Edited: 13/11/2009 5:19am

Hopefully I can change this setting as I'm running the site at 1&1 shared hosting.
Is this done by a php.ini and "memory_limit"? Where or in which folder should I put this php.ini?

Thx UncleCheese!

/edit: I will try the info from this thread: http://www.silverstripe.org/general-questions/show/269756#post269756

/edit2: Problem seemed to be solved with php.ini and an increased memory_limit from 40M to 128M. My info.php reports 128M but I still get this error when trying to go to "Files & Images":

Fatal error: Out of memory (allocated 32243712) (tried to allocate 44 bytes) in /homepages/10/d181445061/htdocs/silverstripe/sapphire/core/ViewableData.php on line 77

Why doesn't it allocate the avialable memory, is there something to be configured in Sapphire or ViewableData.php?

/edit3: It works for now with ini_set('memory_limit', '128M'); in ViewableData.php

Platypus

Avatar
UncleCheese

4085 Posts

13 November 2009 at 8:54am

You modified ViewableData.php? You should never hack the core SS code. Put your ini_set() in your mysite _config.php.

Avatar
Platypus

Community Member, 43 Posts

13 November 2009 at 10:39am

Edited: 13/11/2009 10:45am

Yes, it was an act of desperation... I did this to several core files - but I have removed the modifications with backup/original files already. I didn't know that I had to put ini_set() right in the header of mysite/_config.php, I tried this file of course.
There's always something new to learn with Silverstripe and I like it ;-)

Thanks again for you're help and advice UncleCheese!