Cron fail when "Synchronize medias" is checked

Created on 18 January 2024, 10 months ago
Updated 5 February 2024, 10 months ago

Hi !

Problem/Motivation

My cron fail during the execution of apidae_tourisme_cron(). I thint it's a major bug because my cron is constantly trying to re-run without ending.

I got this error :
Error : Call to undefined function Drupal\apidae_tourisme\file_save_data() dans Drupal\apidae_tourisme\ApidaeSync->getMedias() (/www/web/modules/contrib/apidae_tourisme/src/ApidaeSync.php ligne 869)

Steps to reproduce

  • Make sure "Synchronize medias" is checked
  • Launch cron

Proposed resolution

I think that this Automated Drupal fix can help :
https://www.drupal.org/project/apidae_tourisme/issues/3286091#comment-14... 📌 Automated Drupal 10 compatibility fixes Closed: duplicate

It's about the deprecated function file_save_data() :
https://www.drupal.org/node/3223520

Thanks in advance!

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇫🇷France Myrakls

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

Comments & Activities

Production build 0.71.5 2024