Problem/Motivation
When adding an article I get the error Notice: No file uploaded in Unknown on line 0 returned.
This also results in the following dblog message
<em class="placeholder">RuntimeException</em>: Failed to start the session because headers have already been sent by "" at line 0. in <em class="placeholder">Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()</em> (line <em class="placeholder">144</em> of <em class="placeholder">/var/www/drupal/core/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php</em>).
This does not happen on the Basic Page content type, so assume it relates some how to the image field.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #1
timmillwoodOne thing I forgot to add, articles can be added find if an image is uploaded. This error only happens if field_image is empty.
Comment #2
berdirWeird. Since php7 changes a lot, can you add the exact build time/version (alpha, beta, ...) ?
Comment #3
timmillwoodPHP Version 7.0.0-dev
System: Linux php7dev 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64
Build Date: May 25 2015 16:34:08
Downloaded the php7dev vagrant box, then compiled the latest PHP 7 build with the
makephp 7Running the full set of tests on it now so I can update the parent issue.
Comment #4
berdirThat build date is from your os? php --version should give you a build date for PHP7 itself: "PHP 7.0.0-dev (cli) (built: Jul 4 2015 14:21:57)".
But latest I guess means you built it today ;) Can you try to run the image field related tests to see if they fail or pass?
Comment #5
alan evans commentedI've been unable to reproduce this bug using this PHP version:
Just to check the steps I attempted to reproduce:
I'd suggest that this can be closed and we can reopen if anyone is able to reproduce on latest PHP versions.
Comment #6
alexpottI can't reproduce this either - i created articles both with and without an image.
Comment #7
luuph commentedThis happens if PHP is compiled with debug enabled. See - https://bugs.php.net/bug.php?id=60808 and https://bugs.php.net/bug.php?id=70243