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

---

# Warning: Undefined array key “centralizedPosition”

 *  Resolved [kamilxglo](https://wordpress.org/support/users/kamilxglo/)
 * (@kamilxglo)
 * [1 month 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 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [1 month 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!
 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [2 weeks, 2 days ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/#post-18941666)
 * Hi kamilxglo,
 * Good news on this one. The fix for the warning is now ready from our side and
   will be included in the next Spectra release.
 * In the meantime, we did not want you to wait, so we have already shared a dev
   build that includes the fix on the support ticket you created with us on our 
   support portal. Please check that ticket, and you will find the dev zip along
   with simple steps to install it. That will clear up the warning right away in
   both the editor and for your end users.
 * Once the official update is out, you can simply update Spectra as usual through
   WordPress, and the dev build will be replaced automatically.
 * Please give it a try and let us know how it goes. We are here if you need any
   further help.
 * Have a wonderful day ahead!
 *  Plugin Support [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * (@ravigojiya)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/#post-18948076)
 * Hi [@kamilxglo](https://wordpress.org/support/users/kamilxglo/),
 * Just a quick update. The fix for this warning is ready on our end and will be
   included in the next Spectra release. Once the update is out, you will be able
   to apply it through your WordPress dashboard as usual.
 * Thank you for your patience, and feel free to reach out if you have any other
   questions in the meantime.
 * Have a great day ahead!

Viewing 3 replies - 1 through 3 (of 3 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [BSF – Ravi Gojiya](https://wordpress.org/support/users/ravigojiya/)
 * Last activity: [1 week, 1 day ago](https://wordpress.org/support/topic/warning-undefined-array-key-centralizedposition/#post-18948076)
 * Status: resolved