Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I've started using this module for a commerce website, and the module displays a warning each time I submit a new node. Here is the error:
Warning : trim() expects parameter 1 to be string, array given dans _scheduler_strtotime() (ligne 482 dans /.../drupal/sites/all/modules/scheduler/scheduler.module).
I believe the date module make it appear in two textfield instead of one (date and time). Then, the _scheduler_strtotime function get an array instead of a string. Patch following.
Comment | File | Size | Author |
---|---|---|---|
#1 | scheduler_check_date_is_array-1763820-1.patch | 446 bytes | idflood |
Comments
Comment #1
idflood CreditAttribution: idflood commentedSo the patch is really simple. It simply check if the $str variable is an array, and if it is the case, it concatenate the 'date' and 'time'.
Comment #2
jonathan1055 CreditAttribution: jonathan1055 commentedHi,
I think we have seen this before, in #1546162: trim() expects parameter 1 to be string, array given in _scheduler_strtotime()
Jonathan
Comment #3
pfrenssenMarked as a duplicate of #1546162: trim() expects parameter 1 to be string, array given in _scheduler_strtotime().