Jump to content

Topic on Extension talk:Semantic Tasks/archive 2

Error in MW 1.23.x and SMW 2.3

5
Summary by Kghbln

The suggested and tested fix was added with https://gerrit.wikimedia.org/r/#/c/284476/ Use REL1_27 for best experience.

Krabina (talkcontribs)

Upon saving a page that assignes a value to the property Assigned to:: the follwing error is displayed.

Fatal error: Call to a member function getEmail() on a non-object in .../extensions/SemanticTasks/SemanticTasks.classes.php on line 293

Only when I deactivate the extension I can save the page.

NancyGertrudiz (talkcontribs)

I think this issue is more related with mail configuration and not to the extension.

Fustbariclation (talkcontribs)

I'm getting the same error. Also when I save something. It also goes away if I remove the extension.

Tosfos (talkcontribs)

Please try the following change in that file, at around line 179:

                        $assignee_name = $task_assignees->getNextText( SMW_OUTPUT_WIKI );
                        /** @todo Create User object */
                        $assignee_name = explode( ":", $assignee_name );
+                       
+                       if ( !isset( $assignee_name[1] ) ) {
+                               return array();
+                       }
                        $assignee_name = $assignee_name[1];
Kghbln (talkcontribs)