Date picker causing error
-
I created a date form and when enabled on a product page, when I try to add the product to the cart, I get a 500 error. If I remove the date form, the product gets added to the cart just fine. Any ideas? I’m using Botiga theme.
-
Could you please share the URL of the product page where the error occurs?
This will allow us to review the setup.It’s activated on the above page but it’s not showing even though there is a space for it. If you inspect the space above the Add to Cart button, you’ll see there is a div for it there. It was showing at some point.
The shared URL currently displays a ‘Coming Soon‘ page, so we are unable to access and review the issue directly.
In the meantime, please enable WordPress debug mode and attempt to add the product to the cart again. After that, check the debug log (/wp-content/debug.log) to see if any errors are recorded.
If an error appears in the log, kindly share the details with us so we can assist you further.I apologize. I made the site live but looks like it’s not working yet. I’ll do what you suggested. Thanks.
The site should now be available.
Upon reviewing the issue, it appears that conditional logic has been applied to a field referencing itself, which creates a processing loop and leads to the error.
Please try disabling the conditional logic for that field and check again.
If you can share the conditional logic requirement you are trying to achieve, we had be happy to review it and check the possibility of implementing it correctly.I don’t believe there is any conditional logic on that page. Can you specify how you found that?
from the debug log;
[11-Jun-2025 16:27:32 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
woocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:34 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:34 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:34 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:36 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:37 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:38 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121
[11-Jun-2025 16:27:38 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-paymentsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u806051774/domains/thatsawrapgifting.com/public_html/wp-includes/functions.php on line 6121The conditional logic you’re referring to isn’t set on the page itself—it’s configured during the creation of the date field in the form editor.
You can refer to this example screenshot for clarity: https://prnt.sc/YV1wR3G1Pk9O. As shown, the logic appears in the right-side panel during field setup.
We recommend deleting the existing date field and creating a new one with the correct conditional logic applied.
Ok, I deleted the original and created a new one and seems to be working now. How is the seller notified of this date? Is it included in the order?
The date field is displayed on different pages as follows.
On product page: https://prnt.sc/sC6RwzEv6H1B
On cart page: https://prnt.sc/FJ5wRsHBF2RK
On checkout page: https://prnt.sc/6qmEFhIaz64-
On order details page: https://prnt.sc/VggYE4Um2lUj
Kindly give it a try and share your feedback with us.
The topic ‘Date picker causing error’ is closed to new replies.