![]() |
Undefined index
have looked through the forum but found no answers .... any help with this apache error?
PHP Notice: Undefined index: HTTPS in /var/www/html/forum/includes/class_core.php on line 1575, referer: http://www.bla-bla-bla.com/forum/index.php line-1575 define('REQ_PROTOCOL', (($_SERVER['HTTPS'] == 'on' OR $_SERVER['HTTPS'] == '1') ? 'https' : 'http')); vBulletin 3.6.5 PHP Version 4.3.9 Apache/2.0.52 (CentOS) sql 4.1.20 many thanks |
You forgot to check if variable exists at all.
define('REQ_PROTOCOL', (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' OR $_SERVER['HTTPS'] == '1') ? 'https' : 'http')); |
Thanks for your help ;)
that did the trick! |
Add the following in the top of your script:
PHP Code:
PS do you get this error in the default vB index.php file?? |
Quote:
Many thanks for your comments .. im afraid i would not know were to put this code.. Add the following in the top of your script: [php]error_reporting(E_ALL & ~E_NOTICE); sorry?:rolleyes: |
All times are GMT. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|