Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help: I'm getting errors when I go to "checkout"


Recommended Posts

HELP!

I have been clicking around my website and when I click to checkout of the shopping cart I get an error reading "

Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16" and I also got another error but that one is not popping up now. When I go to my errors log all of this appears...

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[23-May-2008 14:37:31] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/index.php on line 54

[23-May-2008 14:37:34] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/index.php on line 54

[23-May-2008 15:50:40] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:24:39] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:26:17] PHP Fatal error: Call to a member function add_current_page() on a non-object in /home/goodguys/public_html/includes/application_top.php on line 311

[23-May-2008 16:40:22] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:53:28] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

 

HELP PLEASE!!!

Link to comment
Share on other sites

Oh sorry :) Here it is...

 

<?php

/*

$Id: login.php 1739 2007-12-20 00:52:16Z hpdl $

 

Good Guys Biodiesel, Fuel and Mechanics

http://www.goodguysbiodiesel.com

 

Copyright © 2008

*/

 

define('NAVBAR_TITLE', 'Login');

define('HEADING_TITLE', 'Welcome, Please Sign In');

 

define('HEADING_NEW_CUSTOMER', 'New Customer');

define('TEXT_NEW_CUSTOMER', 'I am a new customer.');

define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account with 'Good Guys Biodiesel' you will be able to shop faster, be up to date on with your order status, and keep track of the orders you have previously made.');

 

define('HEADING_RETURNING_CUSTOMER', 'Returning Customer');

define('TEXT_RETURNING_CUSTOMER', 'I am a returning customer.');

 

define('TEXT_PASSWORD_FORGOTTEN', 'Password forgotten? Click here.');

 

define('TEXT_LOGIN_ERROR', 'Error: No match for E-Mail Address and/or Password.');

define('TEXT_VISITORS_CART', '<font color="#ff0000"><b>Note:</b></font> Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. <a href="java script:session_win();">[More Info]</a>');

?>

 

 

 

Open your /includes/languages/english/ login.php file. Copy and paste it here.
Link to comment
Share on other sites

Try this ...

 

From this

define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account with 'Good Guys Biodiesel' you will be able to shop faster, be up to date on with your order status, and keep track of the orders you have previously made.');

 

To this

define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account with Good Guys Biodiesel you will be able to shop faster, be up to date on with your order status, and keep track of the orders you have previously made.');

Link to comment
Share on other sites

Okay that worked! Thank you! But now I am getting this error...

Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

AND that looks like this...

<?php

/*

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

 

Good Guys Biodiesel, Fuel and Mechanics

http://www.goodguysbiodiesel.com

 

Copyright © 2008

 

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel </b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various products/services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]. .' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . [email protected]. '.' . "\n");

?>

 

 

Try this ...

 

From this

define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account with 'Good Guys Biodiesel' you will be able to shop faster, be up to date on with your order status, and keep track of the orders you have previously made.');

 

To this

define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account with Good Guys Biodiesel you will be able to shop faster, be up to date on with your order status, and keep track of the orders you have previously made.');

Link to comment
Share on other sites

Please someone I still need help the error is reading...

Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

 

 

AND the code looks like this...

 

<?php

/*

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

 

Good Guys Biodiesel, Fuel and Mechanics

http://www.goodguysbiodiesel.com

 

Copyright © 2008

 

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel');

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel' </b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> Any products added to your online cart remain there until you remove them, or check them out' . "\n" . '<li><b>Address Book</b> We can now deliver your products to another address other than yours! . "\n" . '<li><b>Order History</b> View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to . [email protected]' . "\n");

?>

 

 

 

I had saw that and changed it but now it is saying line 22
Link to comment
Share on other sites

<?php
/*
$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

Good Guys Biodiesel, Fuel and Mechanics
http://www.goodguysbiodiesel.com

Copyright © 2008

*/

define('NAVBAR_TITLE', 'Create an Account');

define('HEADING_TITLE', 'My Account Information');

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel');
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");
define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel </b>' . "\n\n");
define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> Any products added to your online cart remain there until you remove them, or check them out' . "\n" . '<li><b>Address Book</b> We can now deliver your products to another address other than yours! . "\n" . '<li><b>Order History</b> View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");
define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]' . "\n\n");
define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to . [email protected]' . "\n");
?>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Ok so I copy and pasted that and now it says line 23!!!! AHHH

 

<?php
/*
$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

Good Guys Biodiesel, Fuel and Mechanics
http://www.goodguysbiodiesel.com

Copyright © 2008

*/

define('NAVBAR_TITLE', 'Create an Account');

define('HEADING_TITLE', 'My Account Information');

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel');
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");
define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel </b>' . "\n\n");
define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> Any products added to your online cart remain there until you remove them, or check them out' . "\n" . '<li><b>Address Book</b> We can now deliver your products to another address other than yours! . "\n" . '<li><b>Order History</b> View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");
define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]' . "\n\n");
define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to . [email protected]' . "\n");
?>

Link to comment
Share on other sites

<?php
/*
$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

Good Guys Biodiesel, Fuel and Mechanics
http://www.goodguysbiodiesel.com

Copyright © 2008

*/

define('NAVBAR_TITLE', 'Create an Account');

define('HEADING_TITLE', 'My Account Information');

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel');
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");
define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel </b>' . "\n\n");
define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . 
'<li><b>Permanent Cart</b> Any products added to your online cart remain there until you remove them, or check them out' . "\n" . 
'<li><b>Address Book</b> We can now deliver your products to another address other than yours!' . "\n" . 
'<li><b>Order History</b> View your history of purchases that you have made with us.' . "\n" . 
'<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");
define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]' . "\n\n");
define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to . [email protected]' . "\n");
?>

