After selecting standard installation and clicking save and continue on the english language page, the following error message is shown.
Fatal error: Call to undefined function sys_get_temp_dir() in /usr/www/users/d7a5/modules/system/system.install on line 270
I succesfully installed and ran beta 4 on the same machine.
Any advice?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 807622.patch | 665 bytes | grendzy |
| #4 | 807622.patch | 661 bytes | grendzy |
Comments
Comment #1
David_Rothstein commentedWhat version of PHP are you using? The minimum requirement used to be 5.2.0, but was recently changed to 5.2.1 (see #551658: Figure out what to do about new private/public file separation).
Drupal is supposed to tell you that PHP version requirement on the requirements page, but it looks like there is a bug where it calls the above function (which doesn't exist in 5.2.0) before it ever is able to display the requirements page.... oops :)
Comment #2
SandStorm commentedHi
Thanks, that was it. I (my provider) am running 5.2.0
So no alpha 5 for me then ...
Comment #3
Everett Zufelt commentedWhen installing with PHP 5.2.0 or earlier a PHP fatal error is encountered. This is because the requirements check is not performed before the installer attempts to call sys_get_temp_dir()
Marking as critical as users will encounter this error, not be able to install head, and not know how to resolve the problem.
Comment #4
grendzy commentedsimple fix.
BTW - here is a testing strategy that doesn't require actually installing an old php version. Set DRUPAL_MINIMUM_PHP to something large like 5.2.100, then replace the call to sys_get_temp_dir() with something like XXX(). Without the patch you'll see the error, after applying the patch you should see the notice that you have an old PHP version.
Comment #5
Everett Zufelt commentedApplied patch and attempted to install system with php 5.2.0. The requirements check page is far more friendly than a PHP fatal error. However, it still seems silly that PHP 5.2.1 is the minimum requirement for Drupal 7, especially since this change occurred so late in the development cycle.
+1 for functionality, with reservations.
Comment #6
chx commentedThree years since PHP 5.2.1 is out... we are good.
Comment #7
Everett Zufelt commented@chx
I agree that we are technically good on this issue. However, the number of years since php 5.2.1 has been released is arbitrary. What if it had been 2 years, or 1 year?
Comment #8
chx commentedThen we would be much more cautious. About 2-2.5 years should be enough to be included in practically every Linux distribution by now.
Comment #9
catchThis patch makes sense regardless of what the current PHP requirement is.
#551658: Figure out what to do about new private/public file separation may yet end up rolling back the requirements change but I think that should be handled there.
Comment #10
dries commentedAre we missing the word 'the'?
Comment #11
grendzy commentedfixed comment.
Comment #13
aspilicious commented#11: 807622.patch queued for re-testing.
Comment #14
scor commentedback to RTBC
Comment #15
dries commentedCommitted to CVS HEAD. Thanks.