? Pending
Pull Request for # 11891

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
2 Sep 2016

Pull Request for Issue #11891 .

Summary of Changes

The libraries/legacy tree isn't being included in the install app because its code was rewritten to not be dependent on it. Most likely this has been an issue since the PR that removed the "if JError exists use it for error handling else throw an Exception" logic from JMail. The error handling is trying to call a non-existing class.

Change installation/application/framework.php to require import.legacy.php instead of import.php.

Thanks @mbabker #11891 (comment)

Testing Instructions

Installation succes should be independant of the setting send Email Configuration option.

Actual result

No matter which of the install-options you choose you will be getting this same Finalisation-screen until you set the send Email Configurations to No.

Documentation Changes Required

None

avatar zero-24 zero-24 - open - 2 Sep 2016
avatar zero-24 zero-24 - change - 2 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Category Installation
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 2 Sep 2016
Rel_Number 0 11891
Relation Type Pull Request for
avatar slibbe slibbe - test_item - 3 Sep 2016 - Tested unsuccessfully
avatar slibbe
slibbe - comment - 3 Sep 2016

I have tested this item ? unsuccessfully on f7801b0

With the proposed "add $return = false;" in line 133 of libraries/joomla/mail/mail.php and having set send Email Configuration to yes, the only way to get past the Finalisation screen is turning on the mail-function on the server.


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

avatar slibbe
slibbe - comment - 3 Sep 2016

However, when looking at the changed files in the PR, I think that either the test instructions are not well written or I didn't get it.
I will test another time (with mail function disabled and changed files.

avatar slibbe
slibbe - comment - 3 Sep 2016

Well, I have no idea how this fits in this PR testing infrastructure.

However, when making proposed changed in installation/application/framework.php and installation/controller/install/email.php and not adding $return = false; to libraries/joomla/mail/mail.php on line 133 , also making sure that the mail-function is disabled on the server, then it works as expected.
So a succes I would say.

avatar zero-24
zero-24 - comment - 3 Sep 2016

Yes sorry for the confusing ;) you need to install this branch (with the changed file). The $return = false just make sure you got the error you can also disable the mail function.

I can rewrite the testinstructions if im back to me PC ;)

avatar zero-24 zero-24 - edited - 3 Sep 2016
avatar zero-24
zero-24 - comment - 3 Sep 2016

@slibbe i have updated the test instructuion can you retest and mark as successful it it is successfull? Thanks.

avatar slibbe slibbe - test_item - 3 Sep 2016 - Tested successfully
avatar slibbe
slibbe - comment - 3 Sep 2016

I have tested this item successfully on f7801b0

Now works as expected.

In case the mail cannot be sent, no warning is shown. I think it's always been that way even though a warning in the backend would be nice.


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

avatar zero-24
zero-24 - comment - 3 Sep 2016

In case the mail cannot be sent, no warning is shown. I think it's always been that way even though a warning in the backend would be nice.

I'm not sure i understand you? There is a button to test mail sending in the backend?

avatar mbabker
mbabker - comment - 3 Sep 2016

There's no message saying the mail failed to send if JMail returns a
Boolean value because the JError default handling ignores errors and it's
not throwing an Exception to trigger the catch block in the code sending
the mail. So you'd need an extra check if the result of JMail::Send() !==
true.

On Saturday, September 3, 2016, zero-24 notifications@github.com wrote:

In case the mail cannot be sent, no warning is shown. I think it's always
been that way even though a warning in the backend would be nice.

I'm not sure i understand you? There is a button to test mail sending in
the backend?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11895 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoY8dSm6RtN6-yQarqeLCmPIJOhznks5qmcdwgaJpZM4Jz7Lx
.

avatar zero-24
zero-24 - comment - 3 Sep 2016

@mbabker do you mean something like 3bc5c62

avatar zero-24 zero-24 - change - 22 Sep 2016
Milestone Added:
avatar zero-24 zero-24 - change - 29 Sep 2016
Milestone Added:
avatar zero-24 zero-24 - change - 29 Sep 2016
Milestone Removed:
avatar brianteeman brianteeman - change - 17 Oct 2016
Milestone Removed:
avatar brianteeman brianteeman - change - 17 Oct 2016
Milestone Added:
avatar brianteeman brianteeman - change - 17 Oct 2016
Milestone Added:
avatar brianteeman brianteeman - change - 17 Oct 2016
Milestone Removed:
avatar zero-24
zero-24 - comment - 25 Oct 2016

If you don't want to fack the code you can also try to install: https://github.com/zero-24/joomla-cms/archive/install_mail.zip without any changes. If that works we are good to go here as we have another successful test for the other aspect allready. Thanks!

avatar zero-24 zero-24 - change - 31 Oct 2016
The description was changed
avatar zero-24
zero-24 - comment - 31 Oct 2016

Would be great to get a seccond test here ? As this fixes a bug and we just need to make sure a normal install still works..

avatar andrepereiradasilva andrepereiradasilva - test_item - 31 Oct 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Oct 2016

I have tested this item successfully on a3228a5

1. Used latest staging and applied patch with patchtester
2. Deleted configuration.php
3. Added $return = false; here: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/mail/mail.php#L133
4. tried to install joomla on the pre final step make sure you enable mail sending of the configuration.

Installation went fine. So, works as described


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

avatar zero-24 zero-24 - change - 31 Oct 2016
The description was changed
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 31 Oct 2016
Status Ready to Commit Pending
avatar zero-24 zero-24 - edited - 31 Oct 2016
avatar zero-24
zero-24 - comment - 31 Oct 2016

RTC cc @rdeutz


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

avatar zero-24
zero-24 - comment - 31 Oct 2016
avatar rdeutz rdeutz - change - 31 Oct 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-31 16:14:59
Closed_By rdeutz
avatar rdeutz rdeutz - close - 31 Oct 2016
avatar rdeutz rdeutz - merge - 31 Oct 2016
avatar rdeutz rdeutz - reference | 8e8a5a3 - 31 Oct 16
avatar rdeutz rdeutz - merge - 31 Oct 2016
avatar rdeutz rdeutz - close - 31 Oct 2016
avatar zero-24 zero-24 - head_ref_deleted - 31 Oct 2016
avatar zero-24
zero-24 - comment - 31 Oct 2016

❤️

Add a Comment

Login with GitHub to post a comment