media attachment bug
-
Hi
I’ve found a bug :
on a fresh install wordpress with buddypress & youzifywhen I change the profile picture or cover I’m getting an empty attachment
https://prnt.sc/18sxz01
I found out that if I create the required folder manually
/wp-content/uploads/youzify/temp/ it’s work fine without any problemalso if I post a photo activity it creates the required dir and solves the problem too.
https://prnt.sc/18szcbg
https://prnt.sc/18szvnhLooks like it can’t create the /youzify/temp/ dir when changing cover or picture
while it can when posting activity please fix it.
Regards,`2021-07-05 19:46:58.534859 [NOTICE] [1555] [108.162.229.110:12988#***.com] [STDERR] PHP Warning: copy(/home/***.com/public_html/wp-content/uploads/youzify/temp/60e345927cf98-bpfull.jpg): Failed to open stream: No such file or directory in /home/***.com/public_html/wp-content/plugins/youzify/includes/public/core/class-youzify-attachments.php on line 920
2021-07-05 19:46:58.535952 [NOTICE] [1555] [108.162.229.110:12988#***.com] [STDERR] PHP Fatal error: Uncaught TypeError: Illegal offset type in /home/***.com/public_html/wp-content/plugins/youzify/includes/public/core/class-youzify-attachments.php:289
Stack trace:
#0 /home/***.com/public_html/wp-content/plugins/youzify/includes/public/core/class-youzify-attachments.php(928): Youzify_Attachments->save_media_attachments()
#1 /home/***.com/public_html/wp-includes/class-wp-hook.php(292): Youzify_Attachments->set_new_avatar_activity()
#2 /home/***.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#3 /home/***.com/public_html/wp-includes/plugin.php(551): WP_Hook->do_action()
#4 /home/***.com/public_html/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-activity.php(331): do_action_ref_array()
#5 /home/***.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php(1930): BP_Activity_Activity->save()
#6 /home/***.com/public_html/wp-content/plugins/buddypress/bp-members/bp-members-activity.php(200): bp_activity_add()
#7 /home/***.com/public_html/wp-includes/class-wp-hook.php(294): bp_members_new_avatar_activity()
#8 /home/***.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#9 /home/***.com/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
#10 /home/***.com/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php(1412): do_action()
#11 /home/***.com/public_html/wp-includes/class-wp-hook.php(292): bp_avatar_ajax_set()
#12 /home/***.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#13 /home/***.com/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
#14 /home/***.com/public_html/wp-admin/admin-ajax.php(187): do_action()
#15 {main}
thrown in /home/***.com/public_html/wp-content/plugins/youzify/includes/public/core/class-youzify-attachments.php on line 289`
The topic ‘media attachment bug’ is closed to new replies.