Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

    Default Invoice Payment Method V 23Dec2018, PHP warnings on foreign language site

    Still upgrading to V157, PHP739, Responsive classic green template

    Added this Invoice Payment Method plugin and it works fine in English but got some PHP warnings in my German site.
    The warnings below are about AUTHORIZENET and FIRSTDATA; I do not use any of these payment methods.
    I could fix the problem and stop the warnings by defining each "status" as false in each payment method in \languages\german\modules\payment

    Code:
    PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_STATUS
    
    PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_STATUS
    
    PHP Warning: Use of undefined constant MODULE_PAYMENT_FIRSTDATA_PAYMENTPAGES_STATUS

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Invoice Payment Method V 23Dec2018, PHP warnings on foreign language site

    Those Warnings can be safely ignored in this case. They are not errors that will cause code execution problems.


    That said, the fastest "fix" without a full upgrade, is to delete all modules that you don't use. That way the system won't try to check whether they're enabled.

    To do that, delete files for modules not in use, in the following directories. It's important that BOTH the module and its associated language file (in all languages) be removed, else errors will occur.

    /includes/modules/payment/XXXXXXX.php
    /includes/languages/EACH_LANGUAGE_NAME/modules/payment/XXXXXXX.php

    There are sometimes extra payment-provider-specific subdirectories at /includes/modules/payment/YYYYYY/ ... yes you can delete those if you're not using those providers.

    I don't really recommend doing all this. But based on your various other posts I suspect this is the sort of thing you're wishing for.
    .

    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.

 

 

Similar Threads

  1. v156 invoice/packing slip: orders products and payment only available in one language
    By gernot in forum Managing Customers and Orders
    Replies: 2
    Last Post: 15 Sep 2019, 02:09 PM
  2. Looking for 'Invoice' Payment Method
    By Tamuren in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 May 2011, 04:35 PM
  3. PDF Order Centre-Where's the code generating shipping method text in invoice.php
    By gamenano in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 23 Feb 2010, 07:19 PM
  4. Foreign language characters gone funny
    By cloakvai in forum General Questions
    Replies: 3
    Last Post: 16 Feb 2010, 05:00 PM
  5. 4 Letters in a category name displayed in a foreign language
    By PupsikUK in forum Addon Language Packs
    Replies: 2
    Last Post: 28 Mar 2009, 10:13 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR