Summary

When accessing admin/config/system/smtp, errors such as the following are shown:

2: Error

Type php
Date Sunday, November 8, 2015 - 19:18
User admin
Location SITE/admin/config/system/smtp
Referrer
Message User error: Invalid placeholder: !url in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of PATH_TO_SITE/public/core/lib/Drupal/Component/Render/FormattableMarkup.php).
Severity Error

3: Another Error

Type php
Date Sunday, November 8, 2015 - 19:18
User admin
Location SITE/admin/config/system/smtp
Referrer
Message User error: Invalid placeholder: !name in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of PATH_TO_SITE/public/core/lib/Drupal/Component/Render/FormattableMarkup.php).
Severity Error

Original issue

Hi,

The SMTP module doesn't shows a link in the configuration page.

In my logs I've found 3 messages related to this module:

1: Warning

Type page not found
Date Sunday, November 8, 2015 - 19:18
User admin
Location SITE/admin/config/smtp
Referrer
Message /admin/config/smtp
Severity Warning

2: Error

Type php
Date Sunday, November 8, 2015 - 19:18
User admin
Location SITE/admin/config/system/smtp
Referrer
Message User error: Invalid placeholder: !url in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of PATH_TO_SITE/public/core/lib/Drupal/Component/Render/FormattableMarkup.php).
Severity Error

3: Another Error

Type php
Date Sunday, November 8, 2015 - 19:18
User admin
Location SITE/admin/config/system/smtp
Referrer
Message User error: Invalid placeholder: !name in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 240 of PATH_TO_SITE/public/core/lib/Drupal/Component/Render/FormattableMarkup.php).
Severity Error

Comments

bauxsystem created an issue. See original summary.

@baux’s picture

...by the way...

I've accessed the configuration by going to SITE/admin/config/system/smtp and the module sent the test mail... ;-)

laszlo.csongor’s picture

I've created a small patch that solves the placeholder related errors in log.

laszlo.csongor’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: smtp-show_link_in_configuration_page-2611210-3-D8.patch, failed testing.

alvar0hurtad0’s picture

Status: Needs work » Needs review
Related issues: +#2612536: Create some base tests

To prevent the CI crash we need this issue #2612536: Create some base tests committed

Status: Needs review » Needs work

The last submitted patch, 3: smtp-show_link_in_configuration_page-2611210-3-D8.patch, failed testing.

alvar0hurtad0’s picture

Assigned: Unassigned » alvar0hurtad0

I'm Rerolling the patch

alvar0hurtad0’s picture

Assigned: alvar0hurtad0 » Unassigned
Status: Needs work » Needs review
@baux’s picture

In the latest dev version, I don't have the warning message but I still have both errors. The SMTP Authentication Support is visible on the "Configuration" page.

These errors are not shown while in stalling the module, but when accessing the admin/config/system/smtp page.

@baux’s picture

Status: Needs review » Needs work
ptmkenny’s picture

Title: SMTP Module doesn't shows link in the configuration page » "Invalid placeholder: !url" errors when accessing the config page
Issue summary: View changes
estoyausente’s picture

Status: Needs work » Reviewed & tested by the community

@baux Using dev version and applying this patch the error doesn't appear anymore. I think that we can commit this patch without risk.

@baux’s picture

OK, I will test in the next days.

Thank you very much

akishankar’s picture

In the latest dev version, I don't have any warning/error message but I still don't receive any email.
Also, admin/config/system/smtp page shows no error.
Post configuring, I see the following message:

    SMTP module is active.
    A test e-mail has been sent to email-address via SMTP. You may want to check the log for any error messages.
    The configuration options have been saved.

but none of the mails get delivered.

estoyausente’s picture

@akishankar I could test that email is received correctly.

It seems stupid but... have you checked your spam folder? Can you tell us any other information. Right now the module is running correctly in my site, mails are sent and any errors are shown.

mikeegoulding’s picture

This is working for me as well.

laszlo.csongor’s picture

In that case, can we have the patch committed? Thanks.

mpp’s picture

Would be nice to have this patch committed. Thanks.

  • wundo committed c62850e on 8.x-1.x authored by laszlo.csongor
    Issue #2611210 by laszlo.csongor, @baux, alvar0hurtad0, estoyausente,...
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.