^What my page looks like.
For some reason I get this error
PHP Fatal error: Uncaught Error: Call to a member function getHash() on null in /var/www/html/coinpot/application/views/index/index.volt.php:146 Stack trace: #0 [internal function]: unknown() #1 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('../application/...', Array, true) #2 [internal function]: Phalcon\Mvc\View->_engineRender(Array, 'index/index', true, true, NULL) #3 [internal function]: Phalcon\Mvc\View->render('index', 'index', Array) #4 /var/www/html/coinpot/public/index.php(158): Phalcon\Mvc\Application->handle() #5 {main} thrown in /var/www/html/coinpot/application/views/index/index.volt.php on line 146
when loading my page.
I also get a slew of others errors.
[Sat Oct 08 09:35:39.137966 2016] [:error] [pid 24670] [client ] PHP Notice: Trying to get property of non-object in /var/www/html/coinpot/application/controllers/BaseController.php on line 37
[Sat Oct 08 09:35:39.143992 2016] [:error] [pid 24670] [client ] PHP Notice: Undefined variable: pool in /var/www/html/coinpot/application/views/index/index.volt.php on line 101
[Sat Oct 08 09:35:39.144012 2016] [:error] [pid 24670] [client ] PHP Notice: Trying to get property of non-object in /var/www/html/coinpot/application/views/index/index.volt.php on line 101
[Sat Oct 08 09:35:39.144037 2016] [:error] [pid 24670] [client ] PHP Notice: Undefined variable: deposits in /var/www/html/coinpot/application/views/index/index.volt.php on line 134
[Sat Oct 08 09:35:39.144050 2016] [:error] [pid 24670] [client ] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/coinpot/application/views/index/index.volt.php on line 134
[Sat Oct 08 09:35:39.144070 2016] [:error] [pid 24670] [client ] PHP Notice: Undefined variable: pool in /var/www/html/coinpot/application/views/index/index.volt.php on line 146
Lines 136-152 index.volt.php
function decimalPlaces(float,length) {
ret = "";
str = float.toString();
array = str.split(".");
if(array.length==2) {
ret += array[0] + ".";
for(i=0;i<length;i++) {
if(i>=array[1].length) ret += '0';
else ret+= array[1][i];
}
} LINE 146
else if(array.length == 1) {
ret += array[0] + ".";
for(i=0;i<length;i++) {
ret += '0'
}
}