Invalid json string

Re: Invalid json string

by rob wypych -
Number of replies: 0


Hello,

I'm having a similar issue with Moodle 2.4 when attempting to load a file from OwnCloud via WebDav repostory. The Web Dav is set up correctly (using the same path one can asscess it through web browsers).

The error is as follows:

Invalid JSON string<pre> Warning: fsockopen(): unable to connect to [web address here]:80 (Unable to find the socket transport "h t t p" - did you forget to enable it when you configured PHP?) in /home1/ilseccou/public_html/vlp/lib/webdavlib.php on line 163 {"dynload":true,"nosearch":true,"nologin":true,"path":[{"name":"WebDAV","path":"","icon":"h t t p:\/\/[web address here]\/vlp\/theme\/image.php\/brick\/core\/1366341350\/f\/folder-24"}],"list":[],"repo_id":5}</pre>

And here is the content of line 163:

$this->sock = fsockopen($this->_socket. $this->_server, $this->_port, $this->_errno, $this->_errstr, $this->_socket_timeout);

 

I wil appreciate a solution to this issue.

Thanks in advance.

Rob