?
avatar PhocaCz
PhocaCz
12 Jan 2019

Steps to reproduce the issue

When you open some view in administration which is based on JViewLegacy (external component views), it does not load data from model

Expected result

Data from model are loaded.

Actual result

Joomla! 4.0.0-alpha6 - everything works as expected.
Joomla! 4.0.0-alpha7-dev - data are not loaded.

You can test it with some external component view or build your own:

jimport( 'joomla.application.component.view' );

class SomeView extends JViewLegacy
{
	protected $state;

	function display($tpl = null) {

		$this->state		= $this->get('State');
		dump($this->state);
	}
}

produces in Alpha6
OK

but in Alpha7 (latest build created by composer/npm):
OK

Data from model are not loaded at all

System information (as much as possible)

Joomla! 4.0.0-alpha6 - works OK ✔️
Joomla! 4.0.0-alpha7-dev (latest build created by composer/npm) - data are not loaded. ?

Joomla! Version 4.0.0-alpha7-dev
PHP Version 7.2.4
Identity user
Response 200
Template atum
Database ServermysqlVersion5.5.5-10.2.6-MariaDBCollationutf8mb4_unicode_ciConn Collationutf8_general_ci
avatar PhocaCz PhocaCz - open - 12 Jan 2019
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Jan 2019
avatar stankurd
stankurd - comment - 12 Jan 2019

maybe this is the same i have this bug
An error has occurred.
Call to a member function getName() on boolean

| Function | Location

1 | () | JROOT\libraries\src\MVC\View\AbstractView.php:189

avatar wilsonge
wilsonge - comment - 12 Jan 2019

I have no clue why. But #23525 seems to fix the extension I tested with

avatar wilsonge wilsonge - change - 12 Jan 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-01-12 21:44:01
Closed_By wilsonge
avatar wilsonge wilsonge - close - 12 Jan 2019
avatar PhocaCz
PhocaCz - comment - 13 Jan 2019

Thank you @wilsonge , this did the trick.

Add a Comment

Login with GitHub to post a comment