Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity posting does not work …

  • Avatar of flemmingbjerke
    flemmingbjerke
    Member

    @flemmingbjerke

    When a post is sent, nothing happens. Except that phrase turn up above the text field: “Please enter some content to post”. Inserting some new text, gives the same result. Looking at the code:

    `./wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:
    function bp_dtheme_post_update() { ……….
    ……..
    if ( empty( $_POST ) ) {
    echo ‘-1

    ‘ . __( ‘Please enter some content to post.’, ‘buddypress’ ) . ‘

    ‘;
    return false;
    `
    Apparently, when $_POST is empty, this happens. But, in activity/post-form.php, the textfield variable is “whats-new”. So, I guess there should be some way that $_POST is turned into $_POST??? In any case, the textfield is not saved and does not turn up anywhere.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of flemmingbjerke
    flemmingbjerke
    Member

    @flemmingbjerke

    When an activity update is posted, the function bp_activity_post_form_action in wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php is called. This function sends defines:

    function bp_get_activity_post_form_action() {
    return apply_filters( ‘bp_get_activity_post_form_action’, site_url( BP_ACTIVITY_SLUG . ‘/post’ ) );

    BP_ACTIVITY_SLUG is just the url of the activity (http://example.com/activity). To this url I added /post, and I tried it in the browser. I got the extremely informative error: “Are you sure you want to do this?” Now, I guessed, it would work without the /post-ending … and it did. (I had deactivated a number of plugins, but now they are activated again).

    What versions of WordPress, BuddyPress are you using? What theme and plugins are you using?

    Avatar of Virtuali
    Virtuali
    Participant

    @gunju2221

    Looks like you could of modified some textarea ID’s because thats the only reason that I could think of that that could happen.

    Unless your running a 3rd party plugin.

    Avatar of flemmingbjerke
    flemmingbjerke
    Member

    @flemmingbjerke

    Thank you, it turned out to be the plugin bp-tinymce that made the problems. The activity/post/ issue was a haphazard.

    wordpress: 3.1.2
    buddypress: 1.2.8

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.