It's working now. The warning was related to the fact that I removed this code:
<li class="nnf_breadcrumb">» <a class="nnf_subforum-name" href="/sub-forum">Sub-forum</a></li>
In particular class 'nnf_breadcrumb'. Now it's already in place and the warning has gone away.
Regarding MAMP not displaying the warning the reason was that 'display_errors' was set to 'Off', while I thought it defaulted to 'On'.