I wanted to add a few more details and error logs:
Linux kernel 5.4.0-90-generic x86_64
Web server nginx/1.21.4
PHP version 7.4.27 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 1000
PHP time limit 3600
PHP memory limit 1024M
Max input time 3600
Upload max filesize 2048M
PHP post max size 2048M
Database 10.4.22-MariaDB-1:10.4.22+maria~bionic
Debugging the media upload issues on profile:
Main area (after posting a picture)
WordPress database error: [Unknown column 'privacy' in 'field list']
SELECT privacy from wp_bp_activity WHERE id = 54
WordPress database error: [Column 'privacy' cannot be null]
INSERT INTO <code>wp_youzify_media</code> (<code>media_id</code>, <code>item_id</code>, <code>component</code>, <code>user_id</code>, <code>privacy</code>, <code>type</code>, <code>time</code>, <code>data</code>, <code>source</code>) VALUES ('5080', '54', 'activity', 1, NULL, 'image', '2022-01-01 06:55:05', '0', 'activity_photo')
Sidebar Media Widget (when browsing a user, who definitely should have media items there):
Photos tab:
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT m.id, m.media_id, m.item_id, m.data FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_photo','activity_slideshow','activity_quote','activity_link','new_avatar','new_cover') GROUP BY m.id ORDER BY m.id DESC LIMIT 9
# Sorry, no items found
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT COUNT(*) FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_photo','activity_slideshow','activity_quote','activity_link','new_avatar','new_cover')
Videos tab:
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT m.id, m.media_id, m.item_id, m.data FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_video') GROUP BY m.id ORDER BY m.id DESC LIMIT 9
# Sorry, no items found
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT COUNT(*) FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_video')
Audios tab:
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT m.id, m.media_id, m.item_id, m.data FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_audio') GROUP BY m.id ORDER BY m.id DESC LIMIT 6
# Sorry, no items found
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT COUNT(*) FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_audio')
Files tab:
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT m.id, m.media_id, m.item_id, m.data FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_file') GROUP BY m.id ORDER BY m.id DESC LIMIT 6
# Sorry, no items found
WordPress database error: [Unknown column 'a.privacy' in 'where clause']
SELECT COUNT(*) FROM wp_youzify_media AS m JOIN wp_bp_activity AS a ON m.item_id = a.id WHERE m.component = 'activity' AND a.hide_sitewide = 0 AND a.user_id = 1 AND a.privacy IN ( 'public', 'members', 'friends' ) AND a.is_spam = 0 AND a.type IN ('activity_file')
-
This reply was modified 2 years, 10 months ago by Christopher Sem. Reason: had given info about the wrong server in the previous post