-
osaopaulo
Hi there!
In one of my sites, I keep getting this error logged:
PHP Warning: Undefined array key "uniqueId" in /public_html/wp-content/plugins/generateblocks/includes/blocks/class-container.php on line 997What is it? Does it have some way to fix it?
Thanks in advance!
-
Hi there,
Can you check this topic?
https://generate.support/topic/undefined-array-key-uniqueid-2/And check if there’s a GB block that does not have a unique ID? If you don’t know how to, can you link me to the page in question?
-
osaopaulo
Hello, Ying!
I went through some pages (not posts, only pages) of my site, and found this here:
https://snipboard.io/i6UkZl.jpgHowever, when I went to the page editor, I fond this:
https://snipboard.io/riEmgW.jpgCan it be the source of the error? How can I fix it?
Also, I don’t know if it is the only instance of this missing ids, as I’ve stopped searching for it as soon I’ve found this one.The page is https://osaopaulo.org.br/historia/
-
Alvind
Hi there,
The error is related to the V1 container block, not the text block.
Do you have any pages or posts still using V1 blocks, specifically the container block?
-
osaopaulo
Hi, Alvin!
Do you have any pages or posts still using V1 blocks, specifically the container block?
Not that I’m aware of. I’ve converted all of my site to GB V2 already.
-
Alvind
Is the error appearing on a particular page? If so, we can inspect that specific page to identify the issue.
If you’re only logging errors and not displaying them on the frontend, you may need to enable WP_DEBUG_DISPLAY so we can see which page is affected.
Just a note — it’s only a PHP warning, so it doesn’t affect your site’s functionality. In most cases, it can be safely ignored.
-
osaopaulo
It is appearing on my error log; no idea on what page(s) it is occuring.
-
In this case, can you enable WP_DEBUG_DISPLAY so we can see which page is affected?
-
osaopaulo
Sure thing; just enabled it.
-
Alvind
Ok, so I’ve checked every page on your site that I could, and I’m not seeing the error anywhere.
Is the error log you’re seeing recent? Could it be an old error from before you converted the site to V2?
-
osaopaulo
The last time it showed on my log error was yesterday evening:
[18-Nov-2025 19:56:21 UTC] PHP Warning: Undefined array key "uniqueId" in /public_html/wp-content/plugins/generateblocks/includes/blocks/class-container.php on line 997 [18-Nov-2025 19:56:33 UTC] PHP Warning: Undefined array key "uniqueId" in /public_html/wp-content/plugins/generateblocks/includes/blocks/class-container.php on line 997 [18-Nov-2025 21:18:00 UTC] PHP Warning: Undefined array key "uniqueId" in /public_html/wp-content/plugins/generateblocks/includes/blocks/class-container.php on line 997It is not a consistent error, it only appears from time to time, a couple of times a day, every day or so.
-
I also checked most pages on your site, and didn’t see the error.
Do you recall what you were doing at 18-Nov-2025 19:56:21 UTC? Are you editing a specific page?
Let me know 🙂
-
osaopaulo
I did the same, on front-end and back-end (editor); no error appeared when checking the pages…
I’ve never seen this error “live”, only on my error log.Do you recall what you were doing at 18-Nov-2025 19:56:21 UTC? Are you editing a specific page?
If I rightly recall, I was not even doing anything on my site.
-
That’s weird…
But if there’s nothing wrong on the front end or back end, I think you can safely ignore it.
-
osaopaulo
Indeed it is very strange; but alas, let’s ignore it.
Thanks Ying and Alvind!
-
You are welcome 🙂
- You must be logged in to reply to this topic.