tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
196 stars 21 forks source link

Undefined array key "uniqueId" in /includes/blocks/class-container.php:945 #984

Open simkoG opened 1 year ago

simkoG commented 1 year ago

Description

I have noticed that the plugin is generating plenty of warning log entries in the wp_log file (ifWP_DEBUG is enabled, of course).

PHP Warning: Undefined array key "uniqueId" in /wp-content/plugins/generateblocks/includes/blocks/class-container.php on line 945

Steps to reproduce

I am not sure. The error occurs on a pre-release website. If I deactivate Generateblocks, it stops the addition of new entries.

Expected behavior

No log entry.

Actual behavior

...

References:

image

https://github.com/tomusborne/generateblocks/blob/e0b4e467256bfe7543ef82c395b175c5cabc250f/includes/blocks/class-container.php#L943-L946


tomusborne commented 1 year ago

This should never happen as every block has a uniqueId by default.

Is this happening when using a Query Loop by chance?