I've installed the Sheetnode module and, following the instructions on the project page, copied socialcalc to the sites/all modules/sheetnode/ and run the socialcalc patch (which seemed to run OK). I can create sheetnode content but get a warning:
warning: sheetnode_nodeapi() [function.sheetnode-nodeapi]: open_basedir restriction in effect. File(/socialcalc.inc) is not within the allowed path(s): (/var/www/vhosts/wales-lichens.org.uk/httpdocs:/tmp) in /var/www/vhosts/wales-lichens.org.uk/httpdocs/apprentices/sites/all/modules/sheetnode/sheetnode.module on line 172.
Can anyone explain why please and what I can do about it?
Many thanks
Alan Hale
Comments
Comment #1
infojunkieopen_basedir is a PHP security feature that restricts the paths where files can be opened. It seems the line
in
sheetnode_nodeapiis bothering open_basedir, even though the sheetnode path seems to be within the allowed paths (as evidenced by your warning above). Please try to replace the above line with the following:Does that still generate the warning?
Comment #2
thebeepseal commentedkratib - many thanks for the reply. Now, before receiving that reply I tried uninstalling and re-installing Sheetnode (I did not move or remove any files manually). This seemed to temporarily fix the problem - but then it recurred!
I tried replacing the original code with that you suggested, but the problem still occurs. I forgot to mention also since the warning message started to appear I also get a "white page" whenever I edit a node (any node - not just a sheetnode) and save it.
Cheers
Alan
Comment #3
infojunkieI'll set open_basedir locally and see how it behaves. I hope to answer you by tomorrow. Thanks for your patience :-)
Comment #4
infojunkieWhite screen on all nodes! That's quite a dramatic failure. Try commenting the function
sheetnode_nodeapi()altogether. Do you still get the white screen?Comment #5
thebeepseal commentedWell, all nodes I've modifed since installing Sheetnode - mainly a single custom content type and modifications to admin configuration pages. (I shouldn't have said any node!). Can't try what you suggest just now - will do a little later on. Many thanks.
Comment #6
thebeepseal commentedHi - sorry it's taken me so long to get back - I've had a local PC problem to deal with (Vista - Ugghh).
I've tried commenting out the whole function - and no, I don't get white screens if I do.
Cheers
Alan
Comment #7
thebeepseal commentedBut - I've just re-instated the function and so far I've still not got a white screen, nor am I getting the warning messages. Strange. I haven't changed anything else (other than I'd temporarily disabled Sheetnode module).
When I've sorted out my other problem I'll try to look at this more systematically.
Thank you for YOUR patience :-)
Alan
Comment #8
thebeepseal commentedNeither the warning message nor the white screens have re-occurred and I cannot reproduce them. You might wish to close this issue. Many thanks.
Comment #9
infojunkieGlad to hear it!