How to remove links from profile_menu.tpl
Using Jamroom
I menat to add that code (profile_quota_id="{$profile_quota_id}"

Make it more obvious by putting it in a h1:
<h1>profile_quota_id="{$profile_quota_id}"</h1>
BUT, if your quota id is 2, that might be something now working quite right in the code. As far as I can see you should only get that error message if $profile_quota_id is not a number.