Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

htmlentities() expects parameter 1 to be string, array given #407

Open
qwertymlex opened this issue Jun 13, 2017 · 6 comments
Open

htmlentities() expects parameter 1 to be string, array given #407

qwertymlex opened this issue Jun 13, 2017 · 6 comments

Comments

@qwertymlex
Copy link

qwertymlex commented Jun 13, 2017

Hello,

When trying to filter data and hitting the search button I get this error "htmlentities() expects parameter 1 to be string, array given"

I'have notice that the error is fired when i use daterange filter

As a note in my composer i have "laravelcollective/html": "5.2.*" and I'm using laravel 5.2

@qwertymlex
Copy link
Author

I did some debuging and it seams to work fine if in Daterange.php on build() function changed line 46
from:
if (parent::build() === false) return;
to
if (Field::build() === false) return;

@MGS-sails
Copy link

I've also been struggling with this issue
where did you find Daterange.php?

@qwertymlex
Copy link
Author

In your vendor/zofe/rapyd/DataForm/Field/Daterange.php:46

@MGS-sails
Copy link

I dont get the error anymore, but nothing happens when I click the search button and I dont get a date picker in my daterange fields.
Did you have thesame problem?

@denkata
Copy link

denkata commented Aug 9, 2017

Anyone else having this issue with 5.4?

@Presii
Copy link

Presii commented Mar 22, 2018

@denkata I have laravel 5.5 and fix of @qwertymlex is good

fissible added a commit to csatf/rapyd-laravel that referenced this issue Sep 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants