https://bugzilla.wikimedia.org/show_bug.cgi?id=37123

       Web browser: ---
             Bug #: 37123
           Summary: [SWL] [Patch] 0.1; Catchable fatal error: Argument 1
                    passed to SMWDIWikiPage::newFromTitle()
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticWatchlist
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Created attachment 10656
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10656
Add a check in ApiQuerySemanticWatchlist.php to bailout or continue

Error message

Catchable fatal error: Argument 1 passed to SMWDIWikiPage::newFromTitle() must
be an instance of Title, null given, called in
...\extensions\SemanticWatchlist\includes\SWL_ChangeSet.php on line 80 and
defined in
...\extensions\SemanticMediaWiki\includes\dataitems\SMW_DI_WikiPage.php on line
137

Problem analysis
A watched page has been deleted and Title::newFromID( $set->edit_page_id )
fails because the page does not exists any more.

Solution 
Check before SWLChangeSet::newFromDBResult( $set ) is called if
Title::newFromID( $set->edit_page_id ) results in an object or is empty.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to