Last modified: 2013-04-09 12:06:26 UTC
I have change from mw 1.90.4 to 2.20.3. Semantic Forms Vers. 2.5.2 http://kubb.kubbwiki.de/index.php/Spezial:Version Now i get the Fatal error: Call to a member function getNsText() on a non-object in / ... /extensions/SemanticForms/includes/SF_Utils.php on line 43 when i open a article with Formular or wil create it. All article are into Namespace (Main) I see no Error into SF_Utils.php Line 43 [code] 42 public static function titleString( $title ) { 43 $namespace = $title->getNsText(); 44 if ( $namespace !== '' ) { 45 $namespace .= ':'; 46 } [/Code] Its's a bug? cu Bastor
Hi Bastor, By any chance, do you have either of the following set in LocalSettings.php? $sfgUseFormEditPage = true; $sfgCacheFormDefinitions = true;
i have now check all combination of $sfgUseFormEditPage = true; $sfgCacheFormDefinitions = true; same error :-(
Hi - actually, I thought one of those two might be *causing* the problem, but in any case, that answers the question. I have another question: what is the form that is meant to edit this page? And where is the connection between this page and that form defined? I don't see a connection defined in either the page's categories, or its namespace.
Hi, under 1.9 (www.kubbwiki.de) its running under 2.2 (kubb.kubbwiki.de)its have the Problem. No change in my Code/way, Hardware, Setup same in both Versions. ??? very mystic for me :) shortinfo as example: ##################### Articel about teams, create over -------------------------------- [[Form:NewTeam| Neues Team eintragen]]| ################# Form: Formular:NewTeam ----------------- ... {{#forminput:form=NewTeam}} ... {{{for template|Infobox_Team2}}} {| class="formtable" ... ################# Template: Vorlage:Infobox Team2 ----------------- ... [[Kategorie:NewTeam]] ... ################ Articel: BerlinCS ----------------- {{Infobox_Team2 |Teamname=BerlinCS ... }} ################ Category: NewTeam ----------------- This category uses the form [[Hat Standardformular::NewTeam]].
By "1.9" and "2.2" I assume you mean 1.19 and 1.20. Anyway, I got confused about the category-to-form relationships because I only looked at the page for "Attribut:Has default form", not for "Attribut:Hat Standarformular", and your wiki has both. And actually, now I think that might be causing this problem. But I'm not sure. Could you help with the debugging? The function that crashes, SFUtils::titleString(), is called in two different places, line 399 of /includes/SF_Utils.php and line 194 of /includes/SF_FormEditAction.php, and I don't know which is the call that's happening here. Could you put in a little print statement above both calls, and let me know which one is causing the crash?
I have send you a mail, but now i see differnz under /SF_Utils.php i get wrong two pagename of other page under /SF_FormEditAction.php i get right form and right pagename i think a table is defect, but i have no idea, what table its wrong.
Database manual new import same error :-(
Hi, okay - now we're getting somewhere; the issue is coming when it tries to get "values from category". Could you clarify what you mean by "i get wrong two pagename of other page", though? Do you happen to know what the values are for $row['page_namespace'] and $row['page_title'] right before it crashes?
http://kubb.kubbwiki.de/index.php?title=Alfa-kubbarna&action=formedit SF_Utils $row['page_namespace']; =0 $row['page_title']; =Puesselbueren $cur_title ; =Puesselbueren $cur_value ; =Puesselbueren
Hi - are you sure those are the values right before it crashes? If titleString() had crashed, $cur_value shouldn't even be getting set.
Thats the data, i have send you login data, you can check it directly .
I haven't actually gotten any emails from you - what address are you sending them to?
yaron57@gmail.com
Ah. Well, that's my main email address, but I'm not getting the emails; I don't see them in my spam folder either.
Oh, look now please
Okay, this time I got it!
Hi - after some testing, I think I know the cause of the error: the categories "Allespieler" and "Spieler" are subcategories of one another, which gets the SF code into an infinite loop when it goes to get all the pages in the category, for autocompletion. Why that leads to this specific error message, I don't know, but if you fix that problem, the error should go away.
I'm marking this as "invalid" (no offense intended). Feel free to re-open if there's still an issue.
This actually turned out to be caused not by the category loop, but by a "phantom page", that belonged to a namespace that no longer exists. I fixed handling for this in the code, so I'm marking it as "fixed".