Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#8469 closed defect (bug) (fixed)

Buddypress is not working with PHP 8 - admin-ajax.php

Reported by: woahmazing's profile woahmazing Owned by: imath's profile imath
Milestone: 8.0.0 Priority: high
Severity: major Version: 2.3.0
Component: Media Keywords: has-patch commit
Cc:

Description

Hello , I'd like to report a bug in buddypress code

In

members/profile

section when you upload a photo the admin-ajax return 0 and throws HTTP Error

You can view this full issue on [https://wordpress.stackexchange.com/questions/387868/http-error-upload-localhost
]

Attachments (1)

8469.patch (700 bytes) - added by imath 3 years ago.

Download all attachments as: .zip

Change History (6)

#1 @woahmazing
3 years ago

The logs has been included in that question , to make things easier for you i'll just include it here

[##########] [php:error] [pid 6888:tid 1828] [client 127.0.0.1:50944] PHP Fatal error:  Uncaught Error: Cannot use object of type WP_Error as array in E:\\xampp\\htdocs\\domainname\\wp-content\\plugins\\buddypress\\bp-core\\bp-core-avatars.php:936\nStack trace:\n#0 E:\\xampp\\htdocs\\domainname\\wp-content\\plugins\\buddypress\\bp-core\\bp-core-avatars.php(1047): bp_core_avatar_handle_upload(Array, 'bp_members_avat...')\n#1 E:\\xampp\\htdocs\\domainname\\wp-includes\\class-wp-hook.php(292): bp_avatar_ajax_upload('')\n#2 E:\\xampp\\htdocs\\domainname\\wp-includes\\class-wp-hook.php(316): WP_Hook->apply_filters('', Array)\n#3 E:\\xampp\\htdocs\\domainname\\wp-includes\\plugin.php(484): WP_Hook->do_action(Array)\n#4 E:\\xampp\\htdocs\\domainname\\wp-admin\\admin-ajax.php(187): do_action('wp_ajax_bp_avat...')\n#5 {main}\n  thrown in E:\\xampp\\htdocs\\domainname\\wp-content\\plugins\\buddypress\\bp-core\\bp-core-avatars.php on line 936, referer: http://domainname.com/members/admin/profile/change-avatar/

@imath
3 years ago

#2 @imath
3 years ago

  • Component changed from Members to Media
  • Keywords has-patch commit added; needs-codex removed
  • Milestone changed from Awaiting Review to 7.4.0
  • Version changed from 7.3.0 to 2.3.0

I confirm. The attached patch is fixing the issue. But if there's a WP Error there, it surely means there's a missing PHP library (eg: GD or imagick).

#3 @imath
3 years ago

In 12942:

Avatars: In case of error while shrinking image use the unshrinked one

Props woahmazing

See #8469 (7.0 branch)

#4 @imath
3 years ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12943:

Avatars: In case of error while shrinking image use the unshrinked one

Props woahmazing

Fixes #8469 (Trunk)

#5 @imath
3 years ago

  • Milestone changed from 7.4.0 to 8.0.0

Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.