• I ran the update for your plugin and it crashed my site with the following error:
    Parse error: syntax error, unexpected '[' in /home/.sites/40/site933/web/wp/wp-content/plugins/official-mailerlite-sign-up-forms/include/mailerlite-admin.php on line 406

    I deleted the plugin via FTP and reinstalled. Activation did not work due to “critical error”.

    I had a look at the code according to above error message – indeed there were two [ brackets where there should have been arrays. I adjusted the code and the plugin works fine again.

    public static function update_account_info() {
            // request to mailerlite api
            $ch = curl_init();
    
            curl_setopt_array($ch, array(
                CURLOPT_URL => 'https://api.mailerlite.com/api/v2',
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_TIMEOUT => 30,
                CURLOPT_HTTPHEADER => array(
                    'X-MailerLite-ApiKey: ' . self::$api_key
                )
            ));
  • The topic ‘Critical Error in latest Update’ is closed to new replies.