Title: syntax error with updated plugin ? (+ temporary fix)
Last modified: November 6, 2023

---

# syntax error with updated plugin ? (+ temporary fix)

 *  Resolved [goldgothe](https://wordpress.org/support/users/goldgothe/)
 * (@goldgothe)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-with-updated-plugin-temporary-fix/)
 * Hello. I updated the plugin this morning and my website broke.
 * I checked my error log and found this :
 * PHP Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in XXXXXXXXX/
   wordpress/wp-content/plugins/acf-rrule-field/fields/class-acf-field-rrule.php
   on line 711
 * I edited it myself by changing these two lines :
 * $new_value[‘start_date’] = $start_date?->format(‘Ymd’);
 * -> $new_value[‘start_date’] = $start_date ? $start_date->format(‘Ymd’) : null;
 * $new_value[‘start_time’] = $start_date?->format(‘H:i:s’);
 * ->$new_value[‘start_time’] = $start_date ? $start_date->format(‘H:i:s’) : null;
 * Now i am good, no more crash, but the next time i update, my change will dissapear.
   Is this problem due to my config ?
 * I am in PHP 7.4.30
 * I am in WordPress 6.3.2
 * Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Marc Bellêtre](https://wordpress.org/support/users/marcbelletre/)
 * (@marcbelletre)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-with-updated-plugin-temporary-fix/#post-17177419)
 * Hi [@goldgothe](https://wordpress.org/support/users/goldgothe/),
 * This syntax is indeed valid for PHP >= 8.0. I’ll update the plugin today to fix
   this compatibility issue. Sorry for the inconvenience.
 * Cheers,
 * Marc
 *  Plugin Author [Marc Bellêtre](https://wordpress.org/support/users/marcbelletre/)
 * (@marcbelletre)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-with-updated-plugin-temporary-fix/#post-17180689)
 * Hi [@goldgothe](https://wordpress.org/support/users/goldgothe/),
 * Version 1.3.3 has just been released with the fix. Thank you for your patience.
 * Cheers,
   Marc

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘syntax error with updated plugin ? (+ temporary fix)’ is closed to new
replies.

 * ![](https://ps.w.org/acf-rrule-field/assets/icon-256x256.png?rev=2498015)
 * [ACF RRule Field](https://wordpress.org/plugins/acf-rrule-field/)
 * [Support Threads](https://wordpress.org/support/plugin/acf-rrule-field/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-rrule-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-rrule-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-rrule-field/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marc Bellêtre](https://wordpress.org/support/users/marcbelletre/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-with-updated-plugin-temporary-fix/#post-17180689)
 * Status: resolved