Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateRangeFilter not working with PHP8 and Haste 5.2.x #233

Open
sgn-dev opened this issue Feb 25, 2025 · 1 comment
Open

DateRangeFilter not working with PHP8 and Haste 5.2.x #233

sgn-dev opened this issue Feb 25, 2025 · 1 comment

Comments

@sgn-dev
Copy link

sgn-dev commented Feb 25, 2025

Hi everyone,

Please excuse my poor English :)

The DateRangeFilter seems to have an issue with PHP 8.3. I’ve been using it for a while in a project. Previously with Contao 4.13.16, Haste 4.25.25, and PHP 7.4 — everything worked fine. After upgrading to PHP 8.3, Haste 5.2, and Contao 4.13.53, the filter no longer works. The parameters in the DCA are set, but the filter is not displayed at all. In the deprecations, I see the following message related to Haste:

The "Codefog\HasteBundle\EventListener\DoctrineOrmListener" class implements "Doctrine\Bundle\DoctrineBundle\EventSubscriber\EventSubscriberInterface" that is deprecated use the {@see AsDoctrineListener} attribute instead.

My attempt to fix it: I downgraded Haste to 4.25.25 while keeping Contao 4.13.53 and PHP 8.3, cleared the cache — but now I get the following warning in the backend:

Warning: Undefined array key "haste_dateRangeFilter_tstamp_eingabe".

The field tstamp_eingabe comes from my custom modification.

Is there any solution for this?

Thank you :)

@aschempp
Copy link
Collaborator

aschempp commented Mar 3, 2025

Deprecated usually means it should still work. Downgrading doesn't really fix the issue – did you test if the listener is called at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants