I have installed the Web Demo on Windows. I have installed PHP and enabled cURL.
But once I click the "default" link on the Web Demo front page, instead of any useful data I see plenty of pink boxes with the following content:
Error: HTTP 0
http://192.168.1.109:10001/
Why is this?
I have started my chain with this command:
C:\Users\Morten.Helles.EVERYMATRIX>multichaind chain1 -datadir=%MultiChain_DataDir_Server1% -port=10000 -rpcport=10001 -daemon
MultiChain Core Daemon build 1.0 alpha 26 protocol 10006
Looking for genesis block...
Genesis block found
Other nodes can connect to this node using:
multichaind chain1@192.168.1.109:10000
Node started
And it works, e.g.:
C:\Users\Morten.Helles.EVERYMATRIX\MultiChain\data\server1\chain1>multichain-cli chain1@192.168.1.109:10000 -datadir=%MultiChain_DataDir_Server1% -rpcport=10001 liststreampublishers stream1
{"method":"liststreampublishers","params":["stream1"],"id":1,"chain_name":"chain1"}
[
{
"publisher" : "1DG395cjPRSZmuoZhFuVrFBDEuyB2vsqdmBr78",
"items" : 1,
"confirmed" : 1
},
{
"publisher" : "1UkpWHc1UCPwe9me28UrVt3ugznb9nsuPqCYKg",
"items" : 2,
"confirmed" : 2
}
]
My web-demo/config.txt reads:
default.name=default # name to display in the web interface
default.rpchost=192.168.1.109 # IP address of MultiChain node
default.rpcport=10001 # see rpc-port from chain parameters
default.rpcuser=multichainrpc # username for RPC from multichain.conf
default.rpcpassword=GcXS<...> # password for RPC from multichain.conf
In the PHP output log, I see a few issues, e.g.
[Tue Dec 13 10:01:34 2016] PHP Notice: Undefined index: address in C:\Users\Morten.Helles.EVERYMATRIX\MultiChain\web-demo\page-permissions.php on line 34
[Tue Dec 13 10:03:43 2016] PHP Notice: Undefined variable: receiveaddresses in C:\Users\Morten.Helles.EVERYMATRIX\MultiChain\web-demo\page-send.php on line 152
[Tue Dec 13 10:03:43 2016] PHP Warning: Invalid argument supplied for foreach() in C:\Users\Morten.Helles.EVERYMATRIX\MultiChain\web-demo\page-send.php on line 152