Archived topic
Problem with Geek from Site Library
7 replies · Started by Michael on June 26, 2022
I installed GP premium and Geek following the site instructions. All the sample blog posts have the following error text. These are the sample posts supplied by you.
Warning: Undefined array key "url" in /Applications/MAMP/htdocs/merlin/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
Warning: Undefined array key "linkType" in /Applications/MAMP/htdocs/merlin/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
Warning: Undefined array key "linkType" in /Applications/MAMP/htdocs/merlin/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1304
Bus
This site is running offline on a MAMP server.
Hi Michael,
Can you edit the Blog Cards Template and remove the Dynamic Link in the Container Block?: https://share.getcloudapp.com/v1uOYQ6z
Kindly let us know how it goes.
Hi Fernando,
The Blog Cards Template doesn't have a Dynamic Link in the Container Block.
Michael
I see.
Can you try temporarily setting the Block Elements to draft?
Kindly let us know if the issue goes away once done so.
Hi Fernando,
Setting to draft makes the error messages go but the Blog page layout changes.They now have an image with a block of text underneath. Is that expected?
Hi there,
edit the Block Element content template, from the 3 dot menu it the top bar, select the Code View.
Delete the code from the content area and paste in this instead:
<!-- wp:generateblocks/container {"uniqueId":"218cec06","outerContainer":"contained","paddingTop":"35","paddingRight":"35","paddingBottom":"35","paddingLeft":"35","paddingSyncUnits":true,"marginRightTablet":"20","marginLeftTablet":"20","backgroundColor":"var(\u002d\u002dbase-3)","gradientDirection":149,"gradientColorOne":"var(\u002d\u002dbase)","gradientColorTwo":"var(\u002d\u002dbase-3)","linkColor":"var(\u002d\u002dbase-3)","linkColorHover":"var(\u002d\u002daccent)","alignment":"left","isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/grid {"uniqueId":"3810147e","columns":2,"horizontalGap":50,"verticalAlignment":"flex-start","verticalGapMobile":30,"isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/container {"uniqueId":"b25725e4","isGrid":true,"gridId":"3810147e","width":50,"widthMobile":100,"minHeight":300,"borderSizeTop":"5","borderSizeLeft":"5","borderSizeTopMobile":"0","borderSizeLeftMobile":"0","borderColor":"var(\u002d\u002dcontrast-2)","backgroundColor":"var(\u002d\u002dcontrast)","bgImage":{"id":33,"image":{"url":"https://gpsites.co/geek/wp-content/uploads/sites/103/2022/01/photo-12.jpg","height":796,"width":1106,"orientation":"landscape"}},"bgOptions":{"selector":"pseudo-element","opacity":0.6,"overlay":false,"position":"center center","size":"cover","repeat":"no-repeat","attachment":""},"innerZindex":1,"shapeDividers":[],"isDynamic":true,"blockVersion":2,"gpDynamicImageBg":"featured-image","gpUseFallbackImageBg":true,"opacities":[],"transitions":[],"boxShadows":[],"transforms":[],"textShadows":[],"filters":[],"advBackgrounds":[]} -->
<!-- wp:generateblocks/button-container {"uniqueId":"1f0302fb","isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/button {"uniqueId":"05d545da","hasUrl":true,"backgroundColor":"var(\u002d\u002dcontrast-2)","textColor":"var(\u002d\u002dbase-3)","backgroundColorHover":"var(\u002d\u002dcontrast)","textColorHover":"var(\u002d\u002daccent)","borderColor":"var(\u002d\u002dbase-3)","borderColorHover":"","fontFamily":"Oswald","fontFamilyFallback":"sans-serif","googleFont":true,"googleFontVariants":"200, 300, regular, 500, 600, 700","fontSize":15,"paddingTop":"2","paddingRight":"12","paddingBottom":"7","paddingLeft":"12","paddingTopMobile":"7","borderSizeRight":"2","className":"dynamic-term-class blog-term-button","gpDynamicTextType":"terms","gpDynamicLinkType":"term-archives","gpDynamicTextReplace":"Button","gpDynamicTextTaxonomy":"category"} -->
<a class="gb-button gb-button-05d545da gb-button-text dynamic-term-class blog-term-button" href="#">Button</a>
<!-- /wp:generateblocks/button -->
<!-- /wp:generateblocks/button-container -->
<!-- /wp:generateblocks/container -->
<!-- wp:generateblocks/container {"uniqueId":"c6aedc34","isGrid":true,"gridId":"3810147e","width":50,"widthMobile":100,"removeVerticalGapMobile":true,"isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/headline {"uniqueId":"c76bc094","textColor":"var(\u002d\u002dcontrast-2)","linkColor":"var(\u002d\u002dcontrast-2)","linkColorHover":"var(\u002d\u002dcontrast-2)","borderColor":"","fontSize":30,"marginTop":"20","marginTopTablet":"0","className":"","gpDynamicTextType":"title","gpDynamicTextReplace":"Hello World"} -->
<h2 class="gb-headline gb-headline-c76bc094 gb-headline-text ">Hello World</h2>
<!-- /wp:generateblocks/headline -->
<!-- wp:generatepress/dynamic-content {"contentType":"post-excerpt","excerptLength":45} /-->
<!-- /wp:generateblocks/container -->
<!-- /wp:generateblocks/grid -->
<!-- /wp:generateblocks/container -->
Switch back to Visual editor and publish those changes
Thanks David that fixed the problem.
Glad to hear that!