BuddyPress activity pluss missing posts (view link not working)

Good morning!

we are experiencing an odd issue where some users - just a few - post items on the activity stream, but they don't actually post. They show up in the header "cover" area, but the "View" link shows: https://www.vegantravel.com/activity/p// (missing the activity post number) in stead of something like this: https://www.vegantravel.com/activity/p/4755/

One of the users that demonstrate this issue is: https://www.vegantravel.com/members/food4thoughtvegan/
another: https://www.vegantravel.com/members/vegannomad/

Most other users are able to post as normal - the top user was able to post just yesterday

Neither of the broken posts show up in the back-end activity feed either.

Any ideas?

Thanks!

Wordpress Version: 4.5.2
BuddyPress Version: 2.5.2
BuddyPress Activity Plus: up-to-date

  • Kasia Swiderska
    • Support nomad

    Hello DirectNET,

    Could you provide me example of the post that is broke? I've checked this member activity https://www.vegantravel.com/members/food4thoughtvegan/ and all posts had proper link so I'm not sure what I should looking for (I know that you cannot provide me full link as those are broke, but you could link me to profile and tell me what content should I look for).

    You can enable debug mode in WordPress and then ask members that are having this problem to try to post again, so this would trigger error and tell us why this is not working. To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

    define('WP_DEBUG', true);

    In order to enable the error logging to a file on the server you need to add yet one more similar line:

    define( 'WP_DEBUG_LOG', true );

    In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

    Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:

    define( 'WP_DEBUG_DISPLAY', false );

    The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it. I would need then to see contents of the debug.log file - so please paste it to the text file and attach to post.

    kind regards,
    Kasia

  • DirectNET
    • WPMU DEV Initiate

    Thanks for getting back to us! :slight_smile:

    If you check that user page, and hover over the "view" link in the activity post that shows up just under her profile image, you will see the broken link. The most recent activity post is: "#wtfvegantravel going to Vegas is now more fun because there are more vegan choices! ???? This was at Vegenation and they had 2-4-1 mimosa specials. It’s ok to treat yo self ???? #vegan #Vegas @vegannomad in Pdx View" (that last view has the broken link)

    that post does not show up in the actual feed, just in the profile header section with the profile image and cover image.

    I will update our WP-config file.

    Thanks again!

  • Kasia Swiderska
    • Support nomad

    Hello DirectNET,

    Thanks for more information - I do see this broken post. Can I assume that when new post will be added this one broken will not get to the activity stream?
    I tried to replicate this issue on my site but activity stream adds new posts without no problem. Do you think it's possible to get whole post content that is missing (maybe this use has it written down somewhere else) - I'm asking because I saw that once when one character in post content was preventing post to be saved in database.

    Let me know about result with debug mode - if there was another case of broken posts and something showed in the debug.log.

    kind regards,
    Kasia

  • DirectNET
    • WPMU DEV Initiate

    Your assumption is correct. the post with the broken link will not show up in the activity feed.

    Here is the HTML content of one missing post:
    <div id="latest-update"> Because the travel contests don’t stop… ::wink:: HUMGO thanks to VeganTravel for making this giveaway possible. w00t. <img draggable="false" class="emoji" alt="????" src="https://s.w.org/images/core/emoji/72x72/1f600.png"> View
    </div>

    another one:

    <div id="latest-update"> @vegannomad in PDX
    Wish I could rewind the clock <img draggable="false" class="emoji" alt="?" src="https://s.w.org/images/core/emoji/72x72/23ee.png"><img draggable="false" class="emoji" alt="????" src="https://s.w.org/images/core/emoji/72x72/1f559.png"> to enjoy these delicious beer battered avocado tacos one more time at @nobonesbeachclub in Seattle. Time stood still they were so scrumptious!
    #wtfvegantravel #seattlevegan #ballardseattle #latergram View
    </div>

    and a third:<div id="latest-update">@vegannomad in PDX .maui 2013 + coconuts = <img draggable="false" class="emoji" alt="????" src="https://s.w.org/images/core/emoji/72x72/1f331.png"><img draggable="false" class="emoji" alt="????" src="https://s.w.org/images/core/emoji/72x72/1f334.png"><img draggable="false" class="emoji" alt="????" src="https://s.w.org/images/core/emoji/72x72/1f49a.png"><img draggable="false" class="emoji" alt="??" src="https://s.w.org/images/core/emoji/72x72/2600.png">. View</div>

    Looking at pages that have the broken link issues it appears (at least all the ones I have located) they are using an emoji in the post. - I did find one post with an emoji that was functioning. DO you suppose it could be the alt tag with the funky character? ( alt="?" )

    here is one with an emoji that is working:
    <div id="latest-update">the famous #vegan ramen from T’s TanTan in #tokyo station!! My favorite place to stop for lunch <img draggable="false" class="emoji" alt="?" src="https://s.w.org/images/core/emoji/72x72/2728.png"> @vegannomad in PDX View</div>

    I was using the following page to find these posts: https://www.vegantravel.com/members/shannon/friends/
    you can hover the "view", but to see the actual post, you will have to click the name.

    In terms of the error log, the one I have is pretty long. Anything in particular I should be looking for?

    Thanks!

  • Kasia Swiderska
    • Support nomad

    Hello DirectNET,

    I've tested those emojis and they did not breake BuddyPress Activity - I copied even emoji character and still get post with correct url in activity. :slight_frown:
    Can you upload debug.log to service like dropbox and share a link to this file here? But please check if there was broken post after you enabled debug - if there was no broken posts there will be nothing to look for. If you find that post then there will be time stamp and we will know where to look in debug log for suspicious entries.

    kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.