Fatal error when checking seed logs.

Created on 6 January 2024, 6 months ago
Updated 20 January 2024, 5 months ago

Problem/Motivation

PHP Fatal error:  Uncaught TypeError: format_string(): Argument #2 ($args) must be of type array, bool given, called in /app/docroot/sites/all/modules/contrib/quantcdn/quant.module on line 818 and defined in /app/docroot/includes/bootstrap.inc:1868
Stack trace:
#0 /app/docroot/sites/all/modules/contrib/quantcdn/quant.module(818): format_string()
#1 /app/docroot/sites/all/modules/contrib/quantcdn/quant.module(727): quant_log_check_seed_results()
#2 /app/docroot/sites/all/modules/contrib/quantcdn/quant.module(548): quant_seed_file()
#3 /app/docroot/sites/all/modules/contrib/quantcdn/quant.module(443): quant_seed()
#4 /app/docroot/includes/bootstrap.inc(3871): _quant_post_entity_op()
#5 [internal function]: _drupal_shutdown_function()
#6 {main}
  thrown in /app/docroot/includes/bootstrap.inc on line 1868

Cleaning up the GitHub issues so porting this to here:

https://github.com/quantcdn/drupal/issues/203

Steps to reproduce

Proposed resolution

I didn't get steps to reproduce, just the error messages. We can just add a defensive is_array when we call format_string and log more info if args is not an array.

Remaining tasks

  • Update code
  • Review and test
  • 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.69.0 2024