? ? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
30 Sep 2016

Pull Request for 3.7.x

Summary of Changes

Based on the Joomla 4 Manifesto by @wilsonge https://developer.joomla.org/news/658-joomla4-manifesto.html i have created a postinstall warning to all not supported versions.

Testing Instructions

  • apply this patch Fire this SQL statment (replace #__ by your prefix)
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_TITLE', 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/joomla40checks.php', 'admin_postinstall_joomla40checks_condition', '3.7.0', 1);

If you have a unspported version or use mssql you get a postinstall like this:

image

If you want you can test this but you have no unsupported version you can change e.g. the PHP Version check to version_compare(PHP_VERSION, '8.5.9', 'lt');

Documentation Changes Required

None

avatar zero-24 zero-24 - change - 30 Sep 2016
Milestone Added:
avatar zero-24 zero-24 - open - 30 Sep 2016
avatar zero-24 zero-24 - change - 30 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2016
Category Administration Components SQL Postgresql MS SQL Language & Strings Installation
avatar wilsonge
wilsonge - comment - 1 Oct 2016

Hmm I'm unsure what to do about this. I think it's good. But these were provisional and not final requirements..... as per the manifesto. These versions are definitely going to be unsupported. But don't want people on higher req's to feel like they are 100% safe :/

avatar zero-24
zero-24 - comment - 1 Oct 2016

They are save based on the last data / decisions we currently have. Btw. There is no message "you are save" there is just a message to unsupported versions that they are not save.

avatar zero-24
zero-24 - comment - 1 Oct 2016

Maybe we can fix the wording to make this clear?

avatar brianteeman
brianteeman - comment - 1 Oct 2016

Without a definitive decision there really isnt anything that can be done

avatar dgt41
dgt41 - comment - 1 Oct 2016

can you also mixin:

function is_32bit(){
  return PHP_INT_SIZE === 4;
}

and if true (32bit version of PHP) warn about strtotime max value is year 2038

Known unix bug: https://en.wikipedia.org/wiki/Year_2038_problem

avatar mbabker
mbabker - comment - 1 Oct 2016

1) Not appropriate for this PR
2) Do we really need a message for the 2038 problem?

avatar dgt41
dgt41 - comment - 1 Oct 2016

@mbabker could be done in the requirements page as an asterisk or side note. Joomla most likely will be served from a linux machine, so informing people about bugs that might occur due to this fact is not a bad idea, I think.
So the answer is short answer is: probably not, a simple note in requirements should be sufficient.

avatar zero-24
zero-24 - comment - 1 Oct 2016

The point is lets tell the i still run PHP 5.3 etc that Joomla 4 will be not supported on this platform.

Without a definitive decision there really isnt anything that can be done

I agree with your points but who can / would take such a final decision and when? At the release date of Joomla 4 or a week before? I personaly think we should tell the users our planings.
I just do that what i personaly would expect as user ;) -> Let me know if you know something about the planned feature.

But maybe i'm wrong and just try to overcomunitcate that, i'm not a marketing person ;).

avatar brianteeman
brianteeman - comment - 1 Oct 2016

@zero-24 you are absolutely correct about the need for this message.

avatar mbabker
mbabker - comment - 1 Oct 2016

It should be made clear in the message that these minimums are not finalized and may change before reaching the 4.0 beta (they shouldn't change after that and if they do there's probably been a major screwup in our choices). With that I'd say the message is just fine as is.

avatar wilsonge
wilsonge - comment - 1 Oct 2016

The 2038 bug is irrelevant for this PR.

Ok if it's made clear that these requirements may change before 4.0 beta then let's go with it :)

avatar zero-24
zero-24 - comment - 1 Oct 2016

Maybe we can extend the Text with something like this: This are the currently planed minimum requirements that can be raised until the first Beta of 4.0 to be sure we would suggest you to use (PHP(7.0),mysql,postgresql version suggestions here).

or without the suggestions: "This are the currently planed minimum requirements that can maybe raised until the first Beta of 4.0 if we have more information this check will be updated."

avatar brianteeman
brianteeman - comment - 1 Oct 2016

That will pretty much guarantee that the message is ignored.

avatar zero-24
zero-24 - comment - 4 Oct 2016

Ok so we stay with the current message and we can get tests here ?

avatar brianteeman brianteeman - test_item - 9 Oct 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 9 Oct 2016

I have tested this item successfully on cfe0452


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

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Can´t we just add something to the PHP nag Message?
https://issues.joomla.org/tracker/joomla-cms/11498


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

avatar mbabker
mbabker - comment - 28 Oct 2016

Different purposes.

The PHP nag warns explicitly against running unsupported PHP versions from the PHP project or advises to upgrade when it is getting close to its end of support. That should continue to live on in the Joomla code base as long as Joomla's based on PHP.

This is a message specifically addressing the 4.0 minimum support requirements.

avatar zero-24
zero-24 - comment - 28 Oct 2016

The php nag message is for unsupported by php the postinstall is for unsupported php and mysql etc configs by joomla.

avatar brianteeman brianteeman - change - 29 Oct 2016
Labels Added: ?
Removed: ?
avatar conconnl
conconnl - comment - 4 Nov 2016

I have tested this item successfully on cfe0452

Tested successfully at PBF NL


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

avatar conconnl conconnl - test_item - 4 Nov 2016 - Tested successfully
avatar brianteeman brianteeman - change - 4 Nov 2016
The description was changed
Status Pending Ready to Commit
Labels
avatar brianteeman brianteeman - change - 4 Nov 2016
Labels
avatar brianteeman brianteeman - edited - 4 Nov 2016
avatar brianteeman
brianteeman - comment - 4 Nov 2016

RTC


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

avatar rdeutz rdeutz - change - 4 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-04 13:04:19
Closed_By rdeutz
avatar rdeutz rdeutz - close - 4 Nov 2016
avatar rdeutz rdeutz - merge - 4 Nov 2016
avatar rdeutz rdeutz - reference | b9ec7f3 - 4 Nov 16
avatar rdeutz rdeutz - merge - 4 Nov 2016
avatar rdeutz rdeutz - close - 4 Nov 2016
avatar zero-24 zero-24 - head_ref_deleted - 4 Nov 2016
avatar zero-24
zero-24 - comment - 4 Nov 2016

? Thanks!

Add a Comment

Login with GitHub to post a comment