• Resolved Daniel Harper

    (@danhrpr)


    Block spacing causes and array to string conversion error.

    Changing block spacing on the post template doesn’t work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support supportweblazer

    (@supportweblazer)

    Hello,
    I’m sorry to hear you’re experiencing issues with the extension.
    Could you please provide more details about the error?
    What is your website address?
    Which extensions and theme are you using?
    Which blocks are you using and with what settings?
    Alternatively, you can create a temporary administrator account on your site with the email address [email protected] so we can investigate the issue.
    Thank you very much.

    Thread Starter Daniel Harper

    (@danhrpr)

    This is the issue,

    Error: PHP warning/error — Array to string conversion in Renderer.php when building inline styles for <code class=””>–wp–style–block-gap.

    Carousel detection scans $block_content for “<code class=””>abcs”, so a parent block (e.g. core/columns) is treated as a carousel when a nested carousel is inside it;

    Carousel gap logic then runs on that parent, whose blockGap is an object like “<code class=””>{ “top”: “0” }” instead of a string.

    If you put a carousel query loop inside any of the following and update the block gaps you get the warning in the log file or on the screen if you have them set to dispaly.

    core/columnscore/column, or core/group

    I have a patch for it if you want I can send it to the support email address?

    I would not give random admin access to a plugin maintainer, that’s ridiculous.

    Plugin Support supportweblazer

    (@supportweblazer)

    Hello Daniel,

    You are completely right, and I apologize—requesting admin access should indeed be a last resort. Your security concerns are fully justified, and it is indeed best practice not to share admin credentials.

    Thank you very much for your detailed analysis and for pinpointing the exact issue in Renderer.php. Your explanation made it very easy to reproduce.

    I have just released version 2.0.4 on ww.wp.xz.cn, which fixes this array-to-string conversion warning by properly handling split blockGap values for all blocks.

    Thanks again for your contribution and for helping improve the plugin!

    Thread Starter Daniel Harper

    (@danhrpr)

    No problem, thanks for fixing it so quickly.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.