Skip Navigation

[Resolved] problem uploading PDFS through form

This support ticket is created 4 years, 11 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)

This topic contains 8 replies, has 2 voices.

Last updated by Nigel 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1405037

I have a form on my site where students can upload a PDF of their work for evaluation.
This has been working until very recently - and now all of a sudden, there is an upload error for some PDFs.
If I open the PDF and print it to a new PDF, it uploads just fine.
Is this something to do with the PDF codex? Why will it upload some PDFs and not others?

#1405231

Nigel
Supporter

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

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

What is the error, does it give any details?

Might it be the size of the files?

Can you share (e.g. via dropbox) an example of PDFs which will not upload?

#1405981
Error.jpg

I'm attaching a screenshot of the error message.

I have two files - the one that won't upload and the one I re-printed that does upload - and, in fact, the one that DOES work is BIGGER than the one that doesn't. (2.05 MB vs 92kb).

I can send them to you ... how would I dropbox them to you?

Elise

#1406403

If it helps - one of my students told me that he creates his documents in Google docs, and then downloads them from there as a PDF before uploading them through my website form.
So maybe it has something to do with the Google doc codex?

#1406467

Nigel
Supporter

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

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

You can just paste the dropbox links here, they are hidden from other users.

I'll check them, and can try using PDFs from Google Docs.

#1407577

Hopefully this will work (I find Dropbox to be ridiculously confusing)

hidden link

#1408289

Nigel
Supporter

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

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

I tested both PDF files on a local site in a front-end form.

I tested with both settings in the form for whether to use the Media Uploader or not.

In all cases the PDFs uploaded without problem.

So the issue seems particular to your set-up or server.

When trying and failing to upload the problem PDF, can you double check your browser console and your PHP debug logs for errors that might indicate why the upload failed?

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try submitting the form again and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.

If there are no errors showing that indicate why, it would be time to look for conflicts with other plugins or your theme that may be interfering. Hopefully you have a staging site to try disabling plugins and switching theme.

#1409009

I updated the Toolset plugins as you suggested (I don't know why I hadn't been alerted that they needed updating in the usual way?) - and when I tried again to upload the file that wouldn't upload before - it worked.

I'm going to ask my students to test it out to make sure this has fixed the problem ...and I will let you know.

Thanks so much for your help!

Elise

#1411503

Nigel
Supporter

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

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

We've introduced a system to release major updates in stages so that if serious problems occur they can be identified before all users are affected, so it may be that the system hadn't flagged you for an update yet.

But at any time you can use the "Check for updates" button to force a refresh.

Let me know how your students get on.