Site logo

[Resolved] Does generatepress support php 8.1?

Home Forums Support [Resolved] Does generatepress support php 8.1?

Home Forums Support Does generatepress support php 8.1?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2432110
    zhou

    The site prompts an error after enabling php8.1

    Warning: Undefined array key “url” in /www/wwwroot/www.changshaseo.net/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306

    Warning: Undefined array key “linkType” in /www/wwwroot/www.changshaseo.net/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306

    Warning: Undefined array key “linkType” in /www/wwwroot/www.changshaseo.net/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306

    #2432147
    Fernando
    Customer Support

    Hi Zhou,

    What version of GeneratePress Premium are you using? This was an issue already addressed in GPP version 2.2.0. See here: https://generatepress.com/forums/topic/undefined-index-linktype/page/3/#post-2123559

    If your GP and GPP versions aren’t updated, can you try updating them to the latest versions and let us know how it goes?

    #2442058
    zhou

    GeneratePress3.2.4
    GenerateBlocks1.6.0
    GP Premium 2.2.1
    Wp, theme and plug-in are all the latest versions

    #2442080
    zhou

    In php7.4, this error does not exist

    It will be much faster to listen to others’ assessment 8.1, expecting support

    #2442087
    zhou
    #2442542
    David
    Staff
    Customer Support

    Hi there,

    the warnings will be coming from a dynamic link in one of the GP Elements you have in Appearance > Elements.
    Go to Appearance > Elements, and Select ALL and Quick edit them and set their status to Draft.

    Does the error go away ?

    #2443946
    zhou

    I know where the mistake is

    But why did such a mistake occur?

    I’m not afraid of making mistakes, but I’m afraid I can’t solve this problem

    #2444283
    David
    Staff
    Customer Support

    Which element was the mistake in ?

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