Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2008
    Posts
    31
    Plugin Contributions
    0

    Default Removing offline processing option and module page errors

    Hi,
    I used the latest zen cart and have 3 payment options right now, paypal/check/offline cc.

    I want to stop process offline cc and keep only the paypal or check order.
    If I remember right I can set this from admin>modules>payment ???

    But when I go admin>modules>payment, I get warning in the top of the page, and it wont let me do any configuration.

    Here is the errors I see. (bythe way, it seem like the paypal option is working fine from the customer end)

    Warning: main(/xxx/includes/languages/english/modules/payment/_original_paypal.php): failed to open stream: No such file or directory in /xxx/adminxxx/modules.php on line 173

    Warning: main(): Failed opening '/includes/languages/english/modules/payment/_original_paypal.php' for inclusion (include_path='.:/usr/local/lib/php') in /adminxxx/modules.php on line 173

    Fatal error: Cannot redeclare class paypal in /xxx/includes/modules/payment/paypal.php on line 20

    Hope am making sence, thank you much!

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

    Default Re: Removing offline processing option and module page errors

    You have a common error caused by renaming a module to another name but ... this is an auto loading directory so all php files load ...

    See if you have a file:
    /includes/modules/payment/_original_paypal.php

    Try renaming that as:
    /modules/payment/_original_paypal.php_HIDE

    or copy it to your computer and remove it from the server ...
    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
    Jun 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Removing offline processing option and module page errors

    I guess am missing the _original_paypal.php file, cause is nowhere to be seen.

    any quick fix to get rid of the offline cc processing from the customer end?

    thank you so much, J.

  4. #4
    Join Date
    Jun 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Removing offline processing option and module page errors

    I am confuse again, the file "_original_paypal.php" can I download it somewhere? or just create an empty file ?
    Also... how do I change payments options on the checkout page ?
    I mean... remove the offline credit processing for example...
    Thank you.

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

    Default Re: Removing offline processing option and module page errors

    _original_paypal.php is NOT a valid file ...

    It looks like someone renamed an old paypal.php to _original_paypal.php and now it is causing errors ...

    As a safety, download it to your computer then delete it ...

    Then, once that is off the server, go to your Zen Cart Admin to the Modules ... Payment Modules ... and only have installed the payment modules that you are actually using ...

    You will see the Credit Card - Offline Processing cc payment module that can be removed by clicking on it and clicking the REMOVE button ...
    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!

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

    Default Re: Removing offline processing option and module page errors

    NOTE: this language file should also be saved to your computer and removed from the server:
    /includes/languages/english/modules/payment/_original_paypal.php
    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!

  7. #7
    Join Date
    Jun 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Removing offline processing option and module page errors

    I dont have those files on my server at all. "No such file or directory"
    If I create just a file and name it "_original_paypal.php" and drop it in the directory, the first 2 warning will be gone and only the 3'rd one will stay, but I dont know if thats a right thing to do.

    here are the warnings again:

    1.Warning: main(/xxx/includes/languages/english/modules/payment/_original_paypal.php): failed to open stream: No such file or directory in /xxx/adminxxx/modules.php on line 173

    2.Warning: main(): Failed opening '/includes/languages/english/modules/payment/_original_paypal.php' for inclusion (include_path='.:/usr/local/lib/php') in /adminxxx/modules.php on line 173

    3.Fatal error: Cannot redeclare class paypal in /xxx/includes/modules/payment/paypal.php on line 20

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Removing offline processing option and module page errors

    Quote Originally Posted by coins View Post
    Warning: main(/xxx/includes/languages/english/modules/payment/_original_paypal.php): failed to open stream: No such file or directory in ...
    Zen Cart payment modules consist of 2 files: a logic module and a corresponding language file.
    Zen Cart auto-loads all payment modules by looking up ALL *.PHP files in your /includes/modules/payment/ folder. (THATS WHERE YOU HAVE THE OFFENDING FILE). Before actually loading those module files, it FIRST looks for and loads the corresponding language file. But, since YOU only have the logic-module, and NOT the language file, you're getting the errors you're reporting.

    So, as Ajeh said, go and delete the /includes/modules/payment/_original_paypal.php file because THAT is what's causing your problems.

    In the future, if you're going to rename files to keep them as backups, DO NOT use ".php" as the filename extension. Use ".bak" or something else.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jun 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Removing offline processing option and module page errors

    Ooops, was looking only under the languages directory.
    thank you both so much, it works like a charm now.

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

    Default Re: Removing offline processing option and module page errors

    Thanks for the update that you were able to correct the problem by removing these files from the auto loading directories ...
    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. Isn't there supposed to be a Credit Card option for offline processing?
    By johnwoodman in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 14 Aug 2010, 10:15 PM
  2. basic Credit Card module, used for Offline CC order processing?
    By uniqueliving in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 9 Jun 2010, 04:39 PM
  3. Authorize.net and offline processing
    By gchalk in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Sep 2008, 06:54 PM
  4. Offline CC processing and $0 totals
    By entica in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 14 May 2008, 05:00 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