Menu

#1493 (in 2.6.1) OmniSecure

2.6.0-rc1
invalid
1
2013-06-11
2004-10-24
JOMYUT
No

I use phpMyAdmin with Web server name
"OmniSecure" at http://www.omnicron.ca

It show this line when I click at INSERT (on TABLE
view)

"Notice: Undefined index: HTTP_HOST in
E:\phpMyAdmin\header.inc.php on line 44"

but it didn't happen with Apache. I think this
variable is only use in apache.

Discussion

  • Alexander M. Turek

    Logged In: YES
    user_id=418833

    You have to set a proper value of $cfg['pmaAbsoluteUri'] in
    this case.

     
  • Michal Čihař

    Michal Čihař - 2004-10-25

    Logged In: YES
    user_id=192186

    rabus: No, that line is about SetHttpHostTitle....

     
  • JOMYUT

    JOMYUT - 2004-10-25

    Logged In: YES
    user_id=1025449

    I have added $cfg['pmaAbsoluteUri'] before.

     
  • Marc Delisle

    Marc Delisle - 2004-10-26

    Logged In: YES
    user_id=210714

    joyyut,
    in header.inc.php, before line 44 try this:
    43 echo "trace " . $HTTP_HOST;
    44 if ($cfg['ShowHttpHostTitle']) {

    and tell me the result.

     
  • Marc Delisle

    Marc Delisle - 2004-10-26
    • assigned_to: nobody --> lem9
     
  • JOMYUT

    JOMYUT - 2004-10-26

    Logged In: YES
    user_id=1025449

    it is show
    "trace" on first line.
    no any word after that.

    ===============================
    trace
    phpMyAdmin 2.6.0-rc1
    ===============================

    when I enter to phpMyAdmin index.php

     
  • Marc Delisle

    Marc Delisle - 2004-10-26

    Logged In: YES
    user_id=210714

    Ok.
    - which PHP version is this?

    - could you try at line 44:
    print_r($_SERVER);
    and find something that contains the HTTP host name?

     
  • JOMYUT

    JOMYUT - 2004-10-27

    Logged In: YES
    user_id=1025449

    Version 5.0.1

    - No variable name found that contains HTTP host name.

     
  • JOMYUT

    JOMYUT - 2004-10-29

    Logged In: YES
    user_id=1025449

    I try with PHP 5.0.1 and PHP 4.3.9(last version)
    no variable that contains the HTTP host name found in
    $_SERVER

     
  • Marc Delisle

    Marc Delisle - 2004-10-30

    Logged In: YES
    user_id=210714

    Well, looks like we cannot find the http host name.
    Meanwhile the cvs version contains a fix for this error.
    Line 44 is now:
    $title .= (empty($GLOBALS['cfg']['SetHttpHostTitle'])
    && isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] :
    $GLOBALS['cfg']['SetHttpHostTitle']) . ' >> ';

    Please try it and confirm.

     
  • Marc Delisle

    Marc Delisle - 2004-10-30
    • priority: 5 --> 1
    • summary: OmniSecure --> (in 2.6.1) OmniSecure
    • status: open --> open-fixed
     
  • JOMYUT

    JOMYUT - 2004-11-02

    Logged In: YES
    user_id=1025449

    It's work. :)

     
  • Marc Delisle

    Marc Delisle - 2005-01-24
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> invalid
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.