Title: Fatal error: Uncaught TypeError: date
Last modified: April 27, 2023

---

# Fatal error: Uncaught TypeError: date

 *  Resolved [seblito](https://wordpress.org/support/users/seblito/)
 * (@seblito)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/)
 * Running this on a new site with GeneratePress theme and GenerateBlocks installed.
   Everything is up to date.
 * The following error message appears when activating this plugin:
 * Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of 
   type ?int, string given in /Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/
   public/wp-content/plugins/meow-lightbox/classes/core.php:257 Stack trace: #0 /
   Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/public/wp-content/plugins/meow-
   lightbox/classes/core.php(257): date(‘Y-m-d – H:i’, ”) #1 /Users/xxxxxxxxxx/Local
   Sites/xxxxxxxxxxxxxxx/app/public/wp-content/plugins/meow-lightbox/classes/core.
   php(456): Meow_MWL_Core->get_exif_info(‘1048’) #2 /Users/xxxxxxxxxx/Local Sites/
   xxxxxxxxxxxxxxx/app/public/wp-content/plugins/meow-lightbox/classes/core.php(
   438): Meow_MWL_Core->write_mwl_data(true) #3 [internal function]: Meow_MWL_Core-
   >lightboxify(‘…’, 9) #4 /Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/public/
   wp-includes/functions.php(5309): ob_end_flush() #5 /Users/xxxxxxxxxx/Local Sites/
   xxxxxxxxxxxxxxx/app/public/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all(”)#
   6 /Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/public/wp-includes/class-
   wp-hook.php(332): WP_Hook->apply_filters(”, Array) #7 /Users/xxxxxxxxxx/Local
   Sites/xxxxxxxxxxxxxxx/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(
   Array) #8 /Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/public/wp-includes/
   load.php(1144): do_action(‘shutdown’) #9 [internal function]: shutdown_action_hook()#
   10 {main} thrown in /Users/xxxxxxxxxx/Local Sites/xxxxxxxxxxxxxxx/app/public/
   wp-content/plugins/meow-lightbox/classes/core.php on line 257
 * Could this be a bug?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-typeerror-date%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [seblito](https://wordpress.org/support/users/seblito/)
 * (@seblito)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/#post-16699343)
 * Update
 * I rolled back to version 4.0.3 today and the fatal error disappeared, so yes 
   I would say this is an actual bug.
 *  Thread Starter [seblito](https://wordpress.org/support/users/seblito/)
 * (@seblito)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/#post-16706332)
 * Version 4.0.5 resolved this issue.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/#post-16706340)
 * Yes! Sorry, I didn’t mention 🙂 Pushing lot of bug fixed these days on many plugins.
   Cheers!
 *  [thartl](https://wordpress.org/support/users/hartl/)
 * (@hartl)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/#post-17119708)
 * This seems to have come back, throwing a fatal error on a few sites for me.
   In
   version 4.0.5 $timestamp was cast to (int) and that version still works.
 * Here’s the error:
   PHP Fatal error: Uncaught TypeError: date(): Argument #2 ($
   timestamp) must be of type ?int, string given in /sites/stage.ecobuildinggroup.
   ca/files/wp-content/plugins/meow-lightbox/classes/core.php:278

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: Uncaught TypeError: date’ is closed to new replies.

 * ![](https://ps.w.org/meow-lightbox/assets/icon-256x256.gif?rev=3004933)
 * [Meow Lightbox](https://wordpress.org/plugins/meow-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/meow-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/meow-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/meow-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meow-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meow-lightbox/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 3 participants
 * Last reply from: [thartl](https://wordpress.org/support/users/hartl/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-date/#post-17119708)
 * Status: resolved