Erro with WHMCS templates

Hi I have whmcs set up with default portal template

I have a wordpress instance set up at

however I get this message

"Sorry this doesn't look like a WHMCS site at [] Make sure your WHMCS Integration settings are pointing to the correct URL and that the WHMCS site is set for the Portal template in Setup | General."

It was working until I changed some edits in the portal theme, however remains like now een though I have repleced portal with the original files.

Can you think of any reasons for this?
Do we have to use an unedited version or portal?