Archived topic
Warning Undefined array key linkType and url in all posts
7 replies · Started by Manuela on January 11, 2023
Hi,
In newly created posts I get the following error messages at the end of a blog post:
Warning: Undefined array key “url” in /home/clients/b19adb5619324e69140d23127c2c7dc3/web/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
Warning: Undefined array key “linkType” in /home/clients/b19adb5619324e69140d23127c2c7dc3/web/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
Warning: Undefined array key “linkType” in /home/clients/b19adb5619324e69140d23127c2c7dc3/web/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
I checked and found that the custom plugin: Elements.
Use our Block Theme Editor, create richer HTML hooks, and get more layout control that causes error messages.
I don’t want to turn it off because it changes my layout. Is there another solution?
See you an example: https://texteundberatung.ch/wissenschaft-welche-probleme-loest-ki-im-rekrutierungsprozess/
Thank you Manuela
Hi there,
can you recall which Site you imported from the Library ? So i can look to fix that and send some updated code.
Hi David
I have the Theme Newsroom.
If possible, I am happy to release a role in wordpress, because I want to make the website public as it is my company site.
As long as these errors are displayed, I cannot make it public.
The error is caused by my own plugin GenerateBlocks.
The PHP version in Wordpress is 8.1.
Thank you
Manuela 😀 grateful for rapid support.
Hi Manuela,
I believe I've identified the issue. Please try the following steps to fix:
1. Edit the Post Navigation element under Appearance > Elements.
2. Remove all existing content there.
3. Copy and paste the code from here in the content:
https://pastebin.com/YCfxLt12
Let me know if this helps :)
Hi Leo
I have the code from you in the wordpress theme file editor in the file: content-single.php.
This did not solve the problem.
Result: My text was gone 😮 and it said "Hello World".
And the three error codes were still there.
Is it perhaps due to another PHP file?
Thank you for your support.
Manuela 🙂
That code doesn't go there :)
First go to Dashboard > Appearance > Elements.
Can you see the Element Titled: Post Navigation
If yes:
Edit that Element.
Delete All the Blocks from the element.
Then from the 3 dot menu in top bar select Code Editor.
Copy and Paste Leos code into the editor.
Then from the 3 dot menu in top bar select Visual Editor.
Publish the changes
Hello David
First I thought, I hope I understand what I am supposed to do.
But of course ...
Sensational, that is the solution.
It works.🤸♀️
Thanks to Leo and you, David.
I'm so glad! 😀
Best wishes Manuela
Glad we could be of help :)