From: teo204 <d....@gm...> - 2009-07-07 15:00:02
|
Hi, i'm trying to build up a semantic wiki with a relation between two pages (one to many) -> there are projects and tasks. Tasks belongs to a project. The problem was to make the page name of tasks unique. In example: Each project would propably have a task called "Testing" or "Implementing". I've read the article about the "The one-step process". Principally it is exactly the feature i was after. So i've added following line to my form: {{{info|page name=<"my templates name"["some property in this template"] - <unique number;start=1>}}} So when i call the form with ...Special:AddData/ArbeitspaketFormular?"my Template"["a property of the template"]="a value for this property" it does work but when i try to create the page over this form the following error occurs and skips the creation of the page. Fatal error: Call to a member function exists() on a non-object in /array/var/www/apfel/smw/extensions/SemanticForms/specials/SF_AddData.php on line 167 I can't imagine that this is a bug and i'm the first one who has found it because this feature is surely used by a lot of people out there. So i'm wondering what i did wrong. thx in advance for any help! teo -- View this message in context: http://www.nabble.com/Error-on-creating-unique-pages-with-Semantic-Forms-tp24373845p24373845.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |
From: Yaron K. <ya...@gm...> - 2009-07-13 03:03:31
|
Hi, The problem could be because you're missing a bracket - if what you have indeed looks like: {{{info|page name=<"my templates name"["some property in this template"] - <unique number;start=1>}}} ...then you need a closing bracket after '"some property in this template"]'. Semantic Forms should still be handling the problem better, though. If that's not the issue: what versions of SF, SMW and MW ar you using? -Yaron On Tue, Jul 7, 2009 at 9:58 AM, teo204 <d....@gm...> wrote: > > Hi, > > i'm trying to build up a semantic wiki with a relation between two pages > (one to many) -> there are projects and tasks. Tasks belongs to a project. > The problem was to make the page name of tasks unique. In example: Each > project would propably have a task called "Testing" or "Implementing". > I've read the article about the "The one-step process". Principally it is > exactly the feature i was after. > So i've added following line to my form: > > {{{info|page name=<"my templates name"["some property in this template"] - > <unique number;start=1>}}} > > So when i call the form with ...Special:AddData/ArbeitspaketFormular?"my > Template"["a property of the template"]="a value for this property" it does > work but when i try to create the page over this form the following error > occurs and skips the creation of the page. > > Fatal error: Call to a member function exists() on a non-object in > /array/var/www/apfel/smw/extensions/SemanticForms/specials/SF_AddData.php > on > line 167 > > I can't imagine that this is a bug and i'm the first one who has found it > because this feature is surely used by a lot of people out there. So i'm > wondering what i did wrong. > > thx in advance for any help! > teo > -- > View this message in context: > http://www.nabble.com/Error-on-creating-unique-pages-with-Semantic-Forms-tp24373845p24373845.html > Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |