Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RMA Returns Problem


teknonweb

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...