If you face “Formula Expression is required on the action attributes”, check the below
1. action=”{!methodname}” is mentioned properly.
2. Check the URL in PageReference declaration. Use forward slash “/” if by mistake “” back slash is used.
Cheers!!!