[wp-testers] Fatal error: Call to undefined function: apache_getenv()

Andy Skelton skeltoac at gmail.com
Wed Mar 19 17:42:16 GMT 2008


On Wed, Mar 19, 2008 at 9:06 AM, Philip Barron <delcyphr at gmail.com> wrote:
> Testing the image uploader for the March 19 build, using Firefox
>  2.0.0.12 for Mac. On attempt to
>  upload image from the hard drive, received this message before I had a
>  chance to select a file
>  to upload:
>
>  Fatal error: Call to undefined function: apache_getenv() in
>  /home/username/public_html/test/wp-admin/includes/media.php on line 782

That line was added last night. I can add a check for
function_exists('apache_getenv') to avoid the fatal error.

What are your PHP version and server platform?

Andy


More information about the wp-testers mailing list