teknonweb Posted November 22, 2005 Share Posted November 22, 2005 When I click on customer in Admin I get: Parse error: parse error, unexpected T_REQUIRE in /home/divinedi/public_html/osCommerce2/catalog/admin/includes/column_left.php on line 22 I do not know what this means. No semicolons or quotes are missing. Here is how the file looks: require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php');? // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS-BOXES . 'returns.php'); // Returns module Addition 112105 ?> The problem is from the last line. I have looked and the file is in the boxes directory. Also, I have taken off the commented Returns Module Addition line--but still I have a problem. Please help. Quote Link to comment Share on other sites More sharing options...
GHWEB Informatique Posted November 22, 2005 Share Posted November 22, 2005 When I click on customer in Admin I get:I do not know what this means. No semicolons or quotes are missing. Here is how the file looks: require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php'); // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS-BOXES . 'returns.php'); // Returns module Addition 112105 ?> The problem is from the last line. I have looked and the file is in the boxes directory. Also, I have taken off the commented Returns Module Addition line--but still I have a problem. Please help. Hi You have a mistake at last line. Replace: require(DIR_WS-BOXES . 'returns.php'); // Returns module Addition 112105 with: require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 Ther was a "-" and not a "_" in your code. kind regards Ga?tan Hermann Quote Link to comment Share on other sites More sharing options...
teknonweb Posted November 22, 2005 Author Share Posted November 22, 2005 Hi You have a mistake at last line. Replace: require(DIR_WS-BOXES . 'returns.php'); // Returns module Addition 112105 with: require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 Ther was a "-" and not a "_" in your code. kind regards Ga?tan Hermann Thank you. You were right. I changed it, but I still get the error. It now looks like this: require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php');? // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 ?> I still get the parse error. Any other ideas? Quote Link to comment Share on other sites More sharing options...
GHWEB Informatique Posted November 22, 2005 Share Posted November 22, 2005 Thank you. You were right. I changed it, but I still get the error. It now looks like this: require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php'); // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 ?> I still get the parse error. Any other ideas? Hi Can you post all the code of your file? Perhaps th mistake is above. Quote Link to comment Share on other sites More sharing options...
teknonweb Posted November 22, 2005 Author Share Posted November 22, 2005 Hi Can you post all the code of your file? Perhaps th mistake is above. Yes. Here it is: <?php /* $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php');? // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 ?> Thank you for your help. Quote Link to comment Share on other sites More sharing options...
GHWEB Informatique Posted November 22, 2005 Share Posted November 22, 2005 Yes. Here it is: <?php /* $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'gv_admin.php'); // ICW CREDIT CLASS Gift Voucher Addittion require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 ?> Thank you for your help. Is your site online? What's the address? Perhaps can I found something else. Quote Link to comment Share on other sites More sharing options...
teknonweb Posted November 22, 2005 Author Share Posted November 22, 2005 Is your site online? What's the address? Perhaps can I found something else. No the site that I am loading this on is a sandbox site. We use it to test contributions before taking them live. This line was added from instructions in the RMA contribution readme. It was step 4 and it said: 4) admin/includes/column_left.php Before the final ?> add: require(DIR_WS_BOXES . 'returns.php'); When I take the line out, the error goes away. I looked in the boxes dir and the returns.php file is there Could it be possible that there is something wrong with the returns.php file or should I move the line somewhere else in the file? Quote Link to comment Share on other sites More sharing options...
GHWEB Informatique Posted November 22, 2005 Share Posted November 22, 2005 No the site that I am loading this on is a sandbox site. We use it to test contributions before taking them live. This line was added from instructions in the RMA contribution readme. It was step 4 and it said:When I take the line out, the error goes away. I looked in the boxes dir and the returns.php file is there Could it be possible that there is something wrong with the returns.php file or should I move the line somewhere else in the file? Hi, Could you post the returns.php file? best regards Ga?tan Hermann Quote Link to comment Share on other sites More sharing options...
teknonweb Posted November 22, 2005 Author Share Posted November 22, 2005 Is your site online? What's the address? Perhaps can I found something else. Hi, Could you post the returns.php file? best regards Ga?tan Hermann Thanks for helping. You really helped me to to process what might be right or wrong. Through your questions, I changed the line. I move it up above the gv line -- see below: <?php/* $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'returns.php'); // Returns module Addition 112105 (See I moved it up one line)[/i] require(DIR_WS_BOXES . 'gv_admin.php'); // ICW CREDIT CLASS Gift Voucher Addittion ?> This worked. :thumbsup: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.