Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Bas van der Togt
    Participant

    @basvandertogt

    Thank you for your answer. I can find the page Messages but not Notices. I’m a admin.


    Bas van der Togt
    Participant

    @basvandertogt

    I found the problem myself already. After some dedugging i found this error on the console:

    Wrong JPEG library version: library is 62, caller expects 80 /home/***/domains/***/public_html/wp-content/uploads/avatars/22/Burning_Man_2009_Art_Gimbel_Surfing8.jpg' @ error/jpeg.c/JPEGErrorHandler/316

    After i updated the jpeg library everything worked.


    Bas van der Togt
    Participant

    @basvandertogt

    Somebody?


    Bas van der Togt
    Participant

    @basvandertogt

    Yes


    `// Make sure the file is inside the Cover Image Upload path.
    if ( false === strpos( $args[‘file’], $cover_image_class->upload_path ) ) {
    return false;
    }

    // Resize the image so that it fit with the cover image dimensions
    $cover_image = $cover_image_class->fit( $args[‘file’], $dimensions );
    _doing_it_wrong( ‘bp_attachments_cover_image_generate_file’, print_r( $cover_image, true ), ‘2.4.0’ );
    $is_too_small = false;

    // Image is too small in width and height
    if ( empty( $cover_image ) ) {
    $cover_file = $cover_image_class->generate_filename( $args[‘file’] );
    @rename( $args[‘file’], $cover_file );

    // It’s too small!
    $is_too_small = true;
    } elseif ( ! empty( $cover_image[‘path’] ) ) {
    $cover_file = $cover_image[‘path’];’


    Bas van der Togt
    Participant

    @basvandertogt

    This is everything what is written to the log after i tried to upload an image:

    [02-Dec-2015 17:45:42 UTC] PHP Notice:  bp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 1.7.) in /home/***/domains/***/public_html/wp-includes/functions.php on line 3622
    [02-Dec-2015 17:45:43 UTC] PHP Fatal error:  Cannot use object of type WP_Error as array in /home/***/domains/***/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 874

    Bas van der Togt
    Participant

    @basvandertogt

    Tnx for your reaction and sorry for the late response 🙂

    I’ve set WP_DEBUG to true and added the code as you described but there’s no debug.log created inside wp-content/

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar