Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,893
    Plugin Contributions
    96

    Default Constant OFFICE_IP_TO_HOST_ADDRESS already set ...

    Running v1.5.2 with all PHP errors reported, I receive the following on each page load:
    Code:
    [07-Dec-2013 12:56:10 America/New_York] PHP Notice:  Constant OFFICE_IP_TO_HOST_ADDRESS already defined in xxxxx/includes/languages/english/email_extras.php on line 51
    Checking that module out, the define on line 51 will never be run since the constant has already been defined at line 25:
    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2011 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: email_extras.php 19690 2011-10-04 16:41:45Z drbyte $
     */
    
    // office use only
      define('OFFICE_FROM','<strong>From:</strong>');
      define('OFFICE_EMAIL','<strong>Email:</strong>');
    
      define('OFFICE_SENT_TO','<strong>Sent To:</strong>');
      define('OFFICE_EMAIL_TO','<strong>To Email:</strong>');
    
      define('OFFICE_USE','<strong>Office Use Only:</strong>');
      define('OFFICE_LOGIN_NAME','<strong>Login Name:</strong>');
      define('OFFICE_LOGIN_EMAIL','<strong>Login Email:</strong>');
      define('OFFICE_LOGIN_PHONE','<strong>Telephone:</strong>');
      define('OFFICE_LOGIN_FAX','<strong>Fax:</strong>');
      define('OFFICE_IP_ADDRESS','<strong>IP Address:</strong>');
      define('OFFICE_HOST_ADDRESS','<strong>Host Address:</strong>');
      define('OFFICE_DATE_TIME','<strong>Date and Time:</strong>');
      if (!defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS', 'OFF');
    
    // email disclaimer
      define('EMAIL_DISCLAIMER', 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
      define('EMAIL_SPAM_DISCLAIMER','This email is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.');
      define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
      define('TEXT_UNSUBSCRIBE', "\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");
    
    // email advisory for all emails customer generate - tell-a-friend and GV send
      define('EMAIL_ADVISORY', '-----' . "\n" . '<strong>IMPORTANT:</strong> For your protection and to prevent malicious use, all emails sent via this web site are logged and the contents recorded and available to the store owner. If you feel that you have received this email in error, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . "\n\n");
    
    // email advisory included warning for all emails customer generate - tell-a-friend and GV send
      define('EMAIL_ADVISORY_INCLUDED_WARNING', '<strong>This message is included with all emails sent from this site:</strong>');
    
    
    // Admin additional email subjects
      define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
      define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[GV CUSTOMER SENT]');
      define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');
      define('SEND_EXTRA_CC_EMAILS_TO_SUBJECT','[EXTRA CC ORDER info] #');
    
    // Low Stock Emails
      define('EMAIL_TEXT_SUBJECT_LOWSTOCK','Warning: Low Stock');
      define('SEND_EXTRA_LOW_STOCK_EMAIL_TITLE','Low Stock Report: ');
    
    // for when gethost is off
      define('OFFICE_IP_TO_HOST_ADDRESS', 'Disabled');

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Constant OFFICE_IP_TO_HOST_ADDRESS already set ...

    Thanks.
    Will be fixed in 1.5.2 final release.
    .

    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. Replies: 2
    Last Post: 5 Dec 2013, 01:07 PM
  2. Replies: 0
    Last Post: 10 May 2013, 04:11 PM
  3. Replies: 2
    Last Post: 31 Aug 2010, 01:32 AM
  4. Constant already defined
    By David Allen in forum General Questions
    Replies: 3
    Last Post: 16 Apr 2008, 03:56 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