[wp-hackers] Undefined index: HTTPS in tiny_mce_config.php on line 47

Volkmar Seifert vs at nifelheim.info
Wed Apr 9 09:43:50 GMT 2008


Hello all,

I am running lighttpd + fastcgi + php5 (all current versions), and since
installing WordPress MU 1.3.3 (fresh installation), my error-logfile gets
a bit cluttered with the following message:

Undefined index:  HTTPS in .../wp-includes/js/tinymce/tiny_mce_config.php
on line 47

It seems that $_SERVER['HTTPS'] is not set. I suggest to change the line
from the current simple

if ( $_SERVER['HTTPS'] == 'on' ) {

to

if ( isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' ) ) {

which would stop that annoying message while still keeping the intended
functionality.

Of course, since using WordPress MU instead of WordPress, I do not know
whether this is still an issue with the new 2.5-release. But since
WordPress MU 1.5 is not available, yet, this might help all those who
encounter the same problem.

- Volkmar

-- 
http://blog.nifelheim.info/tech


More information about the wp-hackers mailing list