Subscribe block not installed; missing from /admin/structure/block

Created on 10 June 2024, 6 months ago
Updated 19 September 2024, 2 months ago

Problem/Motivation

After installing simplenews 4.0.0 I tried to add the subscribe block to the home page but there was no block in admin/structure/block
The Martex theme had a block that appears to be for simplenews 3.0.0
There are no instructions on how to create a block for people to subscribe only to the newsletter and not to the site.

Steps to reproduce

Install simplenews 4 using composer, add newsletter, etc. All works ok. Sending newsletter works.

Proposed resolution

Update the documentation -> readme is way out of date.
Fix requested please.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

4.0

Component

Documentation

Created by

🇦🇺Australia markagregory

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @markagregory
  • 🇦🇺Australia markagregory

    I resolved this issue. The block had not appeared on the layouts page, so I added it again.
    I appreciate the module, hoping someone will come up with a bounced mail handler that works :)

  • 🇩🇪Germany elbarcino

    @markagregory

    I'm running into the same issue. Can you tell how you fixed it? Thanks.

  • 🇬🇧United Kingdom adamps
  • 🇨🇦Canada colan Toronto 🇨🇦

    This is a major bug as it's not possible for anonymous users to subscribe to newsletters without the block being available. I couldn't find anything obviously wrong with SimplenewsSubscriptionBlock.php, but the block should be there, and it isn't.

    Marked the following as duplicates of this issue:

  • 🇦🇺Australia markagregory

    elbarcino, I went to /admin/structure/block, then scrolled down to the Disabled group of blocks and selected the "Place Block" button.
    I scrolled down through the list of available blocks until I found the Simplenews subscription block and selected the block.

    It is not well documented that this is a way to restore blocks that disappear.

    It would be better if drupal listed all available blocks under /admin/structure but this is another Drupal gotcha

  • Status changed to Postponed: needs info 5 months ago
  • 🇨🇭Switzerland berdir Switzerland

    Yes, I don't see an issue here. Any block except the blocks that added by default by the install profile need to be placed. Since Drupal 8.0. There can be hundreds of blocks and you can place blocks as many times as you want, this is by design.

  • Assigned to colan
  • Status changed to Needs review 5 months ago
  • 🇨🇦Canada colan Toronto 🇨🇦

    Well, the documentation says:

    Enable the Simplenews block on the Administer blocks page: Administer > Structure > Block layout

    ...but there's nothing to enable on that page. So this is a documentation issue as it was never updated from D7.

    I just updated it now. What do you think?

    Old

    With the Simplenews block users can subscribe to a newsletter. For each newsletter one block is available. Enable the Simplenews block on the Administer blocks page: Administer > Structure > Block layout (currently missing, see #3453575: Subscribe block not installed; missing from /admin/structure/block) or Administer > Structure > Blocks (for Drupal 7), and visit the block configuration page to configure the block settings. Permission "subscribe to newsletters" is required to access the subscription form in the simplenews block or to view the link to the subscription form.

    New

    With the Simplenews block users can subscribe to a newsletter. For each newsletter one block is available. To enable it:

    1. Navigate to Administration > Structure > Block layout.
    2. Choose the theme you're interested in from the subtabs.
    3. Find the region where you'd like to place the blocks, and hit the Place block button.
    4. Configure the block in the modal window, and then hit Save block.
    5. At Administration > People > Permissions, permission "Subscribe to newsletters" is required to access the subscription form in the block or to view the link to the subscription form.
    6. If it needs to be accessible by anonymous users, clear the caches.

    For Drupal 7, go to Administer > Structure > Blocks, and then visit the block configuration page to configure the block settings. Everything else is the same.

  • Status changed to Fixed 2 months ago
  • 🇬🇧United Kingdom adamps

    Great thanks

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

Production build 0.71.5 2024