ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

(Very) small issue

June 22, 2007 6:43am

Subscribe [6]
  • #16 / Jun 22, 2007 4:39pm

    AlanM

    74 posts

    Yeah, there is definitely something odd going on here (as if you needed me to tell you 😉)

    I’m guessing that since you are Mac-heads, running Mamp, that you are probably pretty tech-savvy.  Could I ask you to try a clean install of 1.6 on your setups and see what you get?

    Well, I’m not that tech-savvy but I can let you know that 1.6 does install fine on my MAMP install. 😊

  • #17 / Jun 22, 2007 4:47pm

    Wolfram

    115 posts

    Hi Guys,
    I could send you a screenshot of “yep!” in 12px Times now, but i guess you will believe without. One more thought: since I have and I am developing EE projects for clients, these data (EE not updated yet) are also on my MAC, different local “FTP” folders for every project, everyone has their own database (not just prefixes). Could this still be the trouble somehow?
    I could try a completly fresh install, but not within the next hour or so (s. above). Thanks everybody for your thoughts!
    (P.S. Should the thread be renamed into something like “Updating to 1.6 and MAMP”? I thought it was a very small thing, but MAMP is rather popular around here in Germany.)

  • #18 / Jun 22, 2007 5:02pm

    AlanM

    74 posts

    Attached is the phpinfo.

    Attachment deleted…no longer needed.

  • #19 / Jun 22, 2007 5:04pm

    Derek Jones

    7561 posts

    That version is not affected by anything in your database.

    define('APP_VER', substr($conf['app_version'], 0, 1).'.'.substr($conf['app_version'], 1, 1).'.'.substr($conf['app_version'], 2, 1));

    Right above this line in core.system.php (found on line 210), can you add:

    var_dump($conf);exit;

    And post the contents (removing any sensitive information) in a code block please?

  • #20 / Jun 22, 2007 5:12pm

    AlanM

    74 posts

    On the clean install of 1.6:

    array(17) { ["app_version"]=> string(3) "160" ["license_number"]=> string(0) "" ["debug"]=> string(1) "1" ["install_lock"]=> string(1) "1" ["db_hostname"]=> string(14) "localhost:8889" ["db_username"]=> string(4) "root" ["db_password"]=> string(4) "root" ["db_name"]=> string(4) "EE16" ["db_type"]=> string(5) "mysql" ["db_prefix"]=> string(3) "exp" ["db_conntype"]=> string(1) "0" ["system_folder"]=> string(6) "system" ["cp_url"]=> string(43) "http://localhost:8888/EE16/system/index.php" ["doc_url"]=> string(33) "http://expressionengine.com/docs/" ["is_system_on"]=> string(1) "y" ["allow_extensions"]=> string(1) "n" ["multiple_sites_enabled"]=> string(1) "n" }


    On the problem upgrade install:

    array(17) { ["app_version"]=> string(3) "152" ["license_number"]=> string(0) "" ["debug"]=> string(1) "1" ["install_lock"]=> string(1) "1" ["db_hostname"]=> string(14) "localhost:8889" ["db_username"]=> string(4) "root" ["db_password"]=> string(4) "root" ["db_name"]=> string(7) "localEE" ["db_type"]=> string(5) "mysql" ["db_prefix"]=> string(3) "exp" ["db_conntype"]=> string(1) "0" ["system_folder"]=> string(5) "chaos" ["cp_url"]=> string(54) "http://localhost:8888/Local-EE-Install/chaos/index.php" ["doc_url"]=> string(33) "http://expressionengine.com/docs/" ["is_system_on"]=> string(1) "n" ["allow_extensions"]=> string(1) "n" ["multiple_sites_enabled"]=> string(1) "n" }
  • #21 / Jun 22, 2007 5:23pm

    Derek Jones

    7561 posts

    Ok, now if you do an

    exit(CONFIG_FILE);

    That will tell you what file your system is using—it’s probably a relative path, so make sure you trace it from the location of the index.php file you are accessing.  Follow that path back, open that config.php file, and you’ll see the ‘152’ app version.  Which is odd, since the rest of it is a 1.6 config file.

  • #22 / Jun 22, 2007 5:29pm

    AlanM

    74 posts

    Pardon my ignorance but where should I put the “exit(CONFIG_FILE);” ...same place as before in the core.system.php file?

  • #23 / Jun 22, 2007 5:35pm

    AlanM

    74 posts

    If in the same place, from the clean 1.6 install:

    ./system/config.php

    And from the problem upgrade:

    ./chaos/config.php
  • #24 / Jun 22, 2007 5:37pm

    Derek Jones

    7561 posts

    Right, so from the path of your index.php file, go into the chaos folder and open the config.php file.

  • #25 / Jun 22, 2007 5:39pm

    AlanM

    74 posts

    <?php
    
    if ( ! defined('EXT')){
    exit('Invalid file request');
    }
    
    $conf['app_version'] = "160";
    $conf['license_number'] = "";
    $conf['debug'] = "1";
    $conf['install_lock'] = "1";
    $conf['db_hostname'] = "localhost:8889";
    $conf['db_username'] = "root";
    $conf['db_password'] = "root";
    $conf['db_name'] = "localEE";
    $conf['db_type'] = "mysql";
    $conf['db_prefix'] = "exp";
    $conf['db_conntype'] = "0";
    $conf['system_folder'] = "chaos";
    $conf['cp_url'] = "http://localhost:8888/Local-EE-Install/chaos/index.php";
    $conf['doc_url'] = "http://expressionengine.com/docs/";
    $conf['is_system_on'] = "n";
    $conf['allow_extensions'] = "n";
    $conf['multiple_sites_enabled'] = "n";
    ?>
  • #26 / Jun 22, 2007 5:52pm

    Derek Jones

    7561 posts

    I’m perfectly ready to eat my hat on this, but as described, if that is indeed the file it is reading, is simply not possible.  In the same spot you have been placing the debugging code, can you please add:

    exit($_SERVER["SCRIPT_FILENAME"]);

    Is that the full server path you expect to see?  Perhaps something in Apache’s setup is serving a location that you are not expecting.

    Failing that, you will have to give me remote access to debug it.  But you can follow the code step by step from your index.php file, path.php file, to your core.system.php—there is no where that EE is artificially providing the app version.  It gets it directly from the $conf array, which is only defined in the config.php file.

  • #27 / Jun 22, 2007 5:56pm

    AlanM

    74 posts

    OK, I put that statm at the beginning of my config.php file and this is what it returns:

    /Users/alan/www/Local-EE-Install/chaos/config.php
  • #28 / Jun 22, 2007 5:58pm

    AlanM

    74 posts

    OK, the last statm I put in in the core.system.php line 209…it returns:

    /Users/alan/www/Local-EE-Install/index.php
  • #29 / Jun 22, 2007 6:03pm

    Derek Jones

    7561 posts

    Paths look fine, and you’re obviously editing the right files.  Ok, one last try in core.system.php before I give up and call it Ghost in the Machine.

    print_r($conf);
    exit($conf['app_version']);

    Add that on line 204 right after:

    require CONFIG_FILE;
  • #30 / Jun 22, 2007 6:03pm

    AlanM

    74 posts

    But you can follow the code step by step from your index.php file, path.php file, to your core.system.php—there is no where that EE is artificially providing the app version.  It gets it directly from the $conf array, which is only defined in the config.php file.

    There is no remote access to this computer so I guess we hit a dead end. MAMP is a pretty simple install…and it’s all self contained, meaning you can remove it rather easy. Maybe you could try to recreate the update. 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases