- This topic has 11 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 5, 2023 at 5:10 am #2484526
Jakub
Dear support team,
I have set up a new WordPress instance at a staging site. Once this was done from the content, design and testing point of view, I have transferred the whole WordPress instance to a production site.
However, I am now getting this error:
Warning: Undefined array key "url" in /data/b/d/bd0c29bf-a771-4e4d-bcca-71c610ecf417/labory55.com/web/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306 Warning: Undefined array key "linkType" in /data/b/d/bd0c29bf-a771-4e4d-bcca-71c610ecf417/labory55.com/web/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306It is present on a page with dynamic content. Everything is working on the staging site, including this error not being displayed.The only difference between both sites is the PHP version:
Staging site: PHP version: 7.4.30
Production site: PHP version: 8.0.23Staging site page without error: https://labory55.greenmed.sk/clanky/
Production site page with errors: https://labory55.com/clanky/Funnily enough, even despite the error being displayed, the dynamic data is displayed without any issues.
Could you please help?
thank you
January 5, 2023 at 6:02 am #2484567David
StaffCustomer SupportHi there,
are you using GenerateBlocks Pro ? If so, is it enabled on the site with errors ?
January 5, 2023 at 6:14 am #2484577Jakub
Hi David,
yes, we are using GB Pro. It is enabled and activated (or at least seems to be as per the notice “Receiving premium updates.”).January 6, 2023 at 3:58 am #2485681David
StaffCustomer SupportIs it possible to get an Admin login to the production site ?
You can use the Private Information field below to share any details.January 8, 2023 at 11:36 am #2488143Jakub
Hi David, sent
thank you
January 8, 2023 at 6:31 pm #2488311Fernando Customer Support
Hi Jakub,
Can you also share the link to the login page?
January 9, 2023 at 12:58 am #2488513Jakub
Hi Fernando,
please, finde the link to the login page:
https://labory55.com/wp-admin/January 9, 2023 at 2:20 am #2488589David
StaffCustomer SupportCouple of things:
1. Are you using GenerateBlocks Pro on the staging site ? See here:
https://www.screencast.com/t/xARCGiuj
2. Can you edit the
Archives content templatein Appearance > Elements and change the container Background image, which is used for the fallback, its currently getting an image from the gpsites server.January 9, 2023 at 2:59 am #2488626Jakub
1. No, Generateblocks Pro is not used on the staging site. It is not used on the production site either, as the production site is a 1:1 copy.
2. I changed it to a different image. Now, no image is displayed and the error is still there.
However, for the staging site, it was no problem to display it correctly. The only thing that changed is the PHP version.
January 9, 2023 at 3:35 am #2488660David
StaffCustomer SupportOK, so the Content Template has some code which only works with GB Pro. And in PHP 8x it will throw those warnings.]
So edit the Content Template.
Switch the editor to the Code Editor, and replace the code with:<!-- wp:generateblocks/container {"uniqueId":"d2cafe96","borderColor":"var(\u002d\u002dcontrast-4)","backgroundColor":"var(\u002d\u002dbase-2)","isDynamic":true,"blockVersion":3,"useInnerContainer":true,"paddingTop":"0","paddingRight":"0","paddingBottom":"0","paddingLeft":"0","borderSizeTop":"0","borderSizeRight":"0","borderSizeBottom":"2","borderSizeLeft":"0","borderRadiusTopRight":"8","borderRadiusBottomRight":"8","borderRadiusBottomLeft":"8","borderRadiusTopLeft":"8","className":"archives-single"} --> <!-- wp:generateblocks/container {"uniqueId":"e57e1faa","bgImage":{"id":2030,"image":{"url":"https://labory55.com/wp-content/uploads/2022/11/konope-1.jpg","height":1285,"width":1920,"orientation":"landscape"}},"isDynamic":true,"blockVersion":3,"useInnerContainer":true,"sizing":{"minHeight":"220px"},"paddingTop":"20","paddingLeft":"20","borderRadiusTopRight":"6","borderRadiusTopLeft":"6","gpDynamicImageBg":"featured-image","gpUseFallbackImageBg":true} --> <!-- wp:generateblocks/headline {"uniqueId":"007eea6c","blockVersion":2,"element":"h5","display":"inline-block","fontWeight":"bold","fontSize":15,"marginBottom":"0","marginUnit":"em","paddingTop":"6","paddingRight":"20","paddingBottom":"6","paddingLeft":"20","borderRadiusTopRight":"3","borderRadiusBottomRight":"3","borderRadiusBottomLeft":"3","borderRadiusTopLeft":"3","inlineWidth":true,"backgroundColor":"var(\u002d\u002dbase-3)","textColor":"var(\u002d\u002daccent)","gpDynamicTextType":"post-date","gpDynamicTextReplace":"Post date"} --> <h5 class="gb-headline gb-headline-007eea6c gb-headline-text">Post date</h5> <!-- /wp:generateblocks/headline --> <!-- /wp:generateblocks/container --> <!-- wp:generateblocks/container {"uniqueId":"81dcf0a8","isDynamic":true,"blockVersion":3,"useInnerContainer":true,"paddingTop":"20","paddingRight":"20","paddingBottom":"20","paddingLeft":"20","paddingSyncUnits":true} --> <!-- wp:generateblocks/headline {"uniqueId":"9666d99e","blockVersion":2,"element":"p","display":"inline-flex","alignItems":"center","fontWeight":"700","fontSize":15,"marginBottom":"0.8","marginUnit":"em","inlineWidth":true,"hasIcon":true,"iconColor":"var(\u002d\u002daccent-2)","gpDynamicTextType":"post-author","gpDynamicLinkType":"author-archives","gpDynamicTextReplace":"Author name"} --> <p class="gb-headline gb-headline-9666d99e"><span class="gb-icon"><svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"></path></svg></span><span class="gb-headline-text">Author name</span></p> <!-- /wp:generateblocks/headline --> <!-- wp:generateblocks/headline {"uniqueId":"ca866c85","blockVersion":2,"element":"p","display":"inline-flex","alignItems":"center","fontWeight":"700","fontSize":15,"marginBottom":"0.8","marginLeft":"1","marginUnit":"em","paddingUnit":"em","inlineWidth":true,"hasIcon":true,"iconColor":"var(\u002d\u002daccent-2)","className":"dynamic-term-class","gpDynamicTextType":"terms","gpDynamicLinkType":"term-archives","gpDynamicTextReplace":"Category","gpDynamicTextTaxonomy":"category"} --> <p class="gb-headline gb-headline-ca866c85 dynamic-term-class"><span class="gb-icon"><svg xml:space="preserve" style="enable-background:new 0 0 463.552 463.552" viewBox="0 0 463.552 463.552" xmlns="http://www.w3.org/2000/svg"><path d="m445.752 256.346-179.9-180c-9.5-9.5-22.2-14.8-35.6-14.8-1.1 0-2.2 0-3.3.1l-130.1 8.6c-14.1.9-25.5 12.3-26.4 26.4l-3.1 46.2c-6.6-3.8-12.9-8.6-18.6-14.3-13.9-13.9-22.5-31.2-24.3-48.8-1.7-16.7 3.1-31.6 13.5-42 22.1-22.1 62.8-17.2 90.9 10.8 4.7 4.7 12.3 4.7 17 0s4.7-12.3 0-17c-37.6-37.3-93.6-42.1-125-10.7-15.6 15.6-22.8 37.3-20.4 61.4 2.3 23.1 13.4 45.6 31.2 63.4 10 10 21.6 17.9 33.9 23.3l-3.8 57.9c-1 14.5 4.4 28.7 14.7 39l180 180c11.4 11.4 26.5 17.6 42.6 17.6s31.2-6.3 42.6-17.6l104.3-104.3c11.4-11.4 17.6-26.5 17.6-42.6-.1-16.2-6.4-31.3-17.8-42.6zm-16.9 68.1-104.4 104.4c-6.8 6.8-15.9 10.6-25.6 10.6-9.7 0-18.8-3.8-25.6-10.6l-180-180c-5.4-5.4-8.2-12.8-7.7-20.4l3.5-52.4c2 .3 4 .6 6 .8 3 .3 6 .5 8.9.5 20.5 0 38.8-7.2 52.4-20.8 4.7-4.7 4.7-12.3 0-17s-12.3-4.7-17 0c-10.4 10.4-25.3 15.2-42 13.5-2.3-.2-4.5-.6-6.7-1l3.6-53.6c.1-2.2 1.9-3.9 4.1-4.1l130.1-8.6c.6 0 1.2-.1 1.8-.1 7 0 13.8 2.8 18.7 7.7l179.9 179.9c6.8 6.8 10.6 15.9 10.6 25.6 0 9.7-3.8 18.8-10.6 25.6z"></path></svg></span><span class="gb-headline-text">Category</span></p> <!-- /wp:generateblocks/headline --> <!-- wp:generateblocks/headline {"uniqueId":"2cc9bb63","blockVersion":2,"element":"h4","fontSize":20,"marginBottom":"16","linkColor":"var(\u002d\u002daccent)","linkColorHover":"var(\u002d\u002dcontrast-2)","gpDynamicTextType":"title","gpDynamicLinkType":"single-post","gpDynamicTextReplace":"Post title"} --> <h4 class="gb-headline gb-headline-2cc9bb63 gb-headline-text">Post title</h4> <!-- /wp:generateblocks/headline --> <!-- wp:generatepress/dynamic-content {"contentType":"post-excerpt","excerptLength":15,"useThemeMoreLink":false} /--> <!-- /wp:generateblocks/container --> <!-- wp:generateblocks/container {"uniqueId":"d1465197","isDynamic":true,"blockVersion":3,"useInnerContainer":true,"paddingTop":"20","paddingRight":"20","paddingBottom":"40","paddingLeft":"20"} --> <!-- wp:generateblocks/button-container {"uniqueId":"5d045c17","isDynamic":true,"blockVersion":2} --> <!-- wp:generateblocks/button {"uniqueId":"97d300f8","hasUrl":true,"blockVersion":3,"hasButtonContainer":true,"display":"inline-flex","alignItems":"center","justifyContent":"center","fontWeight":"700","alignment":"center","fontSize":16,"paddingTop":"10","paddingRight":"25","paddingBottom":"10","paddingLeft":"25","borderRadiusTopRight":"8","borderRadiusBottomRight":"8","borderRadiusBottomLeft":"8","borderRadiusTopLeft":"8","backgroundColor":"var(\u002d\u002daccent)","backgroundColorHover":"var(\u002d\u002daccent-2)","textColor":"var(\u002d\u002dbase-3)","textColorHover":"","hasIcon":true,"iconLocation":"right","iconPaddingRight":"","iconPaddingLeft":"0.5","gpDynamicLinkType":"single-post"} --> <a class="gb-button gb-button-97d300f8" href="#"><span class="gb-button-text">Čítať viac</span><span class="gb-icon"><svg aria-hidden="true" role="img" height="1em" width="1em" viewBox="0 0 256 512" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path></svg></span></a> <!-- /wp:generateblocks/button --> <!-- /wp:generateblocks/button-container --> <!-- /wp:generateblocks/container --> <!-- /wp:generateblocks/container -->Then switch back to the visual editor, if it looks correct then publish those changes.
January 9, 2023 at 3:55 am #2488689Jakub
Thank you, this has worked.
What is actually Generateblocks Pro? Is it part of the Generatepress premium subscription?
January 9, 2023 at 4:09 am #2488713David
StaffCustomer SupportGenerateBlocks Pro is the premium version of GenerateBlocks. It has its own license.
It adds a bunch of convenience tools to GenerateBlocks, as well as some advanced features. -
AuthorPosts
- You must be logged in to reply to this topic.