Forums | Mahara Community
Can't insert a record
06 December 2010, 15:04
I tried to insert a record just like Nigel indicated here: http://mahara.org/interaction/forum/topic.php?id=906
but I didn't succed, I get this error:
Fatal error: Call to a member function MetaColumns() on a non-object in /var/www/mahara/lib/dml.php on line 994
Apparently, it's because the $db object is not instantiated, but I don't know how to solve this.
07 December 2010, 16:49
Have you defined INTERNAL constant and required the 'init.php' file?
07 December 2010, 19:13
I had included the dml.php file, instead of the init.php.
Do you know where can I find this kind of documentation? Because the documentation I've found is really basic.
08 December 2010, 9:48
they only place with that kind of documentation that I know of (apart from the source code) is the developer area in the wiki: http://wiki.mahara.org/Developer_Area
When I don't find anything there, I usually browse the code :-)