Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4138 closed defect (bug) (worksforme)

Possible BUG - Create new forum topic not functioning with periods in end of title field

Reported by: chr313's profile chr313 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Forums Keywords: needs-testing reporter-feedback


When creating a new topic titled "I am having an issue trying to find a specific Brand…" the next page says "page cannot be found". After going back to the topics page I can see the topic created but cannot get to the topic as it still shows "page cannot be found" when I click the topic name. I can see that the url has the "…" in the permalink slug, but this did not happen in older versions of buddypress (1.2.9). I could create the same topic title in the older version and it would be ok and trim the "…" out of the url/permalink.

I thought it was any special character but it seems it only happens with the 3 periods. It happens every time I try to post.

Solutions nor possible bugs were on the support forum about this issue.

test site:

Thank you for any help,

  1. Which version of WordPress are you running? 3.2.1
  2. Did you install WordPress as a directory or subdomain install? domain
  3. If a directory install, is it in root or in a subdirectory? subdirectory
  4. Did you upgrade from a previous version of WordPress? If so, from which version? No
  5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
  6. Which version of BP are you running? 1.5
  7. Did you upgraded from a previous version of BP? If so, from which version? No
  8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? BP achievements, BP auto group join, BP community stats, BP global unified search, BP groups directory extras, BP member profile stats, BP rate forum posts.
  9. Are you using the standard BuddyPress themes or customized themes? I am using a child theme which is the direct copy of the default theme with some customization.
  10. Have you modified the core files in any way? no
  11. Do you have any custom functions in bp-custom.php? no
  12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? built-in
  13. Please provide a list of any errors in your server’s log files.
  14. Which company provides your hosting? Powweb
  15. Is your server running Windows, or if Linux; Apache, nginx or something else? I believe Linux

Change History (3)

#1 @DJPaul
12 years ago

  • Keywords needs-testing reporter-feedback added

I'm unable to recreate on trunk/1.6. Can anyone?

#2 @boonebgorges
12 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

I can't recreate the issue either. I've tried on a couple different versions of BP (1.5 branch and 1.6 trunk) and with a number of different permutations of the ellipsis character(s). In all cases, the characters are properly stripped (as you describe being the case in BP 1.2.9) when creating the slug, and all links work properly.

chr313, if it helps and if you're able, you may want to try debugging in the function bp_forums_new_topic(), in the file bp-forums/bp-forums-functions.php. In that function, the slug is sanitized as follows:

if ( empty( $topic_slug ) )
    $topic_slug = sanitize_title( $topic_title );

If sanitize_title() is not doing its job for some reason, this may actually be a WP bug.

You may also consider disabling your other BP plugins, as it's possible (unlikely, but possible) that one of them is interjecting itself into the topic creation process, and sanitizing the slug improperly.

I'm closing this ticket as worksforme, but if you're able to make any headway, please reopen with additional details.

#3 @DJPaul
12 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.