Forums / Basic Configuration / admin email, show up in login field (caused by a bug in an addon)

admin email, show up in login field (caused by a bug in an addon)

Locked

Views: 2,054

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
8 Aug 2010, 8:44 PM
#1
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

admin email, show up in login field (caused by a bug in an addon)

hi, i am working on some project, i got annoying problem

admin email show up in email field, when try login

http://vodeoo.com/index.php?main_page=login

anyone know how to get rid of it?, i cant remember what I did edit...

help please

thank you

v1.3.9d

8 Aug 2010, 9:12 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

You've told your browser to remember logins.
You can go into your browser's settings and tell it to clear/reset/forget/remove the saved logins. And you can also tell it to stop remembering future logins too.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 9:18 PM
#4
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

You've told your browser to remember logins.
You can go into your browser's settings and tell it to clear/reset/forget/remove the saved logins. And you can also tell it to stop remembering future logins too.

i did try from other browser, and from phone, and it show up

do you see it ?

8 Aug 2010, 9:25 PM
#6
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

or may b its in database ?

8 Aug 2010, 9:27 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

Hmmm ... try searching for "login-email-address" (without the quotes) using the bottom option in the Developers Toolkit, and choosing "All Catalog Files".
What does it report?

It seems something's amuck with whatever that custom template is doing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 9:37 PM
#8
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

Hmmm ... try searching for "login-email-address" (without the quotes) using the bottom option in the Developers Toolkit, and choosing "All Catalog Files".
What does it report?

It seems something's amuck with whatever that custom template is doing.

that was good try mate, but it not show up, i searched for vodeoo, and [email protected]

not there at all

