J4 Issue ?
avatar webchun
webchun
22 Jan 2020

Steps to reproduce the issue

Update Joomla using Joomla update using custom update path : https://update.joomla.org/core/nightlies/next_major_list.xml with Write file directly option.
After the update process finished, when I access the dashboard, th layout is broken and returned error message : 'Joomla\Module\LatestActions\Administrator\Helper\LatestActionsHelper' not found

image

Expected result

Dashboard working properly

Actual result

System information (as much as possible)

Joomla ‎4.0.0-beta1-dev

PHP 7.3.11
mysql 8.0.18

Additional comments

avatar webchun webchun - open - 22 Jan 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Jan 2020
avatar webchun webchun - change - 22 Jan 2020
The description was changed
avatar webchun webchun - edited - 22 Jan 2020
avatar alikon
alikon - comment - 22 Jan 2020

update from alpha are still not supported

avatar Quy Quy - change - 22 Jan 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-01-22 11:18:19
Closed_By Quy
avatar Quy Quy - close - 22 Jan 2020
avatar mbabker
mbabker - comment - 22 Jan 2020

I still think that’s a BS policy as right now you are basically telling people to not test J4 as a real website and only use it as a test bed for new features. Maybe one day this project will actually get serious about supporting proper end-to-end development workflows and not telling people to get bent for answering the call to testing.

This may damn well be a legitimate update issue in the 4.0 code. Is it going to be blown off until you release 4.0.1?

avatar Quy Quy - change - 22 Jan 2020
Status Closed New
Closed_Date 2020-01-22 11:18:19
Closed_By Quy
avatar Quy Quy - reopen - 22 Jan 2020
avatar alikon
alikon - comment - 22 Jan 2020

as long we are still in alpha.... shouldn't seems to me a big problem,
anyway, you know that we are very few that shake they hand in the dust, so i've just informed what it is available right now... surely i agree with you that this problem should be resolved as soon as possibile, anyway, we have had the same issue on the 1.x/2.x./3.x

avatar SharkyKZ
SharkyKZ - comment - 22 Jan 2020

This will be an issue updating stable versions if not fixed. It's caused by namespace map not being re-generated when updating Joomla.

avatar alikon alikon - change - 23 Jan 2020
Labels Added: J4 Issue
avatar alikon alikon - labeled - 23 Jan 2020
avatar wilsonge
wilsonge - comment - 23 Jan 2020

We should probably always delete that file on upgrade in the script. We already have the plugin doing it on every extension install.

avatar brianteeman
brianteeman - comment - 31 Jan 2020

Is it enough to just add this to the namespacemap plugin


	/**
	 * Update / Create map on Joomla update
	 *
	 * @param   JInstaller  $installer  Installer instance
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	public function onJoomlaAfterUpdate()
	{
		// Update / Create new map
		$this->fileCreator->create();
	}

avatar wilsonge
wilsonge - comment - 1 Feb 2020

I’m not at a computer now to check - but I’m not aware of an event like that. I think we’d need to trash the file like we do in the plugin but direct in script.php

avatar brianteeman
brianteeman - comment - 1 Feb 2020

@wilsonge I didnt invent it - it already exists ;)

Enjoy the game

avatar alikon
alikon - comment - 20 Mar 2020

maybe a simple & silly solution can be adding

$recreate = new JNamespacePsr4Map;
$recreate ->create();

after https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_admin/script.php#L105

avatar Quy Quy - change - 1 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-01 17:19:24
Closed_By Quy
avatar Quy
Quy - comment - 1 Jul 2020

Closing as the reported issue is no longer reproducible. See #29841 instead.

avatar Quy Quy - close - 1 Jul 2020

Add a Comment

Login with GitHub to post a comment