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

Musing Minds kimsch at musing-minds.com
Wed Mar 19 17:07:29 GMT 2008


HTTP error.
An error occurred in the upload. Please try again later.

I got this message too, but when I looked in the Gallery and Media Library,
the images were there.

-----Original Message-----
From: wp-testers-bounces at lists.automattic.com
[mailto:wp-testers-bounces at lists.automattic.com] On Behalf Of Philip Barron
Sent: Wednesday, March 19, 2008 9:06 AM
To: wp-testers at lists.automattic.com
Subject: [wp-testers] Fatal error: Call to undefined function:
apache_getenv()

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

This is line 782:

if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') &&
'on'
== strtolower(apache_getenv('MODSEC_ENABLE')) )

Changed "debug: false" to "debug: true" in
wp-admin/includes/media.php, but couldn't get a
debug report using Mac Firefox. Weird.

Using a different computer, tried using image uploader using Firefox
2.0.0.12 for Windows.
Was allowed to select file for uploading, but upload failed with the
familiar message:

HTTP error.
An error occurred in the upload. Please try again later.

The debug report using Firefox/Windows:

Flash called back and is ready.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select.
Allowed file types: *.*
SWF DEBUG: Select Handler: Files Selected from Dialog. Processing file list
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished adding files
SWF DEBUG: StartUpload(): Starting Upload: First file in queue
SWF DEBUG: StartFile: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: type=image
SWF DEBUG: Global Post Item: post_id=2322
SWF DEBUG: Global Post Item: tab=type
SWF DEBUG: Global Post Item: auth_cookie=redacted
SWF DEBUG: startFile(): File Reference found. File accepted by
startUpload event.
Starting upload to http ://waveflux.net/test/wp-admin/async-upload.php
for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2064.
Total: 2064
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0.
HTTP Status: 406.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
_______________________________________________
wp-testers mailing list
wp-testers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers



More information about the wp-testers mailing list