strlen() expects parameter 1 to be string, array given event.php on line 25

jwill 02 Oct, 2016
Bob,

In your Wed Apr 29, 2015, 10:51 am message you said Max was working on a fix for this problem. The code has been completely rewritten since you supplied a work around (and fix was expected from Max), but it still doesn't work. When there are fields with no label, Designer > Events displays the above error over and over. If a space is entered into the label fields, the errors go away but the field is tabbed over and no longer tight to the preceding field.

Jim
GreyHead 03 Oct, 2016
Hi Jim,

I'm not seeing that on my test sites and the code on line 25 appears as if it will only run when the Label is not empty?

Bob
jwill 03 Oct, 2016
Max,

Two additional pieces of information.

First, my message used the line number associated with the original problem. The new line number is '37'.

Warning: strlen() expects parameter 1 to be string, array given in /home/rivers13/public_html/administrator/components/com_chronoforms5/chronoforms/events/event.php on line 37



[attachment=0]chronoformsblanklabel.gif[/attachment]

Second, I can't make it fail on your demo forms. It is failing on a form I imported from CF4 and updated in CG5. Could this be a factor? It fails if any of my fields that have a blank label (regardless of type.) Placing a space instead of leaving them blank makes the error go away, but then the field is moved to the right and not tight to the preceding field.

Jim
jwill 06 Oct, 2016
Bob,

I just created a new form from scratch. I placed a Custom element with 3 lines of text at the top. I then added a Multi Field with two text fields. The first text field has a label and a sub label. The second one has an empty label field and a sub label. There are no other fields.

When selecting the Events tab, I get the "Warning: strlen() expects parameter 1 to be string, array given in /home/rivers13/public_html/administrator/components/com_chronoforms5/chronoforms/events/event.php on line 37" error.

I deleted the Multi Field and added a text field with no label and a sub label. With the Multi Field deleted, I do not get the error.

Jim
GreyHead 07 Oct, 2016
Hi Jim,

Is the work-around I posted applied on your site? I'm not seeing this error any longer and I'm not sure if this is because I still have the workaround in my files (I didn't think so but maybe).

Bob
jwill 08 Oct, 2016
Bob,

I just started working with CF5 (I have stayed with CF4 because I didn't want to take the time to understand the differences) and I haven't applied any previous modifications to CF5. I downloaded the current version of CF5 and then exported a form from CF4 and imported it to CF5. This is where I first discovered the problem. But as I noted in a previous message, the error also occurred on a brand new form with two items on it and seems to only occur with a multi field. I tried to find the message with the previous modification but the site and forum has been having problems lately and I couldn't find it.

Jim
jwill 21 Oct, 2016
I am no longer receiving the error. Host was suppose to increase PHP values and instead they lowered them.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger