Meta data empty and PHP error
-
Dear Meow Team
I’m encountering an interesting error on an e-commerce site that I’m busy developing (still hidden behind a coming soon page).
The facts are as follows:
- Child theme built on parent theme Astra (version 4.1.3).
- WooCommerce (version 7.6.0) with image Zoom and default PhotoSwipe lightbox disabled in the functions.php file.
- Product image file formats: WEBP with PNG used for logos.
- PHP version is 8.1 with 256 MB memory limit.
- Meow Lightbox set to only display Title and Caption (none of the other EXIF data)
If I disable Output Buffering in Meow Lightbox, then the lightbox does not work at all. And no PHP error.
With Output Buffering enabled, Meow Lightbox works but the title and caption fields are empty (even though both have been added in the Media Library). Now the following fatal PHP error is displayed:
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /usr/www/users/domain/wp-content/plugins/meow-lightbox/classes/core.php:257 Stack trace: #0 /usr/www/users/domain/wp-content/plugins/meow-lightbox/classes/core.php(257): date('j F Y - H:i', '') #1 /usr/www/users/domain/wp-content/plugins/meow-lightbox/classes/core.php(456): Meow_MWL_Core->get_exif_info('173') #2 /usr/www/users/domain/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 /usr/www/users/domain/wp-includes/functions.php(5309): ob_end_flush() #5 /usr/www/users/domain/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all('') #6 /usr/www/users/domain/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /usr/www/users/domain/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /usr/www/users/domain/wp-includes/load.php(1144): do_action('shutdown') #9 [internal function]: shutdown_action_hook() #10 {main} thrown in /usr/www/users/domain/wp-content/plugins/meow-lightbox/classes/core.php on line 257
Any ideas or pointers would be much appreciated.
Regards.
- The topic ‘Meta data empty and PHP error’ is closed to new replies.