Site logo

[Resolved] Warning Undefined array key linkType and url in all posts

Home Forums Support [Resolved] Warning Undefined array key linkType and url in all posts

Home Forums Support Warning Undefined array key linkType and url in all posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2491211
    Manuela

    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

    #2491362
    David
    Staff
    Customer Support

    Hi there,

    can you recall which Site you imported from the Library ? So i can look to fix that and send some updated code.

    #2491962
    Manuela

    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.

    #2492107
    Leo
    Staff
    Customer 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 🙂

    #2492473
    Manuela

    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 🙂

    #2492635
    David
    Staff
    Customer Support

    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

    #2492675
    Manuela

    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

    #2493060
    David
    Staff
    Customer Support

    Glad we could be of help 🙂

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