Support » Fixing WordPress » Strange behavior with wp_get_attachment_thumb_url function in 2.8.1

  • Xerotone


    I just upgraded from 2.7 -> 2.8.1 and found that a good number of my thumbnails (which I display next to posts) were not displaying. I traced this to strange behaviour in the core wp_get_attachment_thumb_url function itself which shows no overt changes between versions. What happens is that this function sometimes inserts absolute paths (‘/home/.whatever/user/’) before the image URL and immediately after the domain. This is particularly odd as I no longer use these absolute paths (they are from old server configurations) and I cannot find them anywhere in the database.

    Presently I am stripping the various paths out with str_replace but would really like to know what the root of this problem might be. Any ideas?

Viewing 1 replies (of 1 total)
  • esmi


    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems.

Viewing 1 replies (of 1 total)
  • The topic ‘Strange behavior with wp_get_attachment_thumb_url function in 2.8.1’ is closed to new replies.