Pandora FMS Community

BAD DEFINED HOMEURL

jdpoe · 1 jun 2017, 7:58 · 11 mensajes · 57 visitas

  1. Inicio del debate

    Hi all, I just installed Pandora 7 NG on Centos 6.8 After install, An error occurred. error:BAD DEFINED HOMEURL OR HOMEURL_STATIC 'In the config.php file in the variable $config["ho. meurl"] or $config["homeurl_static"] = add the correct path Any idea?

    [

    ](//pandorafms.com/community/media/forum/8498/20917=1022-image01.png)

    [

    ](//pandorafms.com/community/media/forum/8498/20917=1023-image02.png)

    Thanks. jdpoe

  2. Hello jdpoe, Try just setting those two variables to "/pandora_console" Also, check folder permissions. Kind regards, Antonio.

  3. Hello Antonio, Thank you for the advice. but both seem to be ineffective. Thanks. jdpoe

    [

    ](//pandorafms.com/community/media/forum/8498/20921=1024-join.png)

  4. Hi jdpoe, We have found a bug, to solve it you can do the following steps: 1. Enter the text in the file config.php as it was previously

    $config["homedir"]="/var/www/html/pandorafms/pandora_console";
    $config["homeurl"]="/pandorafms/pandora_console";
    

    2. Replace the file with the attachment /var/www/html/pandorafms/pandora_console/include/config_process.php 3. Try again! I hope it helps you Thanks for the warn! Kind regards, Luis.

    config_process.php

  5. Hi luis, Works fine. Thanks. jdpoe

  6. Hello jdpoe, We detected a bug in the solution we gave you, if you try to access some section of a menu, it breaks. Our development team is trying to resolve it as soon as possible. We will keep you informed. Thank you! Kind regards, Luis.

  7. Hi luis, OK.I will wait for it to be resolved. Images are not displayed except the Top screen. Is this a bug?

    [

    ](//pandorafms.com/community/media/forum/8498/20942=1030-image00.png)

    [

    ](//pandorafms.com/community/media/forum/8498/20942=1031-image01.png)

    [

    ](//pandorafms.com/community/media/forum/8498/20942=1032-image02.png)

  8. Hello jdpoe, Yes, that is the error that I mentioned in the previous post. The development team is working on it, as soon as we have a solution we will let you know. Kind regards, Luis.

  9. Hello jdpoe, Replace these lines in the config_process.php

    if (!defined('METACONSOLE')) {
        $url = explode('/', $_SERVER['REQUEST_URI']);
        $flag_url =0;
        foreach ($url as $key => $value) {
            if (strpos($value, 'index.php?') !== false || $flag_url) {
                $flag_url=1;
                unset($url[$key]);
            }
        }
        $config["homeurl"] = rtrim(join("/", $url),"/");
    }
    else{
        $url = explode('/', $_SERVER['REQUEST_URI']);
        $flag_url =0;
        foreach ($url as $key => $value) {
            if (strpos($value, 'enterprise') !== false || $flag_url) {
                $flag_url=1;
                unset($url[$key]);
            }
        }
        $config["homeurl"] = rtrim(join("/", $url),"/");
    }
    

    Instead of

    if (!defined('METACONSOLE')) {
    /*
    if(!isset($config["homeurl"])){
    $url = explode('/', $_SERVER['REQUEST_URI']);
    $config["homeurl"] = $url[1];
    $config["homeurl_static"] = $url[1];
    $config["error"] = "homeurl_bad_defined";
    return;
    }
    else{
    $url = explode('/', $_SERVER['REQUEST_URI']);
    if($config["homeurl"] != '/'.$url[1]){
    $config["homeurl"] = '/'.$url[1];
    $config["homeurl_static"] = '/'.$url[1];
    $config["error"] = "homeurl_bad_defined";
    return;
    }
    }
    */
    
    $url = explode('/', $_SERVER['REQUEST_URI']);
    array_pop($url);
    $config["homeurl"] = rtrim(join("/", $url),"/");
    $config["homeurl_static"] = $config["homeurl"];
    
    }
    

    Kind regards, Luis.

  10. Ive made the changes listed on this thread however I am still having an issue where nothing but the home page loads images properly. Any suggestions on what I can do?

  11. Hello brianbrader, In the next Pandora update this problem will be fixed. Kind regards, Luis.

Entra en tu cuenta para publicar.