Problem/Motivation

The website encountered an unexpected error. Try again later.

Error: Undefined constant "Drupal\hero_block\Plugin\Block\FILE_STATUS_PERMANENT" in Drupal\hero_block\Plugin\Block\HeroBlock->blockSubmit() (line 99 of modules/contrib/hero_block/src/Plugin/Block/HeroBlock.php).

Steps to reproduce

  1. Drupal version 10.2.3
  2. Hero block version 8.x-1.3
  3. Install and enable
  4. Navigate to block type overview page
  5. Add block in region and fill the fields
  6. The errors will be show now

error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 hero_block-3423114.patch813 bytessarwan_verma
errors.png469.46 KBravi kant

Comments

ravi kant created an issue. See original summary.

sarwan_verma’s picture

Status: Active » Needs review
StatusFileSize
new813 bytes

Hi @ravi kant,
I have fixed this issue "Undefined constant Drupal\hero_block\Plugin\Block\FILE_STATUS_PERMANENT" and also create patch,
please review and verify.

ravi kant’s picture

The patch #2 is solving my problem.

chandraveer singh’s picture

Version: 8.x-1.3 » 2.0.1
Status: Needs review » Fixed

Fixed

Status: Fixed » Closed (fixed)

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