Title: PHP Warning &#8220;Undefined array key &#8220;blocks&#8221;
Last modified: June 17, 2025

---

# PHP Warning “Undefined array key “blocks”

 *  Resolved [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/)
 * Hello.
 * In ../wp-content/plugins/mailpoet/lib/Newsletter/Renderer/Blocks/Renderer.php
   on line 78 i get the following message: “PHP Warning: Undefined array key “blocks”
   in …/wp-content/plugins/mailpoet/lib/Newsletter/Renderer/Columns/Renderer.php
   on line 12′
 * Can you explain me what the error means and how to fix it? Thanks.

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

 *  Plugin Author [paveldohnal](https://wordpress.org/support/users/paveldohnal/)
 * (@paveldohnal)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18515798)
 * Hello asanacori,
 * Thanks for reaching out.
 * This warning shouldn’t normally appear. There are guardrails in place to prevent
   this situation, so it’s not clear why it’s happening in your case.
 * Could you let us know where exactly you see this warning? For example:
    - Do you see it while performing a specific action in the admin?
    - Or does it appear in logs only?
    - Is any part of the email editor or sending functionality not working as expected?
 * This information will help us investigate further and suggest the right fix.
 *  Thread Starter [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18517466)
 * Hello,
 * this error appeared in the server log files, during normal usage activities of
   your plugin no error appears.
 *  Plugin Support [Gui A. a11n](https://wordpress.org/support/users/guicmazeredo/)
 * (@guicmazeredo)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18518204)
 * Thanks for getting back to us with more details!
 * Could you please follow the instructions to [re-install the plugin via FTP](https://kb.mailpoet.com/article/258-re-installing-updating-the-plugin-via-ftp)
   and let us know if this error will go away? This will ensure no plugin files 
   are missing or corrupted.
 * Don’t worry, **you won’t lose any data from the plugin** since it’s saved in 
   your database, not the plugin files. However, whenever making any changes like
   this, we recommend making sure you have a full backup of the site just in case.
 *  Thread Starter [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18530768)
 * Hello.
 * I reinstalled the plugin manually but the error continues to be reported only
   in the logs:
   AH01071: Got error ‘PHP message: PHP Warning: Undefined array key“
   blocks” in /wp-content/plugins/mailpoet/lib/Newsletter/Renderer/Blocks/Renderer.
   php on line 78PHP message: PHP Warning: Undefined array key “blocks” in /wp-content/
   plugins/mailpoet/lib/Newsletter/Renderer/Columns/Renderer.php on line 12′
 * Indeed, in the newsletter in composition there are some content blocks that still
   need to be enhanced.
 *  Plugin Author [Ján Mikláš](https://wordpress.org/support/users/neosinner/)
 * (@neosinner)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18530777)
 * Hi [@asanacori](https://wordpress.org/support/users/asanacori/), have you installed
   version 5.12.8 which was released two days ago? It should include the fix, so
   if you still experience the issue, there might be different issue.
 *  Thread Starter [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18533809)
 * Hi Jan, I installed version 5.12.8 on my wordpress 5.12.8, now I always get an
   error message but only on line 12, namely: Got error ‘PHP message: PHP Warning:
   Undefined array key “blocks” in ../wp-content/plugins/mailpoet/lib/Newsletter/
   Renderer/Columns/Renderer.php on line 12’.
 *  Plugin Author [Ján Mikláš](https://wordpress.org/support/users/neosinner/)
 * (@neosinner)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18535720)
 * Hi [@asanacori](https://wordpress.org/support/users/asanacori/), there was indeed
   still a way to generate this warning. It’s [fixed in this PR](https://github.com/mailpoet/mailpoet/pull/6242),
   and it should be included in the release next week (probably in version 5.12.10).
 *  Thread Starter [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18535922)
 * Hi [@neosinner](https://wordpress.org/support/users/neosinner/), I’ll wait, thank
   you.
 *  Plugin Author [Ján Mikláš](https://wordpress.org/support/users/neosinner/)
 * (@neosinner)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18545938)
 * Hi [@asanacori](https://wordpress.org/support/users/asanacori/), we just released
   version 5.12.10 – could you please try it out to see if it helped fix the issue?
 *  Thread Starter [asanacori](https://wordpress.org/support/users/asanacori/)
 * (@asanacori)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18549380)
 * Yes, the problem has been resolved, thank you.

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

The topic ‘PHP Warning “Undefined array key “blocks”’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [asanacori](https://wordpress.org/support/users/asanacori/)
 * Last activity: [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-blocks/#post-18549380)
 * Status: resolved