When I go to the admin panel and press the 'update and check' button, the first time, it goes of without a hitch, the second time it gives the followin error:
Fatal error: Call to a member function fetch_object() on a non-object in /var/www/emoncms/Modules/admin/update_class.php on line 67
which is part of function u0002.
It wants to do the following select on the input-table:
"SELECT userid,id,processList,time,record FROM input"
However, the table definition nows of no field 'record', and checking the create schema of the table, that seems to be correct:
Error in admin/update_class.php?
Submitted by Hertog on Sat, 15/03/2014 - 21:48When I go to the admin panel and press the 'update and check' button, the first time, it goes of without a hitch, the second time it gives the followin error:
Fatal error: Call to a member function fetch_object() on a non-object in /var/www/emoncms/Modules/admin/update_class.php on line 67
which is part of function u0002.
It wants to do the following select on the input-table:
"SELECT userid,id,processList,time,record FROM input"
However, the table definition nows of no field 'record', and checking the create schema of the table, that seems to be correct:
Modules/input/input_schema.php
$schema['input'] = array(
'id' => array('type' => 'int(11)', 'Null'=>'NO', 'Key'=>'PRI', 'Extra'=>'auto_increment'),
'userid' => array('type' => 'int(11)'),
'name' => array('type' => 'text'),
'description' => array('type' => 'text','default'=>''),
'nodeid' => array('type' => 'int(11)'),
'processList' => array('type' => 'text'),
'time' => array('type' => 'datetime'),
'value' => array('type' => 'float')
);
Which of the two is correct, the update statement or the create statement? Which of the two record names is being used in the rest of the CMS?
Regards,
Gert-Jan
p.s. no idea if this is the correct place to ask these questions, if not, should I use githup to report it?