Skip Navigation

[Resolved] File uploads not working for users below Administrator level

This support ticket is created 5 years, 7 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Author
Posts
#1261119

I am trying to: upload a small .pdf

Link to a page where the issue can be seen: site is restricted

I expected to see: a successful file upload

Instead, I got: [06-Jun-2019 09:19:08 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in public_html/wp-content/plugins/types-access/vendor/toolset/toolset-common/toolset-forms/classes/class.eforms.php on line 955

#1261405

Hi, is the upload successful if you temporarily deactivate Toolset Access? If so, what are the permissions for the Media post type in Toolset Access?

#1261441

I'll need to put it into maintenance mode to test de activating access as it's heavily used on this site, that'll have to wait until after 11pm (BST) when all staff are finished up.

The roles reporting the issue have publish (&everything else) permission on both Media and the Post Type.

Will I try rolling access back a couple of versions?

Thanks,
D

#1261499

Yes you can try rolling back a couple of versions to see if that helps. Regardless, I'll probably have to work with a copy of your site to try to pin down the problem. If you can create a clone using the Duplicator plugin during your site downtime, that would probably be best.

#1262483

Hi Christian, Just an update, site is over 15gb, a royal pain in the butt to duplicate and move. I'll try testing access and previous versions over the downtime at the weekend and let you know how I get on. Will you please keep the ticket open until I come back to you on Monday?

If we do go down the route of duplicating the site would you need the uploads folder in wp-content ?

Many thanks,
D

#1263569

Ok, access 2.62 is allowing uploads for users below admin level - what do we do now?

#1264505

Okay thanks for the rollback information. I can work on a stripped-down copy of the site. You can filter out the wp-uploads directory to save space. If there are any cache directories feel free to drop those too. Assuming the problem happens with only Toolset and a default theme like Twenty Nineteen active, you can drop the plugins and themes folders as well if necessary. I would prefer you did not try to shrink the database. I'm activating private reply fields here so you can share a download link for me.

#1268171

I am in the US, and I would be processing the data on my own local laptop environment. I will ask Nigel to take over this ticket since he's in the UK.

#1268195

Nigel
Supporter

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

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

Hi David

Actually, I'm in Ireland, and we don't have anyone in the UK.

When it comes to where the data will be "processed", I would be installing it on my localhost for testing, but our normal procedures would mean that if it were something I was able to reproduce on your site but unable to reproduce on a clean test site then I'd pass it to my colleagues in second tier for further debugging, each of whom are outside the EU.

As an alternative, you could export all of the relevant settings and I can try and import those into a clean test site and see if I can reproduce the problem with that, and then I won't need any of your client data.

You can export settings from each of the plugins at Toolset > Export / Import.

So, you'll need Types and Access, and what else? You didn't say whether you are trying to upload the pdf on the backend or the frontend, so maybe Forms, too?

You know you site, so provide me with as much detail as I need to try to reproduce the issue.

You can share links to dropbox or similar here, such links are hidden by default so others cannot see them.

#1268339

Thanks Guys, Nigel, your local environment would be 100%, but, yeah, my clients clients are especially protected by GDPR and the team there are very privacy aware. I'll create a local version (changed PC's since I built the site) and make sure I can replicate the issue, if so then I'll do the settings export you describe above.

Background, site is used to run a private buddypress install to allow remote employees to share real time info. With toolset there is a collection of forms and views used to maintain HR & Business Operations data. This is all mostly protected with Access. Layouts is used on a few pages I've not yet got around to building templates for. The plugin stack is massive. The filesystem is over 15gb. The theme is a child of 2017, functions.php is modified.

Actually, after writing that out how about we just forget about it and go for a pint 🤣

#1270747

Nigel
Supporter

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

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

Hi David

Just tidying up me queue, let me know how you get on when you have some news.