country code drop down not working on sign up page

Discussion in 'Troubleshooting' started by pascalevdb, Jul 19, 2009.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    For some reason, our country code drop down menu is not working causing the signup page not to work. In my error log, it listed the error on page common.inc.php on line 126 -- this is the code that is currently listed there:


    function smarty_function_country_options($params, &$smarty){
    global $db;
    $ret = "";
    foreach (db_getCountryList($add_empty=true) as $c => $t){
    $sel = ($c == $params['selected']) ? 'selected="selected"' : '';
    $ret .= "<option value='".htmlspecialchars($c)."' $sel>".htmlspecialchars($t)."</option>\n";
    }
    return $ret;

    Can anyone see the problem? Thanks in advance.
  2. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    Oh, this is the exact error message:

    <b>WARNING:</b> Invalid argument supplied for foreach() in line 126 of file C:\Inetpub\vhosts\workoutsondemand.com\httpdocs\amember\common.inc.php

Share This Page