Site logo

[Support request] Undefined array key “url” in class-block-elements.php on line 1304

Home Forums Support [Support request] Undefined array key “url” in class-block-elements.php on line 1304

Home Forums Support Undefined array key “url” in class-block-elements.php on line 1304

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2231412
    Peter

    I’m getting this error on my posts page when I have config set to display errors. I’ve tested in both PHP 8.0 and 8.1, same messages. Anybody else see this?

    Warning: Undefined array key "url" in [redacted]/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
    
    Warning: Undefined array key "linkType" in [redacted]/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
    
    Warning: Undefined array key "linkType" in [redacted]/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
    #2231427
    Leo
    Staff
    Customer Support

    Hi there,

    We haven’t seen this before.

    Have you added any elements in Appearance > Elements?

    #2231500
    Peter

    I did a web search and found the same error message on another site out in the wild.

    I hadn’t touched that page (the Projects template in a theme I imported, I think your construction theme?). I just happened to turn on error reporting to troubleshoot an SSL error and saw these messages on that page, which is the default posts list page.

    Thank you!

    #2231504
    Leo
    Staff
    Customer Support

    There isn’t a Projects template in the elements of the original Construction site:
    https://www.screencast.com/t/jYkkzKjKRUT

    Are you referring to the Posts Content Template?

    #2231510
    Peter

    Sorry to confuse, it’s not an element, it’s one of the pages, called Projects, which is used to display posts. In that Page, every Post is labeled a “project” (project portfolio item).

    #2231518
    Leo
    Staff
    Customer Support

    Now I’m confused. Can’t see how that page would trigger the error you are seeing.

    Does the error disappear if you disable (set to draft) the Posts Content Template element indicated above?

    #2231555
    Peter

    Yes the error disappears but the posts (post list) still show up! Interesting, thank you

    #2231557
    Leo
    Staff
    Customer Support

    Can you check if the Image URL still shows as gpsites.co?
    https://www.screencast.com/t/zwIPlNrsA8ue

    And what happens if you update that link to use a link from your media library?

    #2231558
    Peter

    changing that background image to one from my server doesn’t change anything. Errors still there.

    #2231573
    Leo
    Staff
    Customer Support

    It looks like Tom was able to fix in the issue in the upcoming version:
    https://generatepress.com/forums/topic/undefined-index-linktype/page/3/#post-2123559

    Any chance you can start a staging site for me to try to identify the issue in your case?

    #2231581
    Peter

    Thanks Leo.

    I have a staging site you can mess with, yes. Can you DM me somehow?

    #2231583
    Leo
    Staff
    Customer Support
    #2231611
    Peter

    Gotcha, will do. Thanks for all the quick responses. What email address should I use?

    #2231621
    Fernando
    Customer Support

    Hi Peter,

    You may use Kindly share the credentials through the Private Information field once created.

    Thank you!

    #2231660
    Peter

    ok I’m sending teh deets. Thanks y’all

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.