osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Fatal Error at checkout - related to gift voucher contrib

This is a discussion on Fatal Error at checkout - related to gift voucher contrib within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have just installed the gift voucher/credit class contribution, and thought that it was all going well. I can create ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-25-2005, 04:04 AM
New Member
 
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
PerfectEye
Default Fatal Error at checkout - related to gift voucher contrib

I have just installed the gift voucher/credit class contribution, and thought that it was all going well. I can create gift vouchers/discount codes in my admin suite, and the shop hasn’t broken down either. I tried to test purchasing an item as the shopping cart pages have been fairly modified – I get as far as the payment method page (checkout_payment.php), where I can enter credit card details/or select using a cheque/money order. But, when I click “redeem” (with a gift code) or click “continue” to confirm the order I get Fatal Error messages (on the checkout_confirmation.php page).

This is the error message with the cheque/money order module enabled:

Fatal error: Cannot redeclare class moneyorder in /home/readingniguk/public_html/catalog/includes/modules/payment/moneyorder.php on line 13

This is error message with the cheque/money order module removed (leaving just credit card as an option):

Fatal error: Cannot redeclare class cc in /home/readingniguk/public_html/catalog/includes/modules/payment/cc.php on line 13

Different error message – but same line 13 – and same redeclaring of class problem.

Is it something to do with you cant parse the same file at the same time or something? Is the above problem easy to identify or solve / work around?

I have a delivery date picker, Product Attribute text input, Purchase without account, STS and X-sell contributions all installed. But I didn’t think they’d conflict – none of the modified code was ever in the same place.

Please advise!!!! Many Thanks in advance!

Happy to post code or send pages if anyone can help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-25-2005, 08:50 AM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: Fatal Error at checkout - related to gift voucher contri

I hate to tell you, but this GV/Coupon thing seems riddled with bugs and issues. It has also been added to osCMax 2.0, and... what a mess.

Today I am going to go through as much of it as I can, and fix the bugs that have been reported...

Um, about your problem, it looks like your code is loading the payment.php class twice... not sure how, but that is what it looks like.

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-27-2005, 02:09 PM
New Member
 
Join Date: Jun 2005
Location: St Albans, UK
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
rjavery
Default

Does anyone have a clue what is causing this?

I am getting it and I know the reason in my case but not the cure.

I have just moved my installation from /catalog to / on my server (wel actually I have moved the virtual root of the server to point at /catalog.

I am now getting this message on checkout and in the admin / modules screen.

I have changed includes/configure and admin/includes/configure.

In includes I have :
define('DIR_WS_HTTP_CATALOG', '');
define('DIR_WS_HTTPS_CATALOG', '');

in admin/includes I have:-
define('DIR_FS_DOCUMENT_ROOT', 'somepath/catalog/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/somepath/catalog/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/'); // absolute path required
define('DIR_FS_CATALOG', '/somepath/catalog/'); // absolute path required

This is a little more complicated. I have moved the root for my servers path from /somepath to /somepath/catalog (thus avoiding having to physically move any files). So 'catalog/' has been taken out of my virtual paths but added in to the physical ones. Does this make sense? Admin seemse to be working ok in the main (I could not sign on until I made the edits DIR_WS_ADMIN edits, and FCKeditor would not work until I changes the /somepath/catalog paths).

What have I done wrong.

I have taken orders fine with this module before.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-27-2005, 02:32 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default

First, what is the error?

Second:

These:

define('DIR_WS_HTTP_CATALOG', '');
define('DIR_WS_HTTPS_CATALOG', '');

Should be this:

define('DIR_WS_HTTP_CATALOG', 'http://www.your-domain.com');
define('DIR_WS_HTTPS_CATALOG', 'https://www.your-domain.com');

and all the other defines:

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

Should NOT start with '/', in other words, the above should be 'admin/' instead of '/admin/'

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-27-2005, 02:41 PM
New Member
 
Join Date: Jun 2005
Location: St Albans, UK
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
rjavery
Default

Oops, bit of a Red Herring.

I had also edited the includes/languages/english/modules/payment/moneyorder.php to de-americanise some of the text and stop the payment message sounding quite so distrusting of customers.

I then managed to copy the local includes/modules/payment/moneyorder.php over the languages/english version so it probably was trying to define itself twice. Now fixed by re-sending the local version.

Thanks for listening!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Gift Voucher error returning from PayPal kenlyle osCMax v2 Features Discussion 1 11-10-2005 07:47 AM
Checkout Problem - Gift Voucher Coupon Zero 0 no balance kenlyle osCMax v1.7 Discussion 0 11-07-2005 08:53 AM
Anyone he;p with errors installing the gift voucher contrib? obscure osCommerce 2.2 Modification Help 1 10-12-2004 07:56 AM
Gift Voucher checkout harpon osCMax v1.7 General Mods Discussion 2 07-30-2004 12:00 PM
Help! Error message during checkout related to shipping hittlehottle osCommerce 2.2 Modification Help 1 04-28-2004 08:38 AM


All times are GMT -8. The time now is 08:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax