Windows Share access (AKA Network Drive Access, SMB Web Client)
Maintained by
Guy Thomas
Access windows shares via a Moodle web interface.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
##### START DEBUG MESSAGE #####
file: class_smbwebclient.php
function: Debug
line: 223
Path =
##### END DEBUG MESSAGE #####
##### START DEBUG MESSAGE #####
file: class_smbwebclient.php
function: Debug
line: 1513
file: class_smbwebclient.php
function: _ParseSmbClient
line: 1495
file: class_smbwebclient.php
function: _SmbClient
line: 1242
EXEC CMD ATTEMPT 0 : /usr/bin/smbclient '//domain/FileStore' -c 'dir' -D 'UserData/Staff/username/Documents' -U 'domain/username%****' -d 0 -O 'TCP_NODELAY IPTOS_LOW$
[smbclient]
Domain=[domain] OS=[Windows Server 2012 Datacenter 9200] Server=[Windows Server 2012 Datacenter 6.2]
cd \UserData\Staff\username\Documents\: NT_STATUS_PATH_NOT_COVERED
[/smbclient]
##### END DEBUG MESSAGE ####
There seems to be a small problem if you view/create an empty folder in that the dropdown navigation is not displayed (Version 2013090300), this was working in the previous version we used (2012030612).
However the following tweak to the source code seems to resolve the problem, comment out line 773 - $actionbar = $this->ViewForm ($this->type, $style, $headers); and change line 724 from “$line= ‘ ‘; to $line= $this->ViewForm ($this->type, $style, $headers);
Is there any reason not to make these changes to the source code?
Regards
Chris
I've installed this block and managed to successfully configure it on our Windows based server and when I click the share links in the block I correctly see a directory listing. However, the links associated with all of the files and folders point to "C:\blocks\smb_web_client..." rather than my correct wwwroot. I've even tried manually going through all the php files and replacing dynamic calls to $CFG->wwwroot into static values pointing to the full web address, but this seems to have no effect. Is there any reason why this is happening and is there an easy fix?
Thanks