Skip Navigation

[Resolved] Custom Date Search Filter is not working

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2682108

I am trying to insert a custom search filter in my view. The custom search filter is a custom date field. I'm using the following settings: Type of control = Date picker // Compare value as number // Comparison = between

What is happening: In the view I'm able to select a min date and a max date. It works fine when only selecting either min OR max date. But when selecting both I get a critical error on the page. Please try yourself on this page: hidden link

#2682188

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When I checked further - I found that there is following fatal error on error-log file.

PHP Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /www/htdocs/w01cdf59/entwicklung/wp-content/plugins/webartisan/modules/blended_learning/blended_learning.php:834

The error is coming from the "webartisan" plugin. As soon as I deactivated that plugin I can see its working as expected. Can you please confirm.

#2682242

Hi Minesh, thank you for your quick reply und your findings. There is obviously an issue with the type of the date or rather how the date is stored in the database. I'll check this and let you know what I found out.

#2682244

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok fine - please get in touch with us when you can.