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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
December 9, 2022 at 1:22 pm #12621345

pierreB-13

I am trying to:
Save an image in an ACF option page.

I expected to see:
The image being saved.

Instead, I got:
Fatal error: Uncaught Error: Cannot use object of type Timber\Image as array in [...]/wp-content/plugins/acfml/classes/strategy/repeater-shuffle/OptionsPage.php:82

If I change `/acfml/classes/strategy/repeater-shuffle/OptionsPage.php:82`
from
`if ( $value instanceof \WP_Post || isset( $value['ID'] ) ) {`
to
`if ( $value instanceof \WP_Post || (is_array( $value ) && isset( $value['ID'] )) ) {`
it then works.

I got this error with ACFML versions 1.10.3 and 1.10.4. It is working with version 1.10.1.

Screenshot 2022-12-09 at 14.18.07.jpg
Screenshot 2022-12-09 at 14.17.52.jpg
Screenshot 2022-12-09 at 14.10.07.jpg
December 13, 2022 at 7:55 am #12639857

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you on this issue.

Can you please let me know steps to reproduce the issue? Then I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to do this: 
https://wordpress.org/plugins/duplicator/

There is a similar issue that you can read more about here https://wpml.org/forums/topic/any-acf-options-page-causes-critical-error-upon-saving/

Look forward to your reply.

Thanks

The topic ‘[Closed] ACFML: Timber Image in ACF Option Page triggers error’ is closed to new replies.