Add the 'core_version_requirement' key in info.yml and Call to deprecated function file_load()

Created on 2 December 2020, about 4 years ago
Updated 8 May 2024, 8 months ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India ravi kant Jaipur

    I am getting below error when applying patch.

  • 🇮🇳India Dharmendra.s Delhi India

    The patches are already there in the branch 8.x-1.3, that's why its failed.

    $ git apply -v 3186119-1.patch
    Checking patch hero_block.info.yml...
    error: while searching for:
    name: Hero Block
    description: A simple module to create Hero Image block.
    core: 8.x
    package: Content
    dependencies:
    - node

    error: patch failed: hero_block.info.yml:1
    error: hero_block.info.yml: patch does not apply
    Checking patch src/Plugin/Block/HeroBlock.php...
    error: while searching for:
    $title = isset($config['btitle']) ? $config['btitle'] : '';
    $sub_title = isset($config['sub_title']) ? $config['sub_title'] : '';
    $hero_image = isset($config['hero_image']) ? $config['hero_image'] : '';
    $file = file_load($hero_image[0]);
    $logo_output = "";
    if ($file) {
    $get_uri = $file->get('uri')->getValue();

    error: patch failed: src/Plugin/Block/HeroBlock.php:31
    error: src/Plugin/Block/HeroBlock.php: patch does not apply

  • 🇮🇳India ravi kant Jaipur

    If changes already on new release then we can close this ticket.

  • 🇺🇸United States hondaman900

    Composer install still not working. please update.

  • 🇮🇳India ravi kant Jaipur

    @hondaman900

    The issue of core version has updated on repository. You may check by clone repo in your laptop.
    so following issue needs to solved first --
    https://www.drupal.org/project/hero_block/issues/3331690

    Maintainers needs to pay attention here.

  • Status changed to Fixed 8 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024