• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Error loading block: invalid attributes – with repeater field

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Genesis Custom Blocks › Error loading block: invalid attributes – with repeater field

This topic is: not resolved

Tagged: field, genesis, repeater, sub-field

  • This topic has 7 replies, 8 voices, and was last updated 1 year, 10 months ago by techschool25.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • May 18, 2022 at 3:05 pm #505268
    rrbeccahart89
    Participant

    I'm trying to add a block with a repeater field. The field will show up in the editor, but after adding text then clicking out of block it displays the message "Error loading block: invalid attributes." I'm guessing I'm missing an attribute in the sub-field array. Can anyone help please please please!

    function add_services_block() {

    // One long array with lots defined.
    add_block(
    'services',
    array(
    'title' => 'Services',
    'category' => 'common',
    'icon' => 'account_circle',
    'fields' => array(
    'service' => array(
    'name' => 'service',
    'label' => 'Service',
    'control' => 'repeater',
    'sub_fields' => array(
    'heading' => array(
    'name' => 'heading',
    'label' => 'Heading',
    'control' => 'text',
    'width' => '50',
    ),
    ),
    ),
    ),
    ),
    );

    }

    May 30, 2022 at 3:24 am #505331
    Anderson1285
    Participant

    Hi, Kindly check check may be you have tick something wrong. Because I was applying it on Pikahsow tv app. And I selected wrong option for repeated block field and was showing exact the same issue. When I cleared everything and start working on it again. Then everything was fine.

    March 26, 2023 at 1:44 am #507062
    Kane jane
    Participant

    Hi, Kindly check may be you have tick something wrong. Because I was applying it on inshot pro apk. And I selected wrong option for repeated block field and was showing exact the same issue. When I cleared everything and start working on it again. Then everything was fine.

    April 11, 2023 at 5:10 am #507235
    shah_00
    Participant

    This error message usually indicates that there is a problem with the attributes set for a repeater field in your WordPress website.

    Here are some steps you can take to resolve the issue:

    Check the syntax of the attributes for the repeater field. Make sure that all attributes are properly formatted and correctly spelled.

    Ensure that the repeater field is correctly set up in your WordPress theme or plugin. Check that the field is registered correctly and that the attributes match the registered field.

    Check if any custom code has been added to your website that might be causing conflicts with the repeater field. Disable any custom code and see if the error message disappears.

    If the issue persists, try disabling any plugins that might be causing conflicts with the repeater field. Reactivate each plugin one by one until you find the one that is causing the error message.

    If none of the above steps resolve the issue, consider reaching out to the developer of the WordPress theme or plugin you are using for further assistance. They may be able to provide more specific guidance on how to troubleshoot the error.read more

    April 14, 2023 at 10:28 pm #507298
    MarieCastro
    Participant

    I had the same situation as you, let castle apk help you double check the properties of the repeater field block and make sure they are valid and formatted correctly. You may also want to review any code or any related documentation to ensure that you have selected the correct options for the repeating block field.

    May 19, 2023 at 1:47 pm #507437
    brycejune
    Participant

    Hi,
    Hope so you're having fun these days, to resolve this, ensure that you include all the necessary attributes for each sub-field within the 'sub_fields' array. In your case, you currently have a 'heading' sub-field defined with attributes like 'name', 'label', 'control', and 'width'. Make sure these attributes are correctly specified and that you haven't missed any required attributes for your specific use case.

    Double-check your code for any syntax errors or typos, as they can also cause issues with the block's functionality. If the problem persists, you might consider seeking assistance from the official documentation or support channels related to the platform or framework you are using for your development.

    Hope so this will help you!
    Regards,
    Bryce June

    May 24, 2023 at 8:37 am #507447
    fasf12f
    Participant

    When it comes to air duct cleaning services near me is essential. Local services offer convenience and prompt response times, ensuring that your needs are met efficiently. By choosing a service provider in your vicinity, you can easily schedule appointments and have the cleaning done at a time that suits you best. Additionally, local professionals are familiar with the specific climate and environmental conditions of your area, allowing them to provide tailored solutions for your cleaning needs.

    July 2, 2023 at 1:04 pm #507538
    techschool25
    Participant
    This reply has been marked as private.
  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble