Re: PHP error message when deploying joind.in locally (first time observing/contributing to open source :)

13 views
Skip to first unread message

lornajane

unread,
Oct 22, 2012, 1:03:54 PM10/22/12
to joindin-d...@googlegroups.com
Hi Jessica!

I think what's happening here is that the web server can't write to a directory that it needs to.  Check the permissions on the folder src/system/cache/ctokens (create it if it doesn't exist) - whichever user your webserver runs as should be able to write to there.  I have no idea what the correct settings are for a mac but I'm sure someone else will know .... people?  What exactly should this be set to?

Lorna


On Monday, October 22, 2012 7:08:32 AM UTC+1, Jessica Chan wrote:
Hi there! I was an attendee at the Confident Coding conference this past Saturday and I had the pleasure of hearing Lorna speak and was inspired by her suggestion to get involved with open source. I went ahead and installed VirtualBox and Vagrant on my Mac (cheers to learning new tech via open source!!) and got a deployment of joind.in up on my machine. However, I'm seeing this error when I visit the pages:

A PHP Error was encountered

Severity: Warning

Message: file_put_contents(/vagrant/src/system/application/config/../../cache/ctokens/500122397.tok) [function.file-put-contents]: failed to open stream: No such file or directory

Filename: helpers/reqkey_helper.php

Line Number: 54


I'm definitely a PHP novice, but I checked out the file it referenced and when I commented out the line that was breaking the site the error message went away, but then I can't register because tokens aren't being compared. 


I'd appreciate any help! Thanks in advance and hope this is a super easy/obvious issue to fix haha.

Kevin Bowman

unread,
Oct 22, 2012, 1:53:57 PM10/22/12
to joindin-d...@googlegroups.com
Hi,

I think it's saying that the dir which it's trying to write into doesn't exist, so I'd definitely recommend checking that first.  I'm not too familiar with the Vagrant setup, so hopefully someone else can chip in, but Lorna's right in saying that you need to make a dir src/system/cache/ctokens and then the easiest thing is to make it world-writeable (which is ok just for development) - "chmod -R a+rwx src/system/cache" should do the trick, although that may need a little adjustment for the Vagrant setup.

Kevin

Jessica Chan

unread,
Oct 25, 2012, 12:27:14 AM10/25/12
to joindin-d...@googlegroups.com
Sorry for the delay! I need to sign up to get notifications when people reply. Thanks so much for the help. 

Worked like a charm! Thank you Lorna and Kevin :) Time to explore..
Reply all
Reply to author
Forward
0 new messages