Greetings!
I just had the same error with upgrading to WP 271. On a whim, I decided to delete the last full line of code (in “plug-in edit) that contained the words “short code”.
I saved my revisions, and the plug-in activated!
Hope this might work for you!
Dr. Carlsen