• Resolved terabyten

    (@terabyten)


    Hello,

    After update to 5.8.1 I can’t activate the plugin with error …

    Parse error: syntax error, unexpected ‘)’ in /home/*****/public_html/wp-content/plugins/find-my-blocks/inc/enqueue.php on line 63

    Any idea?

    • This topic was modified 3 years ago by terabyten.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author edeesims

    (@edeesims)

    Hey @terabyten is this still a problem? I have updated my WP and installed the latest version of Find My Blocks and everything is working correctly.

    Thread Starter terabyten

    (@terabyten)

    Yes, same error during activation. Latest WP. No other plugins active.

    • This reply was modified 3 years ago by terabyten.
    Thread Starter terabyten

    (@terabyten)

    Eror in

    		wp_enqueue_style(
    			'find-my-blocks-style',
    			plugin_dir_url( __DIR__ ) . 'find-my-blocks.css',
    			null,
    			filemtime( plugin_dir_path( __DIR__ ) . 'find-my-blocks.css' ),
    		);
    

    The problem is the last comma …

    • This reply was modified 3 years ago by terabyten.

    I can confirm the error. In PHP 7.3+ a trailing comma in a function call is valid, in PHP versions below that it will throw a syntax error.

    As the plugin states that it works with PHP 5.2 and higher, I had the issue that on a site with PHP 7.2 only it got updated but then broke the site.

    Plugin Author edeesims

    (@edeesims)

    @kau-boy Thank you for the clarification! @terabyten This should be fixed in 3.5.4

    Thread Starter terabyten

    (@terabyten)

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t activate the plugin’ is closed to new replies.