Error testing cron strings

Created on 25 October 2024, 22 days ago

Problem/Motivation

When attempting to run the cron sting test batch, I am seeing these errors

Skipped sample_cron_timing_1 => every 10 minutes
sample_cron_timing_1: Error: 0 Cannot access offset of type array on array
- Line 331 of /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Database/Query/Merge.php
Skipped sample_cron_timing_2 => every 2 days
sample_cron_timing_2: Error: 0 Cannot access offset of type array on array

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

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

Comments & Activities

  • Issue created by @swirt
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Also seeing this error trying to run 'TestDo10ThingsOnCron'

    TypeError: Cannot access offset of type array on array in Drupal\Core\Database\Query\Merge->key() (line 331 of core/lib/Drupal/Core/Database/Query/Merge.php).
    Drupal\codit_batch_operations\Cron\CronManager->querySetCronTime() (Line: 635)
    Drupal\codit_batch_operations\Cron\CronManager->setCronLastRan(NULL) (Line: 554)
    Drupal\codit_batch_operations\Cron\CronManager->queryGetCronTime() (Line: 618)
    Drupal\codit_batch_operations\Cron\CronManager->getCronLastRan() (Line: 874)
    Drupal\codit_batch_operations\Cron\CronManager->getCronShouldRunAfter() (Line: 715)
    
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    I found the problem

    "Passing an array to the \$field argument of " . __METHOD__ . '() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/2205327', E_USER_DEPRECATED
    

    I am kind of surprised Drupal Rector did not spot it.

  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    This has been fixed

    • swirt β†’ committed c6b133f2 on 1.0.x
      Issue #3483311 by swirt: D11 Fatal Error with querySetCronTime
      
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024