#8469 closed defect (bug) (fixed)
Buddypress is not working with PHP 8 - admin-ajax.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (6)
#2
@
5 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).
Note: See
TracTickets for help on using
tickets.
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/