Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS

    Hi Lat9

    Thank you for your help - turns out I had removed the EMAIL_LOGO_FILENAME section in the email_extras.php because I hard coded the logo link in my email templates not realising it was function critical. One of the drawback of not understanding php unfortunately - so my bad.

    Thanks once again for your assistance - much appreciated.

    Cheers
    Brinley

  2. #12
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS

    Spoke too soon - Still getting the following errors

    ZenCart version: 1.5.6c - PHP 7.2 - Square Payment module

    Code:
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /****/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_FILENAME - assumed 'EMAIL_LOGO_FILENAME' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 494.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_ALT_TITLE_TEXT - assumed 'EMAIL_LOGO_ALT_TITLE_TEXT' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 496.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_WIDTH - assumed 'EMAIL_LOGO_WIDTH' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 497.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_HEIGHT - assumed 'EMAIL_LOGO_HEIGHT' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 498.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:161]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_FILENAME - assumed 'EMAIL_LOGO_FILENAME' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 494.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:161]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_ALT_TITLE_TEXT - assumed 'EMAIL_LOGO_ALT_TITLE_TEXT' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 496.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:161]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_WIDTH - assumed 'EMAIL_LOGO_WIDTH' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 497.
    
    [07-Jan-2020 12:46:44 Europe/London] Request URI: /exampleadmin/orders.php?oID=12105&action=update_order, IP address: 910.198.106.185
    #1 zen_build_html_email_from_template() called at [/home/CpanelID/public_html/includes/functions/functions_email.php:108]
    #2 zen_mail() called at [/home/CpanelID/public_html/includes/functions/functions_osh_update.php:161]
    #3 zen_update_orders_history() called at [/home/CpanelID/public_html/exampleadmin/orders.php:158]
    --> PHP Warning: Use of undefined constant EMAIL_LOGO_HEIGHT - assumed 'EMAIL_LOGO_HEIGHT' (this will throw an Error in a future version of PHP) in /home/CpanelID/public_html/includes/functions/functions_email.php on line 498.
    email_extras.php contains the following code

    Code:
    define ('EMAIL_LOGO_FILENAME', 'logo.png');  //-File is present in /email folder
    define ('EMAIL_LOGO_WIDTH', '351');
    define ('EMAIL_LOGO_HEIGHT', '91');
    define ('EMAIL_LOGO_ALT_TITLE_TEXT', 'Brinley Williams Ltd');
    functions_email.php, functions_osh_update.php and admin/orders.php are all the same as the files originally downloaded.

    any help would be appreciated.

    Cheers
    Brinley

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS

    Brinley, there's also an admin version of that language file (/admin/includes/languages/english/email_extras.php). Make sure that you've updated that file as well.

  4. #14
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS

    Duw duw! I didnt know that - thx Lat9, ur a very knowledgeable star.

  5. #15
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS

    Quote Originally Posted by welshop.com View Post
    Duw duw! I didnt know that - thx Lat9, ur a very knowledgeable star.
    Thanks for the compliment, Britney. I've always thought that that file should be common between the admin and storefront (so you don't have to do multiple, identical changes).

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v156 Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY
    By RixStix in forum Upgrading to 1.5.x
    Replies: 15
    Last Post: 4 Dec 2023, 05:56 PM
  2. Replies: 32
    Last Post: 6 Sep 2020, 09:03 PM
  3. v155 adding constants - PHP Notice: Use of undefined constant
    By torvista in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 4 May 2016, 07:07 AM
  4. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 PM

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