Notice: Trying to access array offset on value of type null in _quant_prepare_entity()

Created on 5 February 2023, about 2 years ago
Updated 8 February 2023, about 2 years ago

Problem/Motivation

When using "save and queue" on the Seed tab, got this notice:

Notice: Trying to access array offset on value of type null in _quant_prepare_entity() (line 690 of /var/www/html/sites/all/modules/contrib/quantcdn/quant.module).

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant_api module
  • Use devel_generate to generate content including image files
  • Go to Seed tab
  • Check: Export file pages
  • Click Save and Queue button
  • Result: Notice at top of page and in the logs
  • Expected result: No notice at top of page and in the logs
  • Proposed resolution

    Update the code to handle array properly.

    Remaining tasks

    1. Review and test
    2. Commit :)

    User interface changes

    API changes

    Data model changes

    πŸ› Bug report
    Status

    Fixed

    Version

    1.0

    Component

    Code

    Created by

    πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

    Comments & Activities

    Production build 0.71.5 2024