Forums | Mahara Community
Can't insert a record
06 December 2010, 3:04 PM
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, 4:49 PM
Have you defined INTERNAL constant and required the 'init.php' file?
07 December 2010, 7:13 PM
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 AM
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 :-)