Skip Navigation

[Resolved] User Edit form not uploading image for Subscriber Role

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 3 voices.

Last updated by Waqar 2 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#2311283

Hi Support team,
I am having a really strange issue. I have a user edit form that works perfectly if the user has Admin rights. and admin user can edit every field with this form without any issue and can also upload image with the image upload field given on the same form. But if user is a Subscriber role and want to upload an image using the same form where image field is given then it gives a weird validation error. So Please watch the video attached in this ticket and provide me a quick and instant support.

hidden link

#2311337

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Manish

I just checked the same on my own local test site where I didn't have any such problem. It should work correctly when the form settings do not specify to use the WP Media Uploader, but I can see in your video in your case that it does not.

Could I ask you please to check whether the problem occurs when you have all non-Toolset plugins disabled, using a default theme such as twentytwenty, and with any custom code snippets disabled?

If it does work in that case, then there would seem to be a conflict with some other product code, and it should be possible to identify which product by a process of elimination.

Please let us know what you find.

#2311511
deprecated in Php 8.0.png

Hi Nigel,
So I found that Paid Membership Pro Plugin is creating conflict. I deactivated all plugins excluding Elementor, Elementor Pro and another elementor addon. So with this basic plugin, It was working fine, but as soon as I activated Paid Membership Pro, It immediately started showing the same problems, So It means there is something wrong with Toolset fields and Paid Membership Pro.
Unfortunately, Paid Membership Pro and Toolset both are really important for me to complete and launch this project. I tried to find out the actual bug, But even after enabling the Debug mode, It shows no error log in frontend. So I would request you to please use my previously shared login info and help me find the bug and fix it.

I also noticed after upgrading my PHP Version that your toolset plugins are not working very well and have lot of deprecated code used. So Please look at the attached screenshot and fix them.

#2311885

Hi,

Thank you for sharing these findings and it is a good thing that you were able to narrow down the conflicting plugin.

I tested the free version of the "Paid Membership Pro" plugin on my test website, but couldn't reproduce this issue. This suggests that something specific to your website is involved.

Do I have your permission to download a clone/snapshot of your website? This will help us in investigating this on a different server, without affecting the actual website.

regards,
Waqar

#2311943

Hi Waqar,
Yeah sure you can clone and test it in your server.

#2312843

Thank you for the permission and I've downloaded your website's clone.

I'll be performing some tests on this clone and since a third-party plugin is involved, this investigation is going to be more challenging.

Thank you for your patience and I'll share the findings as soon as this testing completes.

#2313559

Hi Waqar,
Any luck on testing the issue?

#2314249

Just wanted to let you know that I'm still working on this.

I'll share my results with you, by the end of the day today.

#2315695

Thank you for waiting as this investigation took longer than initially expected.

During troubleshooting, I noticed that issue only appears for the 'subscriber' role user, who has placed an order and some membership level from the "Paid Membership Pro" plugin has been applied. For a newly created subscriber, the edit user form works without any issue.

It turns out that using the [pmpro_billing] shortcode from the "Paid Membership Pro" plugin on the same page as the user edit form, results in this incompatibility. I tried a couple of workarounds, but none of them worked to make these two items, useable on the same page.

Based on these tests, it would be best to keep the user edit form on this "profile edit "page and move the shortcode [pmpro_billing] shortcode, on a new "billing details" page.