Forums | Mahara Community
Developers
/
Can't insert a record
06 December 2010, 15:04
Hi Everyone,
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.
TIA,
Linuca.
07 December 2010, 16:49
Have you defined INTERNAL constant and required the 'init.php' file?
Saludos.
Iñaki.
07 December 2010, 19:13
It worked!
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.
Gracias Iñaki!
08 December 2010, 9:48
Hi Flor,
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 :-)
Saludos.
Iñaki.