Skip to:
Content
Pages
Categories
Search
Top
Bottom

URLs in messages being truncated

  • @phucitol

    Participant

    While working on a related issue I came across this problem. A url in a private message is being altered when displayed, and I can’t track down the reason. I tried using the default themes with all plugins except buddypress disabled and got the same behavior.

    When I look in my database the message is saved with the correct URL:

    this should be similar URL
    
    
    Fossils
    what will happen?

    but when viewing the message it links to myfossil.staging.wpengine.com/fossils/

    Can anyone set me in the right direction on this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @phucitol

    Participant

    Well that is interesting. It made the same change to URL when I posted it in the code block of my previous comment. The path was supposed to be
    /fossils/28220/

    I think this bug may be related to autolinking and possibly to the link preview feature.

    @phucitol

    Participant

    Update: The meta_value saved in wp_bp_messages_meta for meta_key _oembed-***** has the wrong URL saved in there so the problem is occurring before the data is saved. The fact that this same problem happened on my site as well as in this forum is interesting and leads me to believe the problem is somewhere in wordpress or buddypress core files.

    @phucitol

    Participant

    Final analysis. It turns out that the previous developer’s method for loading certain plugin related pages/posts was done very much NOT “the wordpress way”. This caused bad oembed URLs to be created, so when the oembed data was returned it was corrupted. I was able to resolve all the issues.

    This thread can be closed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URLs in messages being truncated’ is closed to new replies.
Skip to toolbar