- This topic has 31 replies, 3 voices, and was last updated 4 years, 1 month ago by
Tom.
-
AuthorPosts
-
February 15, 2022 at 3:24 am #2119180
Josef
On my website (GP Premium Version 2.1.2) I got this error message displayed under every post:
Notice: Undefined index: url in /home/public_html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
Notice: Undefined index: linkType in /home/public_html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
Why?
How to fix it?February 15, 2022 at 4:05 am #2119239David
StaffCustomer SupportHi there,
what Block Eleemnts do you have hooked in at the bottom of your posts? I see the Post Navigation. Are there any others ?
February 15, 2022 at 4:09 am #2119242Josef
Where can I check that?
February 15, 2022 at 4:14 am #2119250David
StaffCustomer SupportGo to Dashboard > Appearance > Elements, and if you can provide a screen shot of that.
February 15, 2022 at 4:16 am #2119252Josef
screenshot: https://prnt.sc/26w6vh1
February 15, 2022 at 4:23 am #2119256David
StaffCustomer SupportIf you select and Quick Edit the Post Navgiation block element and set its status to Draft does the front end error go away ?
February 15, 2022 at 4:32 am #2119264Josef
I did that, and no the error did not go away.
Screenshot of the new setting: https://prnt.sc/26w77lzFebruary 15, 2022 at 4:36 am #2119268David
StaffCustomer SupportNot that one 🙂
This one:February 15, 2022 at 4:38 am #2119276Josef
Whooopsy 😀
YES, this made the error disappear.
So, what’s next?February 15, 2022 at 4:52 am #2119293David
StaffCustomer SupportGood question as it should not cause an error.
As a test, can you leave that element saved as a draft. Then:1. Create a new Block Element,
2. In the element select the Element Type > Post Navigationhttps://docs.generatepress.com/article/block-element-post-navigation/
3. Expand the Template panel and add a template – one that looks similar to your existing.
4. Check the options to: Disable default post navigation & Add default archive navigation container
5. Set its Display Rules toPosts > All Posts
6. PublishDoes that display correctly without error on the posts ?
February 15, 2022 at 5:20 am #2119331Josef
I did everyhting as you said, and the error is back.
The new element: https://prnt.sc/26w87f3Also, maybe helpful:
In the WP Appearance/Elements, when I click on this new element, or on the previous one that was set to draft, before the element editor page is loaded, for a second I see the exact same error messages displayed.February 15, 2022 at 5:49 am #2119359David
StaffCustomer SupportAre you using any custom functions on the site? Or any plugins that affect the Permalink structure ?
February 15, 2022 at 7:05 am #2119452Josef
No, I don’t use any plugins that would affect permalinks.
My permalinks are set by wordpress general settings.I could give you access to my site if that helps
February 15, 2022 at 7:42 am #2119501David
StaffCustomer SupportIf you could provide us with Temporary admin login we can have a look.
You can use the Private Information field to share those detailsFebruary 15, 2022 at 8:11 am #2119731Josef
Here you go
-
AuthorPosts
- You must be logged in to reply to this topic.