WordPress.org

Ready to get started?Download WordPress

Forums

Strange behavior with wp_get_attachment_thumb_url function in 2.8.1 (2 posts)

  1. Xerotone
    Member
    Posted 5 years ago #

    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/domain.com/img/') 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?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.