Title: warning error when installing ulimate blocks plugin
Last modified: May 12, 2020

---

# warning error when installing ulimate blocks plugin

 *  Resolved [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/)
 * Asmlkm Imtiaz
 * Great job with your plugin and thank you for sharing it with everyone.
 * I just wanted to let you know I wanted to use your plugin but got a warning error(
   attached below) after installing it. Once I unistalled the plugin, it didn’t 
   show anymore.
 * Hopefully it can be corrected so it doesn’t affect or scare other users.
 *     ```
       Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /wp-includes/functions.php on line 5167
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:5167) in /wp-includes/functions.php on line 6221
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:5167) in /wp-admin/includes/misc.php on line 1259
   
       Warning: unlink(/wp-content/uploads/ultimate-blocks/blocks.editor.build.css): No such file or directory in /wp-content/plugins/ultimate-blocks/includes/class-ultimate-blocks-deactivator.php on line 35
   
       Warning: unlink(/wp-content/uploads/ultimate-blocks/blocks.style.build.css): No such file or directory in /wp-content/plugins/ultimate-blocks/includes/class-ultimate-blocks-deactivator.php on line 36
   
       Warning: unlink(/wp-content/uploads/ultimate-blocks/sprite-twitter.png): No such file or directory in /wp-content/plugins/ultimate-blocks/includes/class-ultimate-blocks-deactivator.php on line 37
   
       Warning: rmdir(/wp-content/uploads/ultimate-blocks): No such file or directory in /wp-content/plugins/ultimate-blocks/includes/class-ultimate-blocks-deactivator.php on line 38
       ```
   
 * Thanks again
    shokran

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

 *  Plugin Author [Imtiaz Rayhan](https://wordpress.org/support/users/imtiazrayhan/)
 * (@imtiazrayhan)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12824944)
 * Hi [@luvwp10](https://wordpress.org/support/users/luvwp10/),
 * We already have fix for this issue.
 * We will include the fix in the next release.
 * Please wait for the update.
 * Regards.
 *  Thread Starter [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12828084)
 * Awesome, thanks for the reply and your great work Imtiaz
 * Look forward to the update
 *  Plugin Author [Imtiaz Rayhan](https://wordpress.org/support/users/imtiazrayhan/)
 * (@imtiazrayhan)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12830835)
 * Hi [@luvwp10](https://wordpress.org/support/users/luvwp10/),
 * We have released an update today with a fix for this issue.
 * Please update the plugin to the latest version.
 * Let us know if you come across any other issues.
 * Regards.
 *  Thread Starter [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12830864)
 * Hi Imtiaz
 * Thanks for the heads up
 * Updated plugin and general warning error (as above) didnt come up anymore – YAY
 * BUT
 * Did a quick test using the content filter block on a page
    and it spat out the
   following errors:
 *     ```
       Notice: Undefined index: items in /wp-includes/rest-api.php on line 1245
   
       Notice: Undefined index: items in /wp-includes/rest-api.php on line 1245
   
       Notice: Undefined index: items in /wp-includes/rest-api.php on line 1245
   
       Notice: Undefined index: items in /wp-includes/rest-api.php on line 1245
       ```
   
 * Not sure if the other block elements do the same
    -  This reply was modified 6 years ago by [luvwp10](https://wordpress.org/support/users/luvwp10/).
 *  Thread Starter [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12830983)
 * Update:
    errors come up for Table of contents block element
 *     ```
       Notice: Undefined offset: 3 in /wp-content/plugins/ultimate-blocks/src/blocks/table-of-contents/block.php on line 52
   
       Notice: Undefined offset: 4 in /wp-content/plugins/ultimate-blocks/src/blocks/table-of-contents/block.php on line 52
       ```
   
 * I’m your user tester! 🙂
 * Hope that helps
 * Thanks
 *  Plugin Contributor [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * (@alexius08)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12834915)
 * Hi [@luvwp10](https://wordpress.org/support/users/luvwp10/)! Did you use a page
   break on the post where you used the table of contents block? The part of the
   code the error message mentioned is supposed to handle cases where the headings
   are on a different page. Could you share a link to a page where the error comes
   up?
    -  This reply was modified 6 years ago by [Alexis Pandaan](https://wordpress.org/support/users/alexius08/).
 *  Thread Starter [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12837210)
 * Hi [@alexius08](https://wordpress.org/support/users/alexius08/)
 * Don’t think I used a page break. Page here:
 * [https://chinaspeakmethod.com/test-gutenberg-block-elements/](https://chinaspeakmethod.com/test-gutenberg-block-elements/)
 * Hope that helps
 *  Plugin Contributor [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * (@alexius08)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12845386)
 * Hi [@luvwp10](https://wordpress.org/support/users/luvwp10/)!
 * Thanks for providing more details. Upon trying to recreate the linked post, I
   found out that putting a heading inside another block causes the error messages
   you encountered with the table of contents. We’ll be working on a fix for this.
   Meanwhile, you may avoid those errors by not putting the headings inside other
   blocks.
 *  Thread Starter [luvwp10](https://wordpress.org/support/users/luvwp10/)
 * (@luvwp10)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12849634)
 * Thanks for the update [@alexius08](https://wordpress.org/support/users/alexius08/)!
 * We look forward to the fix
    🙂
 *  Plugin Contributor [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * (@alexius08)
 * [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12932439)
 * Hi [@luvwp10](https://wordpress.org/support/users/luvwp10/)!
 * We’ve released an update that includes a fix for this issue. You may download
   the latest version of the plugin to get it.
 * If you encounter further issues, please let us know.
 * Regards.

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

The topic ‘warning error when installing ulimate blocks plugin’ is closed to new
replies.

 * ![](https://ps.w.org/ultimate-blocks/assets/icon-256x256.png?rev=2966061)
 * [Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor](https://wordpress.org/plugins/ultimate-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-blocks/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/warning-error-when-installing-ulimate-blocks-plugin/#post-12932439)
 * Status: resolved