Update: I realized media table wp_youzify_media is always empty. Even with rtmedia inactive. Activity uploads are not being inserted in your media table. This error is reported:
Database Error in WordPress: [Unknown column 'privacy' in 'field list']
SELECT privacy from wp_bp_activity WHERE id = 608
Database Error in WordPress: [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 ('247', '608', 'activity', 1, NULL, 'image', '2021-11-15 10:06:15', '0', 'activity_photo')
That is right, there is not privacy field in bp-activity table. I manually created privacy field in activity table and the media item is inserted in youzify_media table but with no src or media_id so item is showed as an empty frame in Photos youzify widget. Just a test.
Something is missing and I donot what exactly. Youzify Configuration maybe? Will it work in Pro version?
Thanks friends
Versions:
Wordpress (localhosted): Versión 5.8.2
Idioma del sitio: es_ES
Theme: ExS ProVersión: 1.7.6
Buddypress: Versión 9.1.1
Youzify: Versión 1.1.5
-
This reply was modified 2 years, 5 months ago by kapilaya.
Update:
Problem is fixed with these changes as follows:
1.- Manually creating privacy field in wp_bp_activity table.
2.- Adding this code:
$privacy = !empty( $privacy ) ? $privacy : ‘public’;
in line 279 in class.youzify_attachments.php at /plugins/youzify/includes/public/core/
Photos are displayed in youzify widget as desired. There is not any wp filter on args of db insert function so modifying the code is the only way.
These changes will be lost in the next plugin update so please let me know some permanent way to fix the problem.
By the way the code is easy to follow, thanks a lot for that.
Thanks in advance
Hello @kapilaya
We will try to modify the code in the next update so this issue will not happen again as we can see this issue pretty complex. However, if you in rush, you may consider getting a PRO version.
As by having a PRO license, you can access our premium support forum and our agents will be by your side. Providing a snippet so it will be fixed 100%. 🙂
Best Regards, KaineLabs Team.
Total yes. I will go to pro. All my research took me to Youzify as best option. My only doubt is will I get Photo Albums feature in PRO version ?
Thanks friends
Hello @kapilaya
Sorry, the album system is not included in the Youzify version. You will need the Youizfy Album System add-on plugin that will be released in the next few weeks. With this add-on, your members will have abilities to upload media directly to the album and manage them.
Youzify also has a Media system that is displayed on the Media Tab and Media Widget. However, all media displayed there come from the Activity posts. I mean, if your members upload any media on the Activity Stream, the media will show automatically on the Media tab/widget. 🙂
Best Regards, KaineLabs Team.