I noticed the following PHP warning recently polluting my error logs:
```
Attempt to read property "post_content" on null in plugins/wpml-acfml/classes/class-wpml-acf-repeater-shuffle.php on line 249
```
The issue is the `isChildOfRepeaterField()` method makes two assumptions:
1. That `get_post()` will always return a post.
2. That the field's 'parent' is an 'acf-field' post ID.
An ACF field can be defined programmatically (local JSON/PHP) in such case the local ACF field's 'parent' will often be a field key. It's only ever a post ID if it's synced back into the database.
Thank you very much for bringing this to our attention.
I have escalated this to our development team, with your fix for reference.
I will keep you updated on it's development so you know when you can remove your own fix.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.