Title: Problem with old code
Last modified: February 17, 2023

---

# Problem with old code

 *  Resolved [onedaycom](https://wordpress.org/support/users/onedaycom/)
 * (@onedaycom)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-old-code/)
 * WordPress 6.1.1 
   Divi 4.19.5On the URL of example I have not activate Ultimate
   Blocks it cause too much problems
 * Without any plugin installed and even with Twenty twenty-one theme, Ultimate 
   blocks show this error :
 * Warning: Trying to access array offset on value of type null in /var/www/html/
   wp-content/plugins/ultimate-blocks/src/blocks/table-of-contents/block.php on 
   line 17 Warning: Undefined array key -1 in /var/www/html/wp-content/plugins/ultimate-
   blocks/src/blocks/table-of-contents/block.php on line 17
 * Is anyone having this trouble ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-old-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * (@alexius08)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-old-code/#post-16491785)
 * Hi [@onedaycom](https://wordpress.org/support/users/onedaycom/) ! So far, we’re
   unable to recreate your issue on our end. Have you tried checking if the error
   persists on your end after turning off all other plugins and switching to a default
   theme (Twenty Twenty-three, Twent Twenty-two, etc.)? We’ve also tried switching
   to other PHP versions (5.6, 7.4, and 8.1), and none of them produced similar 
   errors.

Viewing 1 replies (of 1 total)

The topic ‘Problem with old code’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-old-code/#post-16491785)
 * Status: resolved