?
avatar yvesh
yvesh
6 Mar 2016

Steps to reproduce the issue

Create a simple Editor XTD Plugin and call a page where an editor is displayed (like com_content edit)

class PlgButtonSample extends JPlugin
{
       public function onDisplay($name, $asset, $author)
    {
           // Can be also a string or boolean, it always breaks the jform
            return;
        }
}

Expected result

Nothing should be displayed

Actual result

An exception is thrown: (on getInput() where the plugins are loaded)

Call to a member function get() on null

System information (as much as possible)

Staging, php7

Additional comments

@wilsonge This is a regression and 3.5 blocker, as it is going to break any old editor plugins which does not return an array or object..

Probably related to b50885b

avatar yvesh yvesh - open - 6 Mar 2016
avatar yvesh yvesh - change - 6 Mar 2016
Title
XTD Editor plugin breaks when you don't return an object or array
XTD Editor plugin produces an exception when you don't return an object or array
avatar brianteeman brianteeman - change - 6 Mar 2016
Labels Added: ?
avatar infograf768
infograf768 - comment - 6 Mar 2016

@nonumber
Please look

avatar yvesh yvesh - reference | b50885b - 6 Mar 16
avatar nonumber nonumber - reference | 85f82b1 - 6 Mar 16
avatar nonumber
nonumber - comment - 6 Mar 2016

This should fix it: #9317

avatar infograf768
infograf768 - comment - 6 Mar 2016

@yvesh

Please test #9317

avatar yvesh
yvesh - comment - 6 Mar 2016

@infograf768
Done, #9317 fixes it

avatar brianteeman brianteeman - close - 6 Mar 2016
avatar brianteeman
brianteeman - comment - 6 Mar 2016

Closed as #9317 has been merged

avatar brianteeman brianteeman - change - 6 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-06 17:02:37
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment