Archived topic
Strange PHP error in Blog Post
10 replies · Started by Martin on January 11, 2023
I am receiving a few strange errors, that show up on the blog post. I have been testing one of the style templates.
Warning: Undefined array key "url" in /var/www/html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
Warning: Undefined array key "linkType" in /var/www/html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
Warning: Undefined array key "linkType" in /var/www/html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306
Any idea what may be causing that?
Hi there,
Are you referring to a site library template?
If so which template was it?
Let me know :)
Can't seem to replicate this on my install in a fresh install.
Can you set each element to draft one by one and let me which one is causing the issue?
https://www.screencast.com/t/dJU8WtomZZf
Thanks.
I set the post navigation to draft - because that one was showing the error even on loading the page and now I do not see the error anymore (for now). How would I drill down to see what specifically in my instance of post navigation is causing a problem?
When I click on the link to edit the element of Post navigation (draft) - the error flashes on load momentarily and then disappears...
Thanks,
I believe I've found the issue.
Can you replace the existing post element content with this?
https://pastebin.com/nFdShhuX
You can use this method:
https://youtu.be/CsT1UOzZUgI
Let me know :)
I've been powering through some updates for the past 4 hours, I've gotten to the stage of finishing up working on the default blog posts structures and happened to run into the same error as our Martin.
I'm posting here to prepare myself for some after-nap tasks, if I don't succeed with your fix is it cool if I edit this reply to fit the issues I face with your support? :)
Thanks a hundred times GP team!
Hi there,
i can't tell if the OP has notifications on... so out of politeness let us know if you have any issues in a new topic.
I do have the notifications on. I couldn't wait for the fix, so I quickly modified the portion of the template to fix it and will take a look at suggested specific fix when I have some time. You guys are great! Thanks !
Thanks for getting back to us Martin :)
Hey handsome,
I've gotten around to resolving this issue again; I went through your steps and have figured out that it's also the post navigation element my edited template is struggling with.
I'm using the theme Inbound from the site library, is this issue happening for anyone else?
Thanks in advance all, they really are aren't they Martin!