TypeError: Argument 2 passed to quant_seed() must be of the type array, null given

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

Problem/Motivation

Getting fatal error when trying to seed files that have no URI:

TYPE	php
DATE	Sunday, February 5, 2023 - 17:16
USER	admin
LOCATION	https://quantdrupal7rc4.ddev.site/batch?id=103&op=do_nojs&op=do
REFERRER	https://quantdrupal7rc4.ddev.site/batch?op=start&id=103
MESSAGE	TypeError: Argument 2 passed to quant_seed() must be of the type array, null given, called in /var/www/html/sites/all/modules/contrib/quantcdn/quant.module on line 952 in quant_seed() (line 398 of /var/www/html/sites/all/modules/contrib/quantcdn/quant.module).
SEVERITY	error
HOSTNAME	
OPERATIONS	

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant, quant_api, and quant_file modules
  • Use devel_generate to generate content including files
  • Go to Seed tab (/admin/config/services/quant/seed)
  • Check Export nodes, Export file pages and Trigger the batch
  • Click Save configuration button
  • Should show a fatal error if the file URI isn't set
  • Look at logs
  • Result: Error above is shown
  • Expected result: Files that can't be seeded shouldn't show a fatal error
  • Proposed resolution

    Appears to be when the file URI is not set. If file can't be seeded for any reason, handle error so it's not a fatal error.

    Remaining tasks

    1. Debug
    2. Update code
    3. Review and test
    4. 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