TimerAuction.sol: using Sol ^0.5.1: Contructor gives type error: TypeError: Data location must be “memory” for parameter in function, but none was given

Does anyone know how to solve this issue? I cannot use Sol ^0.4.1 as it won’t compile, i am forced to use 0.5.1 and higher.
when creating the constructor I get the type error as above. Help?

Best answer

Use(string memory _variableName) Also, a simple google search will help on some issues.