Title: Warning: Undefined array key &#8220;centralizedPosition&#8221;
Last modified: May 31, 2026

---

# Warning: Undefined array key “centralizedPosition”

 *  [kamilxglo](https://wordpress.org/support/users/kamilxglo/)
 * (@kamilxglo)
 * [6 days, 7 hours ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/)
 * Hi,
 * I’ve recently started experiencing an issue with the plugin. The error appears
   when editing pages and customizing the theme. Unfortunately, it is also visible
   to end users afterward.
   Warning: Undefined array key “centralizedPosition” in/
   home/[…]/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-block-helper.
   php on line 1835Spectra 2.19.28Spectra pro: 1.2.11

Viewing 1 replies (of 1 total)

 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [5 days, 14 hours ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/#post-18925194)
 * Hi [@kamilxglo](https://wordpress.org/support/users/kamilxglo/),
 * Thank you for reporting this!
 * We were able to replicate the warning on our end. It is triggered when a Spectra
   block (such as Slider, Modal, Popup Builder, or Forms) has a background image
   with the position set to Custom, on PHP 8.0 or higher. In that situation, the
   plugin tries to access a key in the background object that is not present, which
   causes the warning to appear.
 * We have logged this as a bug and it will be fixed in an upcoming release.
 * In the meantime, you can stop the warning from appearing by changing the Background
   Position from Custom to the default setting for any affected block. That should
   clear it up both in the editor and for your end users.
 * We will keep you updated once the fix is out.
 * If you need any further help, feel free to reach out and we will be happy to 
   assist.
 * Have a wonderful day ahead!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-centralizedposition%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * Last activity: [5 days, 14 hours ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/#post-18925194)
 * Status: not resolved