Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jared Atchison

    (@jaredatch)

    Are you testing with an admin user account? Normal user’s cant use the upload.

    Also, it might be a conflict with another plugin you have that is loading on the front end. To test I would disable the other non-bbPress plugins you have and see if that helps.

    Thread Starter klantomo

    (@klantomo)

    Jared, thanks for the reply. Yes, I tested with an admin account. I disabled all plugins except bbpress and bbPress Enable TinyMCE Visual Tab. I also switched to the Twenty Twelve theme to ensure that nothing in my functions.php interferes. Still the same error.

    It appears something is uploading because the speed of the progress bar depends on the file size. However, when the upload is finished I get the error message and no new files appear in the upload directory.

    I tested with WordPress 3.5.1 and 3.5.2. bbpress version is 2.3.2. bbPress Enable TinyMCE Visual version is 1.0.0.

    Plugin Author Jared Atchison

    (@jaredatch)

    Hmm, I can’t duplicate it.

    I did a fresh install of WP, bbP, and the plugin and it works as expected.

    https://screencast.com/t/shYjv3xFpV

    There is either something that is still interfering (mu-plugin, script, etc) or its a server setup – at least that would be my guess.

    This is not an officially supported feature of bbPress (which is why it’s disabled by default) so it’s hard to say.

    Thread Starter klantomo

    (@klantomo)

    Thanks a lot for trying it!

    It appears to be a database issue. I tried it now with a new WordPress database and it works.

    The plugins only seems to activate bbpress functionality. Adding this to my functions.php has essentially the same effect.

    function bbp_enable_visual_editor( $args = array() ) {
    $args[‘tinymce’] = true;
    $args[‘media_buttons’] = true;
    return $args;
    }
    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );

    File uploads still don’t work.

    It is interesting to note that I can upload files to forum posts through the WordPress admin interface. Therefore I assume that the bug is in the bbpress code.

    Is there any chance that media uploads will be enabled by default in a future bbpress version? I guess then I won’t be the only one with this problem.

    Thread Starter klantomo

    (@klantomo)

    I am a bit closer to the problem now. It is not a database issue as I first thought.

    The problem is related to SSL. If I login without SSL the upload works, if I login through SSL the upload fails. In the latter case I am automatically logged out after I tried to upload a file.

    If I access the forum page through SLL after an SSL login, the upload works as well. Thus the combination SSL login plus http upload doesn’t work.

    It doesn’t matter if you force login through SSL in wp-config.php with define(‘FORCE_SSL_ADMIN’, true); or define(‘FORCE_SSL_LOGIN’, true);

    Plugin Author Jared Atchison

    (@jaredatch)

    I’m going to mark this as resolved just because it wasn’t a direct issue with the plugin. If/when you find the solution definitely let us know.

    Thread Starter klantomo

    (@klantomo)

    I don’t think that the issue is resolved. SSL is essential on a site where people log on with passwords. I also think that many webmasters will waste a lot of time with finding the bug. Therefore I think the plugin should not only enable TinyMCE but also fix the SSL bug. I guess it has a reason that this feature is currently disabled in bbpress. At least you should mention in the plugin description that it doesn’t work with SSL.

    Plugin Author Jared Atchison

    (@jaredatch)

    I will mention it via the readme in the next plugin update, that TinyMCE does not support front end media upload support over SSL.

    Thread Starter klantomo

    (@klantomo)

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘An error occurred in the upload’ is closed to new replies.