ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Certain PDF uploads not working in EE 2.3

October 17, 2011 12:48pm

Subscribe [6]
  • #16 / Jan 30, 2012 6:15pm

    Chris Arnold

    201 posts

    FWIW, I had this identical issue. I then found that my host’s php.ini file was set to:

    post_max_size = 20M
    upload_max_filesize = 20M

    After updating those values the issue is fixed for everyone. Giving a value to the max upload size in EE didn’t change anything.

  • #17 / Feb 02, 2012 8:24pm

    Sean C. Smith

    3818 posts

    Porthos,

    Have you tried Chris’s solution? Are you still unable to upload pdfs?

    Sean

  • #18 / Feb 02, 2012 10:07pm

    porthos

    55 posts

    I have tried this via .htaccess. Values are:

    post_max_size: local - 256M master - 8M
    upload_max_filesize: local - 256M master - 8M
    max_file_uploads: local - 20 master - 20

    Same issue.

  • #19 / Feb 06, 2012 4:04pm

    Shane Eckert

    7174 posts

    Hello porthos,

    What does your php.ini have set for the following values?

    memory_limit=64M
    post_max_size=64M
    upload_max_filesize=64M

    You can either look in the php.ini file or naviage to the ExpressionEngine Control Panel and run Tools->Utilities->PHP Info and look for this values.

    Please let me know what you find.

    Cheers,

     

  • #20 / Feb 06, 2012 4:10pm

    Chris Arnold

    201 posts

    Yeah, Porthos, it was php.ini not htaccess.

  • #21 / Feb 06, 2012 4:14pm

    Shane Eckert

    7174 posts

    Hello Porthos,

    It can be a little confusing at first before you get used to which files do what.

    Be sure to let us know how it goes for you.

    Cheers,

  • #22 / Feb 06, 2012 9:23pm

    porthos

    55 posts

    Just to be clear: I’m using .htaccess to rewrite php values. The php.ini values reflect the changes I’ve made via .htaccess.

    Checking the PHP Info via the CP shows:

    memory_limit: Local Value = 256M Master Value = 48M
    post_max_size: Local Value = 256M Master Value = 8M
    upload_max_filesize: Local Value = 256M Master Value = 8M

    So everything seems to check out. Still not sure what’s up.

  • #23 / Feb 08, 2012 6:42pm

    Shane Eckert

    7174 posts

    Hello porthos,

    I am sorry to hear you are running into this problem still.

    Can you set aside the .htaccess file for testing and make these changes in the php.ini file? I just want to rule that out.

    Also, can you ask your hosting techs to look through the apache error and access logs while you are trying to upload or correlate the times and check the logs?

    Cheers,

  • #24 / Feb 20, 2012 7:28am

    porthos

    55 posts

    Folks:

    I don’t have direct access to the actual php.ini file. However, I have used phpinfo to get the php.ini values so everything I’ve listed is in the php.ini file. My hosting techs have turned on logs and nothing strange appears when I upload a file.

    My hosting company is pretty good. They are convinced this is on the EE side because php.ini clearly reflects the increases I’ve specified for memory_limit, post_max_upload, and upload_max_filesize.

    So I’m not sure what to do at this point. Upgrade to the latest EE maybe?

  • #25 / Feb 23, 2012 5:52pm

    Shane Eckert

    7174 posts

    Hello porthos,

    Boy, this one is not an easy one to troubleshoot.

    So the changes are now in the php.ini file? Or are they still being set in .htaccess? I ask because we really only support changes to .htaccess as we have them listed in the user guide for removing index.php. Aside from that, we are just not able to guarantee that other rewrite rules and such are not going to interfere with ExpressionEngine.

    Aside from this being a memory issue I cannot think of what else it could be. It sounds like some pdf file take longer or more memory to upload than others so we get a failure which seems random to us.

    We can try to update ExpressionEngine, but I am not sure that the issues lies with the version.

    Is there anyway for you to get shell access to your web server? Can we look at the logs first hand? Not that I do not trust your provider, but it would be good to see of there are errors and even if there is not, it would be nice to know if the server things the uploads are find, even that would give us more direction.

    Let me know your thoughts,


    For Reference:
    memory_limit
    This sets the maximum amount of memory in bytes that a script is allowed to allocate.
    Default size 5.3 in is “8M”

    post_max_size (must be greater than upload_max_filesize)
    Sets max size of post data allowed. This setting also affects file upload.
    Default size in 5.3 is “128M”

    upload_max_filesize
    The maximum size of an uploaded file.

    max_execution_time
    This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
    Default setting in 5.3 is “30”

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases