Since updating to WP 6.7 & PHP 8.3 I am seeing this warning many times when a profile is edited:
Warning: Attempt to read property "id" on null in?/home/[...]/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php on line 558
Really grateful for a fix.
]]>Hi,
We encountered a fatal error on our WordPress site when using the BuddyPress XProfile Image Field plugin. The error occurs when attempting to activate a user via the BuddyBoss platform’s signup process.
Error Details:
? WordPress Version: 6.6.2
? PHP Version: 8.2.24
? Active Theme: BuddyBoss Theme (Version 2.6.80)
? Plugin Causing the Error: BuddyPress XProfile Image Field (Version 3.0.0)
? Error Type: E_ERROR
? File: /wp-content/plugins/buddypress-xprofile-image-field/bp-xprofile-image-field.php
? Line: 478
Strack trace:
Stack trace:
#0 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(324): BP_XProfile_Image_Field->bpxp_image_field_update_on_user_activation(27, '...', Array)
#1 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/bp-members-functions.php(2098): do_action('...', 27, '...', Array)
#4 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-signup.php(735): bp_core_activate_signup('...')
#5 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-members-admin.php(1909): BP_Signup::activate(Array)
#6 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(324): BP_Members_Admin->signups_admin_load('')
#7 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /data/sites/web/b32jxcydmyrdbxio/www/wp-admin/admin.php(237): do_action('...')
#10 /data/sites/web/b32jxcydmyrdbxio/www/wp-admin/users.php(11): require_once('...')
#11 {main}
? thrown
Looking forward to your support. Thanks in advance.
]]>So the plugin was working until as recent as last week, been trying to trouble shoot everything, and the image uploaded just does not want to save and be shown in the bp-singup-list when approving members. Not sure if anyone else is experiancing this.
]]>Hello there,
Greetings!
First of all, thanks for creating such an amazing plugin! I just wanted to let you know of a critical error I encountered. The image field is set to required upon registration, but users are still able to sign up nonetheless. It just shows an error of ‘media failed to upload’ on the next page. Hope this gets resolved in no time. Thanks and have a great day ahead!
Best regards,
Ira Ybiernas
]]>Hi, there is a problem, i use buddypress approve member option, and when i go on a member profile approval page to verify his informations, their images don’t show as a preview, do you have a solution ? ( i send you a screenshoot link in google drive to see)
https://drive.google.com/file/d/1VdTx2UsFNS2jjFplvGP3GrUKZfgr90Sw/view?usp=sharing
https://drive.google.com/file/d/1q-29ZllRODxE6wL6mKWJl-yV81vANas6/view?usp=sharing
]]>Hey there,
I installed your plugin and noticed that the title for image fields was not rendering properly on the frontend forms or the admin forms. A quick inspection showed that regular xprofile fields show the name in <legend> tags, rather than the <label> tags that the plugin puts them in.
I fixed this by going to /classes/class-bp-xprofile-field-type-image.php in the plugin directory and changing line 95 to the following code:
<legend id="<?php bp_the_profile_field_input_name(); ?>-1"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'bp-xprofile-image-field' ); ?><?php endif; ?></legend>
Do you think you can roll this into the next update, so I do not need to worry about manually re-updating?
Thank you so much! Love the plugin.
Best regards,
Evan
Once registered the image field gets saved as a fake path.
https://hexart.in/wp-contentC:fakepathschool-id-card-500×500.jpg
Please help me resolve this.
But edit profile saves image perfectly in the hexart.in/wp-content/uploads/profiles/120/school-id-card-500×500-1.jpg
]]>Hi Alex
Great plugin, thanks.
The uploaded image isn’t showing on the edit screen or the front end because the path to the image source is being rendered as:
https://mydomain.com/wp-content/https://mydomain.com/wp-content/...
This is fixed when I replace:
$image_link = WP_CONTENT_URL . $image;
with:
$image_link = $image;
What would be the best way to make that change in functions.php?
Best,
]]>Hello,
i tried to add a picture on a registration form, then i testes it…
i have BP registration user plugin permit to validate a user but to see his data on a profile page..
data are displayed but not the picture : https://www.iefsante.eu/wp-contentC:fakepath509.jpg this is the path of the picture, then if with my admin user i change with another picture on the profile it is working.
any idea ?
]]>When I try to upload a jpg image, I get this error:
Specified file failed upload test.
When I try to upload a png image, I get this error:
Invalid file.
What can I do to fix this? Or even to further troubleshoot?
Thanks,
Scott
Hello,
first, thank you for this plugin.
Second, I have two problem.
1. Image field – The image can not be saved into the bpxcftr-profile-uploads directory with permission 777. Upload in WP media works.
2. Value from multi-select field is a:1:{i:0;s:9:”Violinist”;}. How can I change it?
Thank you
Jan
how can i use this program and NOT require the image to be used?
]]>I created a field with this.
for example:
$img = xprofile_get_field_data(999, $user_id);
when i use code like :
if(!empty($img)){echo ”;}
and i found:
this field will always remain not empty even if you deleted the photo you uploaded.
Hello!
Nice plugin. But how can I do align an image to center?
It’s for BuddyPress additional profile field.
Sincerely
Vasily
I’m getting the following error:
Notice: Use of undefined constant BP_XPROFILE_IMAGE_FIELD – assumed ‘BP_XPROFILE_IMAGE_FIELD’ in /wp-content/plugins/buddypress-xprofile-image-field/bp-xprofile-image-field.php on line 13
]]>Users can upload images in their profile. But it not appear in their profile.
What is the solution?
I use buddypress 2.8.2 and wordpress 4.8.0
]]>Is it possible to have the plugin add date to uploaded filenames? For example if I uploaded image.jpg could it name it 20170405-image.jpg?
Or even better, could it add the user’s name to the filename? I am using this on the signup form and I have no idea who uploaded what files.
]]>I want to image crop when we upload image in register page .is it possible with your plugin.
]]>I’m getting the following error after activation:
Warning: Declaration of BP_XProfile_Field_Type_Image::display_filter($field_value) should be compatible with BP_XProfile_Field_Type::display_filter($field_value, $field_id = ”) in /wp-content/plugins/buddypress-xprofile-image-field/classes/class-bp-xprofile-field-type-image.php on line 17
]]>Also when selected as required field even after uploading an image, its displays the error that this field is a required field. After removing required option the form got submitted with the image uploaded but the profile picture did not get added to the user.
]]>Hi all,
Cant believe this isn’t a basic feature in buddy press yet. Can I add a custom image besides the profile image?
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>Do I miss something????
I Install the plugin but I see nothing on my form..
Do I have to do something ells?
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>I am using BuddyPress XProfile Image Field plugin
How code to can zoom the image on user’s profile?
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>I’m trying to add images pulled from the buddypress image field to the members search page (https://www.mowiseonline.com/olleypark/members/) but it’s not pulling the image page used.
It comes back as <img src=”https://www.mowiseonline.com/olleypark/wp-content” alt=”image”>
The code I’m using is <?php bp_member_profile_data( ‘field=Featured Image 1’ );?>
Could you please provide some assistance to get this working?
Thanks!
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>I can’t use it. Getting “The profile field type image
is not registered.”
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>hello,
After the plugin’s activation, i have this error : Undefined index: sort_order_image in …wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-field.php on line 680
The profile field type image
is not registered.
When i want to choose this field.
I dont know how to resolve this, can i have your help please ?
Thx all ??
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>When I view the profile edit page, the “This field can be seen by” entry occurs after the field is displayed.
However, of the images created by this plugin, the “This field can be seen by” entry is displayed
the image. This is confusing and before my first image I get two “This field can be seen by” entries – one after the non-image and one before the image.
Please can you re-order so the “This field can be seen by” entry occurs after the image?
thank you
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>Hello
In last few days I’m trying to solve problem with deleting image but without success. When I upload some image and want to change it deleting on button in edit profile section, image disappear from visual section but still exist in uploads/profiles/”profile_id” . As far as I understood jQuery code written for this plugin, it use hide() function to “remove” picture. After “deleting” process with button, I can add another image on this place but ex image still exist in my disk space.
That can be a big problem if you have many members in buddypress and every member can add 10 pictures (for example). Every time when they change pictures, ex pictures remain in your storage and soon you will have a thousand unused pictures what will completely eat memory space.
In this screenshot you can see I have 2 images showed in my profile:
https://prntscr.com/5jn6m8
Please take look in my data storage how much images I really have:
https://prntscr.com/5jn8ay
Can anybody help me?
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>Here is my testing page that relates to al info below.
I changed Line #144
FROM THIS: $bpxp_field_value = WP_CONTENT_URL . $raw_field_value;
TO THIS: $bpxp_field_value = WP_CONTENT_URL .’/uploads/’. $raw_field_value;
That fixed the images to now show up on Front End Profile–>View page.
Then I changed Line #173
FROM THIS: $image_link = WP_CONTENT_URL . $image;
TO THIS: $image_link = WP_CONTENT_URL .’/uploads/’. $image;
That fixed the images to show up in WP backend Users–>Extended Profile
In the Users–>Extended Profile there are duplicates of each Image Field. My example has 3 Image upload fields (See Screenshot).
…and for some reason only the Bottom duplicate image upload works.
also, I can ONLY use the Backend Bottom duplicate image to upload images. The Front End image upload does not work and will also erase any previous image.
One last note: this is the code i am using to display the images within each members Profile Header area (member-header.php)
<img src="<?php $upload_dir = wp_upload_dir(); echo $upload_dir['baseurl']; bp_member_profile_data('field=Organization Image 1');?>" ?>
PLEASE HELP. I’m no coder and i’ve hit my mental limit on what to do next.
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>Hi i tried this plugin and works perfect but i need to know how can i place the generate image in another part of the profile not on the profile tab. I want to display the imagen as a cover of the profile.
Can some help me please, thanks
https://www.ads-software.com/plugins/buddypress-xprofile-image-field/
]]>