PHP warning messages on checkout after update to 1.3.9
-
The latest update to version 1.3.9 fixed many bugs and gives perfect timing selection based on the timezone set. Unfortunately it introduces a small bug, on the checkout page the plugin gives PHP warnings:
Warning: DateTime::setTime() expects at most 3 parameters, 4 given in /home4/aayushkapoor/public_html/wp-content/plugins/woocommerce-local-pickup-time-select/public/class-local-pickup-time.php on line 464
The reason is because setTime() only accepts max 3 params of H:M:S
For existing users, I fixed it by modifying line 464 in the file :
From$pickup_datetime->setTime( 0, 0, 0, 0 );
to$pickup_datetime->setTime( 0, 0, 0);
I hope you fix it in the future release as its very annoying. But thanks for this great plugin.
Thanks and Regards,
Mustafa Husain
- The topic ‘PHP warning messages on checkout after update to 1.3.9’ is closed to new replies.