• Resolved genekelly

    (@genekelly)


    Great work! Can you help me understand what is happening here – an error when I try to activate the plugin. My site has Nightingale installed.

    Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /wp-content/plugins/nhsblocks/nhsblocks.php on line 183

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tblacker

    (@tblacker)

    Hi – this is part of the php 7.4 type declarations, and I mistakenly believed it would work on lower versions. Apparently if you have lower than php 7.3 it doesnt work. Thank you for highlighting it, will make a change in next release. In the meantime, you can either raise your server php levels, or on line 183 of nhsblocks.php you can modify:
    function nhsblocks_block_renderer( string $name, array $attributes, string $content = null ) : string {
    to:
    function nhsblocks_block_renderer( string $name, array $attributes, string $content = null ) {

    Hope that helps.

    Plugin Author tblacker

    (@tblacker)

    v1.1.6 resolves this for you – thank you for raising it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘parse error’ is closed to new replies.