2.50 (But also had the issue in 2.45) loaded on a vagrant VM.
Trying to upload images. Images meet size and space requirements (and are considerably under them e.g. <100k)
1. When trying to upload a user picture, I simply get "File cannot be uploaded" with no other warning text.
2. When trying to upload a banner image either to the site or on a document page, I get a variation of
Notice: Undefined index: #field_name in file_managed_file_save_upload() (line 661 of /var/www/public/atrium/modules/file/file.module).
The file could not be uploaded.
3. When I try to upload an image on a document page or space, whether as an image, within the body or as an attachment, it works without a problem.
Comments
Comment #2
kfurst@isd186.org CreditAttribution: kfurst@isd186.org commentedOne more odd piece of info. When referring to #2 Banners, I can select and use an image from the "My Files" tab that I uploaded into the body of another section.
Comment #3
Argus CreditAttribution: Argus as a volunteer commentedPlease add more info about your installation, especially how to reproduce this.
Comment #4
kfurst@isd186.org CreditAttribution: kfurst@isd186.org commentedSpecific Message
Notice: Undefined index: #field_name in file_managed_file_save_upload() (line 661 of /var/www/public/atrium/modules/file/file.module).
The file could not be uploaded.
Uploading an image as banner image for a new space. (Under: banner, Banner image, Browse, Choose, >selects file<, Upload then error message above).
Standard Vagrant/Virtualbox/Ubuntu 64 bit installation via Scotchbox Vagrant LAMP
Virtualbox v. 4.3.28 & Vagrant v. 1.7.4
64 bit Ubuntu. Only customizations are CPUs set to 2 and Base Memory set to 1024.
Uploading jpg from Mac OSX 10.10.
Comment #5
mpotter CreditAttribution: mpotter commentedSounds like a permission problem on your site trying to save the image to your /site/default/files folder. Go to your Status Report page in Drupal and make sure there are not any error messages.
Cannot reproduce this on Pantheon or our test servers, so it's something specific to your environment.
Comment #6
kfurst@isd186.org CreditAttribution: kfurst@isd186.org commentedThanks Mike.
I checked and the only error was the following:
CTools CSS Cache Unable to create
The CTools CSS cache directory, ctools/css could not be created due to a misconfigured files directory. Please ensure that the files directory is correctly configured and that the webserver has permission to create directories.
So it looks like that is the issue. So I'm thinking I should probably look at the directory those images would be uploaded to see if they're writable. What is the path to where these types of images would be stored?
Comment #7
kfurst@isd186.org CreditAttribution: kfurst@isd186.org commented