Uncaught PHP Exception InvalidArgumentException: "The timestamp must be numeric."

Created on 24 February 2022, over 2 years ago
Updated 28 July 2023, over 1 year ago

Problem/Motivation

After upgrading to Smart Date 3.5.0 this module is no longer compatible, and accessing a node using the addtocal functionality returns the following:
Uncaught PHP Exception InvalidArgumentException: "The timestamp must be numeric." at core/lib/Drupal/Component/Datetime/DateTimePlus.php line 201

Steps to reproduce

Upgrade Smart Date to 3.5.0.

Proposed resolution

Update this module for compatibility with the latest Smart Date release.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Mike.Conley

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    Using the following versions, I am unable to reproduce the problem reported in this issue:

    - drupal/core:9.5.10
    - drupal/smart_date:3.5.0
    - drupal/addtocal_augment:1.0.0

    (I was able to successfully create a Smart Date field and configure the field formatter to display Add To Calendar links and render them on a node, with the links working as expected.)

    Given this, and given that the current supported version of Smart Date is 4.x, and that the maintainers of Add To Cal Date Augmenter are planning to make 1.1.x the supported version in the near future, I think the best course of action is to update your sites to those versions respectively. (I am also unable to reproduce the problem on those versions).

    If there are no subsequent comments about this being an issue through November 2023, I think this issues can be marked "Closed Outdated."

  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    This seems to happen if you don't use a smart date.

    InvalidArgumentException: The timestamp must be numeric.

    The documentation should specify that Smart Sate fields are required and not allow the configuration on things like Timestamps or regular Date fields.

    I am on Drupal 10.2.3 and PHP 8.1.12.

Production build 0.71.5 2024