Results 1 to 6 of 6
  1. #1
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Problems with cloned payment methods: get a warning!

    Hi ! As I needed several payment methods as the cash on delivery one (cod) , I made several of them. In fact, I am really only interested in making buyers select a payment method so that I know which one they chose .

    Anyway my problem is the following:

    I have cloned the payment methods (both cod.php files) and I have installed them correctly . They appear during the checkout and I can choose them , BUT once I click on the final step "confirm order" , I don't get the normal confirmation page , I get the following error :

    Warning: Cannot modify header information - headers already sent by (output started at /.../includes/languages/english/modules/payment/cod3.php:27) in /.../includes/functions/functions_general.php on line 44

    can anyone help me, please ?

    Thanks a lot in advance !
    Jack

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problems with cloned payment methods: get a warning!

    Sounds like you might have space(s) or blank line(s) at the end of the file listed in the error ...

    Using a good TEXT editor and not something like MSWord or your Control Panel ... remove the spaces and blank lines after the closing php tag ?> at the end of the file ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Problems with cloned payment methods: get a warning!

    Hi ! thanks for your help and your fast reply !

    Well, I checked if there were spaces or empty lines after the ?> but there were not. I used an editor that i also used for programing I think, it should be ok (like the ones for latex).

    Would you have another suggestion ?
    It must really be something I did when I changed all the cod to cod2 (or 3,4) ...but I don't know what ...what else could it be ?

    Thanks a lot again !
    Jack

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problems with cloned payment methods: get a warning!

    You checked this file:
    /includes/languages/english/modules/payment/cod3.php

    And there is nothing after the closing php tag ?> at the bottom of the file? No spaces no blank lines?

    Putting your cursor at the end of the ?> you should not be able to move right nor down ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Problems with cloned payment methods: get a warning!

    I checked the wrong file, sorry !

    There were indeed some empty lines and now it works great !

    Thanks a lot !
    Jack

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problems with cloned payment methods: get a warning!

    Thanks for the update that you found the solution and were able to remove those nasty ol' space(s) and blank line(s) ...

    php hates those before the opening php tag <?php or following the closing php tag ?> and will throw those horrible looking errors ...

    You'd think if it knows what is wrong it would just fix the fool things and go on on its own self ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Payment module with various payment methods
    By hdolinski in forum Addon Payment Modules
    Replies: 0
    Last Post: 9 Oct 2014, 09:37 PM
  2. Orderproblems with several payment methods
    By jagge in forum General Questions
    Replies: 1
    Last Post: 11 Apr 2011, 04:00 PM
  3. Problems with cloned Shipping Module
    By RadarGraphics in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Nov 2008, 07:24 PM
  4. why I get this warning when I open modules/payment page?
    By zoreli in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 May 2007, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg