chrometweaks.org

A iPage web host that has Unlimited bandwidth?

Click Here To View All Answers...


My first question is A iPage web host that has Unlimited bandwidth? Many thanks for any answer. 2nd question I got is.. In create_account.php.

Warning: Missing argument 3 for tep_get_zone_name() in catalog\includes\functions\general.php on line 260.

Warning: Cannot add header information - headers already sent by (output started at catalog\includes\functions\general.php:260) in catalog\includes\functions\general.php on line 29.

This error appears when someone registers, they arent sent to create create_account_success.php but the registration email is sent and the user is added to the db..

Please HELP.

This is the final stumbling block preventing me from opening my store for business...

Comments (108)

That's a good question. I'm not sure what is the answer to your question. I'll do some research in Google and get back to you if I got an good answer. You should email the people at iPage as they probably know..

Comment #1

Ive looked through my contribs, and the phpbb mod does make a change to that file. Do you see anything funny in here that may affect that..

###########################################################.

ADD in catalog\create_account.php.

###########################################################.

$sql_data_array['entry_state'] = '';.

} else {.

$sql_data_array['entry_zone_id'] = '0';.

$sql_data_array['entry_state'] = $state;.

}.

}.

// #CHAVEIRO16# BEGIN PHPBB2.

$sql_data_array2 = array('user_id' => $customer_id,.

'user_active' =>1,.

'username' => strtoupper(substr($firstname,0,1))ucwords(strtolower($lastname)),.

'user_password' => md5($password),.

'user_session_time' => time(),.

'user_session_page' => 0,.

'user_lastvisit' => '',.

'user_regdate' => time(),.

'user_level' => 0,.

'user_posts' => 0,.

'user_timezone' => 0.00,.

'user_style' => 1,.

'user_lang' => 'english',.

'user_dateformat' => 'D M d, Y g:i a',.

'user_new_privmsg' => 0,.

'user_unread_privmsg' => 0,.

'user_last_privmsg' => 0,.

'user_emailtime' => '',.

'user_viewemail' => 0,.

'user_attachsig' => 1,.

'user_allowhtml' => 0,.

'user_allowbbcode' => 1,.

'user_allowsmile' => 1,.

'user_allowavatar' => 1,.

'user_allow_pm' => 1,.

'user_allow_viewonline' => 1,.

'user_notify' => 0,.

'user_notify_pm' => 1,.

'user_popup_pm' => 1,.

'user_rank' => 0,.

'user_avatar' => '',.

'user_avatar_type' => 0,.

'user_email' => $email_address,.

'user_icq' => '',.

'user_website' => '',.

'user_from' => tep_get_zone_name((int)($country),(int)($zone_id)),.

'user_sig' => '',.

'user_sig_bbcode_uid' => '',.

'user_aim' => '',.

'user_yim' => '',.

'user_msnm' => '',.

'user_occ' => '',.

'user_interests' => '',.

'user_actkey' => '',.

'user_newpasswd' => '');.

Tep_db_perform(TABLE_PHPBB_USERS, $sql_data_array2);.

Tep_db_query("insert into "TABLE_PHPBB_GROUPS" (group_name, group_description, group_single_user, group_moderator) VALUES ('', 'Personal User', 1, 0)");.

Tep_db_query("insert into "TABLE_PHPBB_USER_GROUPS" (group_id, user_id, user_pending)VALUES ('".tep_db_insert_id()."', $customer_id, 0)");.

// #CHAVEIRO16# END PHPBB2.

Tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);.

$address_id = tep_db_insert_id();.

Tep_db_query("update "TABLE_CUSTOMERS" set customers_default_address_id = '"(int)$address_id"' where customers_id = '"(int)$customer_id"'");.

Tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"(int)$customer_id"', '0', now())");.

I also added guest account, but this error existed before and after adding guest account..

This post has been edited by.

Afeks.

: 06 September 2004, 02:19..

Comment #2

I wonder if this contrib was written for an earlier osC version. Change this line:.

      'user_from' => tep_get_zone_name((int)($country),(int)($zone_id)),.

