J4 Issue ?
avatar infograf768
infograf768
13 Nov 2018

Steps to reproduce the issue

To test on 4.0-dev branch
Modify version.php line 63 to const EXTRA_VERSION = 'alpha4-dev';
Go to database page and Fix database.
Then in Joomla Update Options choose Custom URL and add this link:
https://update.joomla.org/core/nightlies/next_major_list.xml
Save Options.

Display the Joomla Update page index.php?option=com_joomlaupdate

Result

[13-Nov-2018 11:32:47 Europe/Berlin] PHP Warning: Creating default object from empty value in /Applications/MAMP/htdocs/installmulti/joomla40/libraries/src/Updater/Update.php on line 299

Plus weird informations like "Unknown Error" for language packs.
screen shot 2018-11-13 at 11 33 02

avatar infograf768 infograf768 - open - 13 Nov 2018
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Nov 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Mar 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Mar 2019
Category com_joomlaupdate
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 Apr 2019
avatar brianteeman
brianteeman - comment - 20 May 2019

Is this still reproducible. I followed the instructions (except for changing alpha4 to alpha14) but I didnt get anything like your results

avatar Quy
Quy - comment - 23 May 2019

I can reproduce with the instructions provided using alpha4-dev. Install the French language pack and check again under 3rd Party Extensions Pre-Update Check .

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019

closed for Reasons stated above. Please reopen if needed.

avatar franz-wohlkoenig franz-wohlkoenig - close - 23 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - close - 23 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-05-23 03:50:56
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - reopen - 23 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2019
Status Closed New
Closed_Date 2019-05-23 03:50:56
Closed_By franz-wohlkoenig
avatar Quy Quy - change - 23 May 2019
Status New Confirmed
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 23 May 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 23 May 2019

Set to "open" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23063

avatar Quy
Quy - comment - 23 May 2019

Should be opened since it is reproducible.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23063.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019

too early on my side, apologize.

avatar brianteeman
brianteeman - comment - 23 May 2019

I can reproduce with the instructions provided using alpha4-dev

But can you reproduce with the current j4?

avatar ReLater
ReLater - comment - 23 May 2019

But can you reproduce with the current j4?

Yes.

Due to warning: PHP Warning: Creating default object from empty value in /libraries/src/Updater/Update.php on line 299

The question is now:
See lines here: https://github.com/joomla/joomla-cms/blob/4.0.0-alpha9/libraries/src/Updater/Update.php#L294-L309

  • Why is $this->currentUpdate empty?
  • Is it OK that it's empty but we should check that via if (!isset($this->currentUpdate)) before going on?
// For everything else there's...the default!
default:
	$name = strtolower($name);

	if (!isset($this->currentUpdate))
	{
		$this->currentUpdate = new \stdClass;
	}

	if (!isset($this->currentUpdate->$name))
	{
		$this->currentUpdate->$name = new \stdClass;
	}
  • Or is something wrong with the language packages?
avatar infograf768
infograf768 - comment - 31 May 2019

Looks like there were some changes recently.
Without modifying the version. I still get the error
PHP Warning: Creating default object from empty value in /Applications/MAMP/htdocs/joomla40/libraries/src/Updater/Update.php on line 299
Looks like the empty value comes from the language packs (which are 3.x packs) as I have 3 packs.
but no more Unknown Error in the Compatible column.
Screen Shot 2019-05-31 at 08 51 30

After modifying the version to
const EXTRA_VERSION = 'alpha9-dev';
same result.

avatar ReLater
ReLater - comment - 26 Jun 2019

I've made some additions to testing instructions in #23063 (comment)

avatar alikon
alikon - comment - 26 Jun 2019

if i try to install from url that language pkg i got
Screenshot from 2019-06-26 19-30-45

avatar ReLater
ReLater - comment - 26 Jun 2019

Did you use de-DE_joomla_lang_full_4.0.0v1-alpha1.zip (451 kB)?

There's also a FULL-Joomla package (18.1 MB). Maybe you took that?

26-06-_2019_19-42-32

avatar alikon
alikon - comment - 26 Jun 2019
avatar ReLater
ReLater - comment - 26 Jun 2019

I use the current nightly. Wednesday, 26 June 2019 02:01:00 UTC and have no installation issues with that de-de package.

But I think there's a typo in plugin finder.php
impode( instead of implode(

Plugin "Extension - Finder" is not activated in my Joomla.

avatar ReLater
ReLater - comment - 26 Jun 2019

I'll make a pr for zhe impode thing

avatar ReLater
ReLater - comment - 26 Jun 2019

I'll make a pr for zhe impode thing

See: #25339

avatar alikon
alikon - comment - 27 Jun 2019

not sure it is the right way.....
give it a chance #25352

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Jun 2019

Closed as having Pull Request #25352

avatar franz-wohlkoenig franz-wohlkoenig - close - 27 Jun 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jun 2019
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2019-06-27 18:34:41
Closed_By franz-wohlkoenig

Add a Comment

Login with GitHub to post a comment