searched all options..... :(

Searching 971 files ... for: login-email-address

/home/mataleo/public_html/includes/templates/12541/templates/tpl_login_default.php

Line #45 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #46 : <?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>

Line #79 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #80 : <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>

/home/mataleo/public_html/includes/templates/12541/templates/tpl_time_out_default.php

Line #28 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #29 : <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>

/home/mataleo/public_html/includes/templates/template_default/templates/tpl_login_default.php

Line #43 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #44 : <?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>

Line #71 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #72 : <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>

/home/mataleo/public_html/includes/templates/template_default/templates/tpl_time_out_default.php

Line #27 : <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

Line #28 : <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>

8 Aug 2010, 9:38 PM
#9
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

looks like simple problem, but so annoying :(

when i change to classic template, its okay

its only when use custom

8 Aug 2010, 9:41 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

I see that it's fine if you switch back to the "classic" template.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 9:43 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

Rather than go back and forth guessing at things to have you look for, use this method to find ALL differences between YOUR site and a CLEAN new Zen Cart set of files: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

Maybe it's in one of your template-monster javascripts?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 9:44 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

And what's with assigning Zen Cart credits to yourself here? > <meta name="author" content="Vodeoo; Team and others" />

<meta name="generator" content="shopping cart program by Vodeoo;, <http://www.vodeoo.com> eCommerce" />What's "Vodeoo eCommerce"?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 9:46 PM
#13
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

I see that it's fine if you switch back to the "classic" template.

yes

i did edit tpl_login_default.php ,before when i try add facebook login, but then i removed, and its not there, i checked this file, looks okay...

8 Aug 2010, 9:56 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

It's not in javascript, since disabling javascript in the browser still leaves the address filled in.
So, it's something in your template files somewhere before it sends the HTML out to the browser.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 10:02 PM
#15
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

It's not in javascript, since disabling javascript in the browser still leaves the address filled in.
So, it's something in your template files somewhere before it sends the HTML out to the browser.

searched all files in template, and temp_default for that email, and nothing, searched database, nothing unusual :(

<?php /** * Page Template * * @package templateSystem * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_login_default.php 5926 2007-02-28 18:15:39Z drbyte $ * @version $Id: tpl_login_default.php 5936 2007-12-14 18:15:39Z ropu - Added Google Checkout $ */ ?> <div class="centerColumn" id="loginDefault"> <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?> <?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?> <!--BOF PPEC split login- DO NOT REMOVE--> <fieldset class="floatingBox back"> <legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend> <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?> <?php if ($ec_button_enabled) { ?> <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div> <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div> <hr /> <?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_DIVIDER; ?> <?php } ?> <?php // ** END PAYPAL EXPRESS CHECKOUT ** ?> <div class="information"><?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_SPLIT; ?></div> <?php echo zen_draw_form('create', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CREATE_ACCOUNT, BUTTON_CREATE_ACCOUNT_ALT); ?></div> </form> </fieldset> <fieldset class="floatingBox forward"> <legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend> <div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', 'size="18" id="login-password"'); ?> <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> <br class="clearBoth" /> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> </fieldset> <br class="clearBoth" /> <?php // ** GOOGLE CHECKOUT ** include(DIR_WS_MODULES . 'show_google_components.php'); // ** END GOOGLE CHECKOUT ** ?> <!--EOF PPEC split login- DO NOT REMOVE--> <?php } else { ?> <!--BOF normal login--> <?php if ($_SESSION['cart']->count_contents() > 0) { ?> <div class="advisory"><?php echo TEXT_VISITORS_CART; ?></div> <?php } ?> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <fieldset> <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?> <br class="clearBoth" /> <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> <br class="clearBoth" /> <?php // ** GOOGLE CHECKOUT ** include(DIR_WS_MODULES . 'show_google_components.php'); // ** END GOOGLE CHECKOUT ** ?> <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?> <fieldset> <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend> <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div> <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div> </form> <!--EOF normal login--> <?php } ?> </div>

tpl_login_default.php

this gives me proper headache, more then anything else so far huh

8 Aug 2010, 10:06 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

It's probably not hard-coded, but rather likely coming from somewhere in your database, perhaps via a constant. So, searching for the email address itself is futile. That's why I suggested doing a site-comparison, to identify differences, rather than finding explicit text.

Another thing to try: Does it match any of the email addresses you've entered in Admin->Configuration->Email Options?
If it does, start changing them all one by one to see which one it is, testing each time until you find it.
That may help narrow down what to search for.

But, again, a site comparison between your template and the default template, will reveal all the differences, and may expose the matter.

This is just the first of a zillion problems you'll likely have with your template-monster template. They're notorious for not working correctly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2010, 10:09 PM
#17
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

It's probably not hard-coded, but rather likely coming from somewhere in your database, perhaps via a constant. So, searching for the email address itself is futile. That's why I suggested doing a site-comparison, to identify differences, rather than finding explicit text.

Another thing to try: Does it match any of the email addresses you've entered in Admin->Configuration->Email Options?
If it does, start changing them all one by one to see which one it is, testing each time until you find it.
That may help narrow down what to search for.

But, again, a site comparison between your template and the default template, will reveal all the differences, and may expose the matter.

This is just the first of a zillion problems you'll likely have with your template-monster template. They're notorious for not working correctly.

i will try this options

is it site comparison hard to do? and takes long time?

thank you for ur help

8 Aug 2010, 10:18 PM
#18
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

FIXED!

thanks

the problem was in html.header.php

i got facebook code there : <?php
################ start of AutoOpenGraph ###################

$store_name = "Vodeoo"; //e.g. "Vodeoo Fashionable gear and clothes".
$store_url = "http://www.vodeoo.com"; //url to your store (no trailing '/')
$product_type = "product"; //type of product you're selling (see tutorial)
$use_addr = 0; //use address? if yes, set $use_addr = 1; (no quotes). edit lines 31-34.
$use_email = 0; //use email address? if yes, set $use_email = 1; (no quotes) edit line 37.
$use_phone = 0; //use phone number? if yes, set $use_phone = 1; (no quotes) edit line 40.

//if $use_addr is set to 1;
$street = "123 Main St"; //change to your street address.
$city = "Richmond"; //your city
$state = "VA"; //Your State. Facebook exaple uses abbreviation.
$zip = "23220"; //you're zip/postal code.
$country = "USA"; //your country. Facebook example uses acronym.

//if $use_email is set to 1;
$email_address = "[email protected]"; // your email

so deleted that and change fb option to =0

sorted
thx

8 Aug 2010, 10:53 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: admin email, show up in login field (caused by a bug in an addon)

Wonderful ... facebook breaks things again :eek:

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Nov 2010, 5:49 AM
#20
securit avatar

securit

New Zenner

Join Date:
Oct 2009
Location:
Nelson, NZ
Posts:
26
Plugin Contributions:
0

Re: admin email, show up in login field (caused by a bug in an addon)

DrByte:

Wonderful ... facebook breaks things again :eek:

Actually its just the designers use of $email_address... if you change the code and prefix all of his variables with og_ like I've done, the problem goes away :smile:

$og_store_name = "Bull in a China Shop"; //e.g. "Samanthas Power Tools", or "Gus' China Shop".
$og_store_url = "http://www.bullinachinashop.com"; //url to your store (no trailing '/')
$og_product_type = "product"; //type of product you're selling (see tutorial)
$og_use_addr = 0; //use address? if yes, set $use_addr = 1; (no quotes). edit lines 31-34.
$og_use_email = 0; //use email address? if yes, set $use_email = 1; (no quotes) edit line 37.
$og_use_phone = 0; //use phone number? if yes, set $use_phone = 1; (no quotes) edit line 40.
 
//if $use_addr is set to 1;
$og_street = "1 wayward rd";  //change to your street address.
$og_city = "Nelson"; //your city
//$state = "VA"; //Your State. Facebook exaple uses abbreviation.
$og_zip = "7842"; //you're zip/postal code.
$og_country = "NZ"; //your country. Facebook example uses acronym.
 
//if $use_email is set to 1;
$og_email_address = "[email protected]"; // your email
 
//if use_phone is set to 1
$og_phone_number = "+64 3 755 8579"; //format: +country code - area code - number.
 
//no need to edit below this line:
//extract($product_info_metatags->fields);
//extract($category_metatags->fields);
$og_prod_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
 
//get defined image or default
$myImage= zen_get_products_image((int)$_GET['products_id']);
$img = simplexml_load_string($myImage);
$img = $img['src'];
if($this_is_home_page){ $depends = $store_name; $og_product_type = "website"; }
else if ($categories_name){  $depends = $categories_name; $og_product_type = "website";  }
else if ($products_name){ $depends = $products_name; }
else { $depends = META_TAG_TITLE; $og_product_type = "website"; }
//print_r($product_info_metatags);
################# end of AutoOpenGraph ####################
 ?>
<meta property="og:title" content="<?php echo $depends; ?>" />
<meta property="og:type" content="<?php echo $og_product_type; ?>" />
<meta property="og:url" content="<?php echo $og_prod_url; ?>" />
<meta property="og:image" content="<?php echo $og_store_url . '/' . $img; ?>" />
<meta property="og:description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta property="og:site_name" content="<?php echo $og_store_name; ?>" />
<?php
if($og_use_addr){
echo '<meta property="og:street-address" content="'.$og_street.'" />'."\n";
echo '<meta property="og:locality" content="'.$og_city.'" />'."\n";
//echo '<meta property="og:region" content="'.$state.'" />'."\n";
echo '<meta property="og:postal-code" content="'.$og_zip.'" />'."\n";
echo '<meta property="og:country-name" content="'.$og_country.'" />'."\n";
}
if($og_use_email){
echo '<meta property="og:email" content="'.$og_email_address.'" />'."\n";
}
if($og_use_phone){
echo '<meta property="og:phone_number" content="'.$og_phone_number.'" />'."\n";
}?>
<?php
##################### end of AutoOpenGraph page detail ##############