I missed a spot....

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Okay so that somewhat worked. Now it just goes to a blank screen....AHHH this is so frustrating...Thank you for helping me though

 

<?php
/*
$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

Good Guys Biodiesel, Fuel and Mechanics
http://www.goodguysbiodiesel.com

Copyright © 2008

*/

define('NAVBAR_TITLE', 'Create an Account');

define('HEADING_TITLE', 'My Account Information');

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

define('EMAIL_SUBJECT', 'Welcome to Good Guys Biodiesel');
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");
define('EMAIL_WELCOME', 'We welcome you to <b> Good Guys Biodiesel </b>' . "\n\n");
define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . 
'<li><b>Permanent Cart</b> Any products added to your online cart remain there until you remove them, or check them out' . "\n" . 
'<li><b>Address Book</b> We can now deliver your products to another address other than yours!' . "\n" . 
'<li><b>Order History</b> View your history of purchases that you have made with us.' . "\n" . 
'<li><b>Products Reviews</b> - Share your opinions on products/services with our other customers.' . "\n\n");
define('EMAIL_CONTACT', 'For help with any of our online services, please email Good Guys Biodiesel: . [email protected]' . "\n\n");
define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to . [email protected]' . "\n");
?>

I missed a spot....

:blush:

Link to comment
Share on other sites

I don't think there's anything wrong with the code we've been bandying about here....

 

Can you check to see what your error log says now?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

This is a stock create_account.php from includes/languages/english folder.

The text in red contain the information it is referring to.

 

Example: STORE_OWNER_EMAIL_ADDRESS <--Doesn't mean erase that and put your email address there.

 

It already refers to or contains the store owner's email address.

 

The script will take care of that. It will place the information in the right place.

Copy and paste this to your includes/languages/english/ create_account.php

 

<?php

/*

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

?>

Link to comment
Share on other sites

Still getting a blank page when I click "new customer login". Here is my error log now.

 

 

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[22-May-2008 21:41:37] PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /home/goodguys/public_html/includes/functions/sessions.php on line 127

[23-May-2008 14:37:31] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/index.php on line 54

[23-May-2008 14:37:34] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/index.php on line 54

[23-May-2008 15:50:40] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:24:39] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:26:17] PHP Fatal error: Call to a member function add_current_page() on a non-object in /home/goodguys/public_html/includes/application_top.php on line 311

[23-May-2008 16:40:22] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:53:28] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 16:57:11] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 17:08:03] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 17:10:53] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 17:19:05] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 17:19:21] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/login.php on line 16

[23-May-2008 18:01:01] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 18

[23-May-2008 18:01:45] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:02:02] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:02:35] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:02:43] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:04:49] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:06:34] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:06:40] PHP Parse error: syntax error, unexpected T_STRING in /home/goodguys/public_html/includes/languages/english/create_account.php on line 19

[23-May-2008 18:08:55] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 18:10:11] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 18:15:27] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 18:20:33] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 18:23:56] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 18:24:01] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 19:14:56] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 19:30:49] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 19:30:59] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 19:45:21] PHP Parse error: syntax error, unexpected '/' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 22

[23-May-2008 20:13:08] PHP Parse error: syntax error, unexpected '>' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 23

[23-May-2008 20:24:48] PHP Parse error: syntax error, unexpected '>' in /home/goodguys/public_html/includes/languages/english/create_account.php on line 23

 

 

This is a stock create_account.php from includes/languages/english folder.

The text in red contain the information it is referring to.

 

Example: STORE_OWNER_EMAIL_ADDRESS <--Doesn't mean erase that and put your email address there.

 

It already refers to or contains the store owner's email address.

 

The script will take care of that. It will place the information in the right place.

Copy and paste this to your includes/languages/english/ create_account.php

 

<?php

/*

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

?>

Link to comment
Share on other sites

How are you making changes?

 

Are you editing the file on the server, or on your PC then FTP'ing to the site?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Making the changes on the server and clicking save. I don't know how to do the ftp thing. I barely figured out how to change things on the server.

 

 

How are you making changes?

 

Are you editing the file on the server, or on your PC then FTP'ing to the site?

:unsure:

Link to comment
Share on other sites

Are you using the osC File Manager to make changes?

:unsure:

 

If so, post what you have for the contents of /includes/languages/english/create_account.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Yes I'm using the file manager...Here is what is posted in that section...

 

<?php

/*

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

?>

 

 

Are you using the osC File Manager to make changes?

:unsure:

 

If so, post what you have for the contents of /includes/languages/english/create_account.php

Link to comment
Share on other sites

That looks OK.

 

The reason I asked for that is if you have an unpatched file manager it can screw up PHP files in a heartbeat.

 

Do you have a fresh copy of your create_account.php (that goes in the root folder) on your PC you can upload?

 

I'm thinking it got corrupted somewhere along the way.

 

All the other pages work on your site except that one.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

no cause i never downloaded anything on my computer. i just always made any changes in the server and clicked save. i thought you gave me an untouched version to paste back into the create_account section....

what do you think i need to do???

 

That looks OK.

 

The reason I asked for that is if you have an unpatched file manager it can screw up PHP files in a heartbeat.

 

Do you have a fresh copy of your create_account.php (that goes in the root folder) on your PC you can upload?

 

I'm thinking it got corrupted somewhere along the way.

 

All the other pages work on your site except that one.

Link to comment
Share on other sites

Not the one that goes in the root folder.

 

We've been dealing with the one in the languages folder.

 

Try this link:

 

What version is my shop?

 

Find out what version your shop is, and we'll find a replacement file for you.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

this is what I found...

 

define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC2');

 

 

 

Not the one that goes in the root folder.

 

We've been dealing with the one in the languages folder.

 

Try this link:

 

What version is my shop?

 

Find out what version your shop is, and we'll find a replacement file for you.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...