Why does {{ user.getPhotoUrl(64) }} point towards storage/runtime and not to storage/userprofiles? I am trying to load user profile pictures (the Craft ones), but they don't load. The getPhotoUrl() seems to point to the wrong folder(?).

The profile images seem to be stored in the userprofiles folder by default

{% set users = craft.users %}

{% for user in users %}
    &lt;div class="searchresults"&gt;&lt;a href="/profile/{{ user }}"&gt;{{ user }}&lt;/a&gt;

    {% if user.getPhotoUrl %}
        &lt;img src="{{ user.getPhotoUrl(64) }}" class="profile_search_picture" alt="{{ entry.user.getFullName }}"/&gt;
    {% else %}
        &lt;img src="/img/fallback.png" class="profile_search_picture" alt="{{ entry.user.getFullName }}"/&gt; 
    {% endif %}

&lt;/div&gt;
{% endfor %}





  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/assets/sources/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/assets/tempuploads/field_3/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/assets/tempuploads/field_4/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/assets/tempuploads/user_1/field_3/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/assets/tempuploads/user_1/field_4/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/temp/uploads/userphotos/harry/, but could not.
  2017/04/24 11:24:10 [error] [application] Tried to read the folder contents of /Applications/MAMP/htdocs/craft/storage/runtime/temp/uploads/userphotos/remco/, but could not.




the console gives this error

GET http://localhost/cpresources/userphotos/remco/64/17492405_10212330524487585_7776812525773615973_o.jpg?x=UoEZXg1dH net::ERR_CONNECTION_REFUSED
I don't think the /Applications/MAMP/htdocs/craft/storage/runtime/assets/sources/ log entries are related to the request when getResourceUrl() is called.  Of if they are, they are elsewhere in the request and not as a direct result of calling getResourceUrl()`.

The error in the console seems like the one to investigate.  Based on net::ERR_CONNECTION_REFUSED, I'd check to make sure that craft/storage is recursively writable by PHP as a starting point.