To.

      'user_from' => tep_get_zone_name((int)($country),(int)($zone_id),''),.

This will cause the user_from field to be empty if it can't translate the zone name. I'm not sure what else to put here...

Comment #3

Thank You.

That solved my porblem, I so appreciate the help. I dont know php and would have never discovered that on my own. I do however teach photoshop and illustrator and if you should ever need anything at all graphics related, you got a big I.O.U. coming from me. Thank you again, and PM me if there is anything I can do to return the favor..

If you wouldnt mind browsing through my forums, I have a header error when someone posts a reply or new thread. I have tried changing require header to require_once but that didnt seem to do it for me. Any ideas?.

This post has been edited by.

Afeks.

: 06 September 2004, 20:39..

Comment #4

Usually, this error is caused by an extraneous blank line at the end of (or sometimes beginning of) an include or require file..

Also, I notice that the Preview and Submit buttons on your posting page are unreadable - they appear as grey rectangles to me...

Comment #5

I will check through the phpbb pages for extraneous blank spaces. The preview and submit buttons show up on my end and they are just the standard form button, I'm not sure why they wouldnt show on your end..

Warning: Cannot add header information - headers already sent by (output started at catalog\modules.php:28) in catalog\includes\modules\phpbb2\posting.php on line 590.

This post has been edited by.

Afeks.

: 06 September 2004, 23:44..

Comment #6

Check modules.php - that is a file I don't have so I don't know what it is..

As for the buttons, they are unreadable in both MSIE and Firefox. May be something in the CSS...

Comment #7

This is the code for modules, I played with taking out extra line breaks and changing reguire or include to require_once but not good..

<?php.

/*.

 $Id: privacy.php,v 1.19 2002/07/21 23:38:57 hpdl Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 osCommerceReleased under the GNU General Public License.

 .

 Integrate PHPBB206 INTO OSC 2.2 oscphpbb2 Copyright (c) 2003/09/10  .

 version:  1.0 .

 author:  Oldpa.

 web site: http://oscphpbb2.ecart.com.tw http://oldpa.adsldns.org  http://www.oldpa.com.tw  */  .

 require_once('includes/application_top.php');.

 require(DIR_WS_LANGUAGES$language'/'FILENAME_BB_INDEX);.

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BBMODULES, 'op=modload&amp;name=phpbb2&amp;file=index.php', 'NONSSL'));.

   .

Switch($op){.

Case"modload":.

If (( $mode != 'smilies' ) & ( $mode != 'topicreview' ) & ( $mode != 'searchuser' )) {.

Define('SHOW_HEAD_FOOT', true);.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="preloadImages();">.

<! header //>.

<?php require_once(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

 <tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require_once(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

   </table></td>.

<! body_text //>.

   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

       <td><table border="0" width="100%" cellspacing="3" cellpadding="3">.

        <tr>.

<?php.

}.

  include(DIR_WS_MODULES."$name/$file");.

//Footer data em page_tail.

  break;.

Default:.

Die("Sorry file does't exist.");.

Break;.

Exit;.

}.

?>..

Comment #8

I don't know - this would take some debugging with access to the sources in question. I suggest you post in the support thread for this contribution...

Comment #9

I will do that and I appreciate the help you've lent already. My offer still stands, should you need any kind of graphics help dont be afraid to ask...

Comment #10

In create_account.php.

Warning: Missing argument 3 for tep_get_zone_name() in catalog\includes\functions\general.php on line 260.

Warning: Cannot add header information - headers already sent by (output started at catalog\includes\functions\general.php:260) in catalog\includes\functions\general.php on line 29.

This error appears when someone registers, they arent sent to create create_account_success.php but the registration email is sent and the user is added to the db..

Please HELP.

This is the final stumbling block preventing me from opening my store for business...

Comment #11

The first error causes the second..

It looks as if something is calling tep_get_zone_name and not passing all the arguments. Have you added contributions which change create_account.php? That file calls tep_get_zone_name in several places...

Comment #12


This question was taken from a support group/message board and re-posted here so others can learn from it.