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

infojunkie’s picture

Assigned: Unassigned » infojunkie

open_basedir is a PHP security feature that restricts the paths where files can be opened. It seems the line

require_once('socialcalc.inc');

in sheetnode_nodeapi is 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:

require_once(drupal_get_path('module', 'sheetnode').'/socialcalc.inc');

Does that still generate the warning?

thebeepseal’s picture

kratib - 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

infojunkie’s picture

I'll set open_basedir locally and see how it behaves. I hope to answer you by tomorrow. Thanks for your patience :-)

infojunkie’s picture

White screen on all nodes! That's quite a dramatic failure. Try commenting the function sheetnode_nodeapi() altogether. Do you still get the white screen?

thebeepseal’s picture

Well, 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.

thebeepseal’s picture

Hi - 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

thebeepseal’s picture

But - 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

thebeepseal’s picture

Neither the warning message nor the white screens have re-occurred and I cannot reproduce them. You might wish to close this issue. Many thanks.

infojunkie’s picture

Status: Active » Closed (fixed)

Glad to hear it!