Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Lauren 1 year, 6 months ago.

Assisted by: Lauren.

Author Posts
May 2, 2023 at 3:15 pm #13571993

vanessaS-12

I got a PHP warning on my error logs saying " Warning: md5() expects parameter 1 to be string, array given in /var/www/html/wp-content/plugins/acfml/classes/Strings/Package.php on line 97"

May 2, 2023 at 4:09 pm #13572583

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please let me know after you have tested in minimal settings if you still see the PHP warning message. Thanks!

May 3, 2023 at 11:14 am #13577941

vanessaS-12

hello! i just discovered that WP Bakery editor creates this conflict.
i really don't understand what it has to do with the ACFML addon

May 3, 2023 at 4:12 pm #13580857

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please install a copy of your WP Bakery Editor on the staging site that I created, hidden link, so I can further troubleshoot there.

May 4, 2023 at 7:07 am #13583127

vanessaS-12

done! you can now further troubleshoot using the WP Bakery plugin.
thanks a lot!

May 4, 2023 at 4:32 pm #13588817

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for installing it there. Unforutantely, I'm not seeing the same error. Is there a specific action you are taking on your live site that reproduces the error?

May 5, 2023 at 7:29 am #13591249

vanessaS-12

No there is no specific action that reproduces the error.
I would need to take an extra look at that test site: hidden link
could you please send me the login details again?
thanks a lot!

May 5, 2023 at 2:36 pm #13595297

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Sure, this link will log you in to the site: hidden link

May 8, 2023 at 7:50 am #13602595

vanessaS-12

hello! thanks for sharing the URL again.
So I've added my code again in functions.php because that seemed deleted and no warning is generated.
I wanted also to generate a dummy warning with this code: trigger_error("test warning here!", E_USER_WARNING); but no error is printed out.

I've got the feeling that the WP debugging and show_warnings are disabled again, could that be the case?

thanks!

May 8, 2023 at 2:39 pm #13606723

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I can confirm that debug is enabled. There is a file management plugin installed on the test site, so you can go to WP File Management and see in the wp-config.php that debug is enabled. You can also go to wp-content/debug.log and see your test error there.

May 8, 2023 at 2:52 pm #13606955

vanessaS-12

ok got it! thanks
si I've set also the "WP_DEBUG_DISPLAY" to true
and now you can see the error " Warning: md5() expects parameter 1 to be string, array given in /var/www/sites/best-whistle/wp-content/plugins/acfml/classes/Strings/Package.php on line 97"

Screenshot 2023-05-08 165048.png
May 8, 2023 at 8:05 pm #13608773

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks I was able to see it once display was enabled. I also noticed that commenting out your custom code resolves the warning. Since your code is different than the example provided, I suggest copying and pasting the code from here hidden link and only change the name of your field as needed. There are steps in their example that you don't have in your code, and this could be causing an error.

Once that is done, let's test and see if the error returns.

May 9, 2023 at 11:11 am #13612879

vanessaS-12

ok thanks a lot!
I investigated a bit the code and indeed there was an issue with the "load_field" acf filter, I had to replace it with "prepare_field"
I found the solution here: hidden link

So I'd say that we can close this topic. Thanks a lot for the very professional support and patience with this issue!

May 9, 2023 at 3:33 pm #13615389

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

So happy you were able to resolve the code. Thanks for letting me know, and have a great rest of your day!