Address Information

Discussion in 'Troubleshooting' started by TheWayOfLight, Jul 13, 2003.

  1. Hello Everyone, When trying to set up the address fields I continue to get these error messages. I do check for the extra [ or , or . and there doesn't appear to be anything extra.

    Parse error: parse error, unexpected '[', expecting ',' or ';' in /usr/local/psa/home/vhosts/thewayoflight.org/httpdocs/amember/config.inc.php on line 23

    Fatal error: Call to undefined function: new_smarty() in /usr/local/psa/home/vhosts/thewayoflight.org/httpdocs/amember/signup.php on line 212

    Any idea on what I'm doing wrong? Thanks
  2. abbeyvet

    abbeyvet New Member

    Joined:
    Feb 2, 2003
    Messages:
    135
    Could you paste in the relevant bits from your config.inc.php file?
  3. Sure - the instructions wer to put this


    $config['use_address_info'] = 1;

    Into this (I think) It said to put it into the config.inc.php file and this is all except what looked like the registration/version information.

    *
    */
    error_reporting(E_ALL ^ E_NOTICE);
    if (!defined(INCLUDED_AMEMBER_CONFIG)){
    define('INCLUDED_AMEMBER_CONFIG', 1);
    set_magic_quotes_runtime(0);
    global $config, $plugins, $plugin_config ;

    $pc = array();
    $pc['db'] = 'theway';
    $pc['user'] = 'elephant';
    $pc['pass'] = 'deadsaint';
    $pc['host'] = 'localhost';
    $pc['prefix'] = 'amember_';

    $config['db']['mysql'] = $pc;
    $config['root_dir'] = dirname(__FILE__);
    if (!defined('AMEMBER_ONLY_DB_CONFIG')){
    require_once("$config[root_dir]/rconfig.inc.php");
    }
    //set_error_handler('_amember_error_handler');
    }
    ?>
  4. I did try to insert this

    $config['use_address_info'] = 1; right after this

    $config['db']['mysql'] = $pc;

    and it did nothing. No error code - but nothing else either

Share This Page