Log message #3148862

# At Username Text
# Jan 29th 2014, 14:03 dereuromark and $this->Html->script() etc
# Jan 29th 2014, 14:03 dereuromark see the layouts in core
# Jan 29th 2014, 14:03 dereuromark $this->fetch(script)
# Jan 29th 2014, 14:02 mini-me hey guys, in cake 2, how do I use the "$script_for_layout" variable, I want to include a javascript file for this one page only (but I want the javascript to be inserted into the <head>)
# Jan 29th 2014, 13:33 halim i just upgraded the virtual machine's ram from 512 MB to 1 GB, still getting the same error
# Jan 29th 2014, 13:27 halim and the virtual machine has a total of 512 MB of ram
# Jan 29th 2014, 13:27 halim inside virtualbox
# Jan 29th 2014, 13:27 jose_zap no idea then :S
# Jan 29th 2014, 13:27 halim well almost, it's a virtual machine
# Jan 29th 2014, 13:27 halim yeah
# Jan 29th 2014, 13:27 jose_zap so, your local machine?
# Jan 29th 2014, 13:27 halim my own
# Jan 29th 2014, 13:27 halim i've tested with a 10 MB file as well and it worked perfectly fine
# Jan 29th 2014, 13:27 jose_zap is that your own server or a shared one?
# Jan 29th 2014, 13:26 halim any ideas?
# Jan 29th 2014, 13:26 halim i don't understand why it can't allocate 21550788 bytes (around 20 MB) even though the server has 300 MB available
# Jan 29th 2014, 13:25 halim and debug(ini_get('memory_limit')); also prints 300M
# Jan 29th 2014, 13:25 halim the content of .htaccess is also attached to that text
# Jan 29th 2014, 13:24 halim hello, i'm getting this error message when trying to upload a 20mb file through a form: http://pastebin.com/Sc81Z0Q6
# Jan 29th 2014, 13:20 halim can you switch user to the web-user? if yes, you could create the directories directly with that user
# Jan 29th 2014, 13:19 halim you can also try to change the group (chgrp) but i'm not quite sure whether that'll work since chown doesn't
# Jan 29th 2014, 13:19 halim then you'll need to contact someone that can do that for you
# Jan 29th 2014, 13:18 siver seems I'm not allowed to chown folders in my shared folder
# Jan 29th 2014, 13:17 siver well, my vagrantfile to be exact :p
# Jan 29th 2014, 13:17 siver It might actually be vagrant who's messing this up
# Jan 29th 2014, 13:15 mini-me I had this issue, for me it was because the tmp directory was not writable (a sub directory buried within it)
# Jan 29th 2014, 13:15 siver one sec, I might actually be looking at the wrong thing right now
# Jan 29th 2014, 13:15 siver sure
# Jan 29th 2014, 13:15 mini-me make sure your directory permissions are set recursively (chown 0777 -R tmp/)
# Jan 29th 2014, 13:15 halim siver, did you make the directories writeable for the web-user?
# Jan 29th 2014, 13:14 siver halim: unfortunately that doesn't seem to fix it
# Jan 29th 2014, 13:13 halim i think you need all but "pdf"
# Jan 29th 2014, 13:13 halim these are my subdirectories in app/tmp
# Jan 29th 2014, 13:13 halim cache emails logs pdf sessions tests
# Jan 29th 2014, 13:12 siver (The project was set to use PHP in session as a default, instead of 'Cake'
# Jan 29th 2014, 13:12 siver I'll give it a go right now
# Jan 29th 2014, 13:12 siver I figured I'd make one just to be sure, but I wasn't aware of which subdirectories needed to be set, so that might actually solve it
# Jan 29th 2014, 13:11 siver well, no. When I cloned the project, there wasn't even a tmp directory
# Jan 29th 2014, 13:11 halim cache, logs, session, tests
# Jan 29th 2014, 13:11 halim have you created the subdirectories in app/tmp/?
# Jan 29th 2014, 13:10 siver I am running this project through a debian VM (vagrant) on a OS X machine