Results 1 to 10 of 28

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    I am not overriding email extras so it is using the base one. Below is sample from that file

    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] #');

    1) English only

    2) FILENAME_EMAILS_EXTRA not found in my english.php

    3)
    Code:
    /home/sites/25a.co.uk/public_html/includes/classes/order.php
    
    Line #1047 : zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
     
    /home/sites/25a.co.uk/public_html/includes/languages/english/email_extras.php
    
    Line #42 : define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    2) FILENAME_EMAILS_EXTRA not found in my english.php
    Yeah, that's because I requested the wrong information. :) Oops..

    FILENAME_EMAIL_EXTRAS is the constant that should be expected... Under normal installations this should resolve to a define providing email_extras but...

    Now because the create account works correctly, it would help to then search for the constant that provides that replacement, so try searching for: SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT using the above methodology.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by mc12345678 View Post
    Yeah, that's because I requested the wrong information. :) Oops..

    FILENAME_EMAIL_EXTRAS is the constant that should be expected... Under normal installations this should resolve to a define providing email_extras but...

    Now because the create account works correctly, it would help to then search for the constant that provides that replacement, so try searching for: SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT using the above methodology.
    found these but look ok to me?/home/sites/25a.co.uk/public_html/includes/languages/english/email_extras.php

    Line #40 : define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');

    /home/sites/25a.co.uk/public_html/includes/languages/english/email_extrasold.php

    Line #40 : define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');

    /home/sites/25a.co.uk/public_html/includes/modules/create_account.php

    Line #426 : if (trim(SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT) != 'n/a') zen_mail('', SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO, SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT . ' ' . EMAIL_SUBJECT,

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    found these but look ok to me?/home/sites/25a.co.uk/public_html/includes/languages/english/email_extras.php

    Line #40 : define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');

    /home/sites/25a.co.uk/public_html/includes/languages/english/email_extrasold.php

    Line #40 : define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');

    /home/sites/25a.co.uk/public_html/includes/modules/create_account.php

    Line #426 : if (trim(SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT) != 'n/a') zen_mail('', SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO, SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT . ' ' . EMAIL_SUBJECT,
    Ah ha.. There might be the issue...

    Rename: includes/languages/english/email_extrasold.php
    to: includes/languages/english/email_extrasold.php.old
    Or to have some extension other than .php... (Preferably to be removed from the server entirely, but there may be content therein that you may want even though it is incorrectly renamed as "old".)

    Though now I question that as a solution... Looking through the code there doesn't appear to be any way to pull the email_extras file using email_extrasold.php unless the constant FILENAME_EMAIL_EXTRAS has been reassigned to view that file... Seeing as that file doesn't return the "missing" constant it seems to be the one being loaded for some reason.
    Last edited by mc12345678; 14 Oct 2015 at 09:48 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by mc12345678 View Post
    Ah ha.. There might be the issue...

    Rename: includes/languages/english/email_extrasold.php
    to: includes/languages/english/email_extrasold.php.old
    Or to have some extension other than .php... (Preferably to be removed from the server entirely, but there may be content therein that you may want even though it is incorrectly renamed as "old".)

    Though now I question that as a solution... Looking through the code there doesn't appear to be any way to pull the email_extras file using email_extrasold.php unless the constant FILENAME_EMAIL_EXTRAS has been reassigned to view that file... Seeing as that file doesn't return the "missing" constant it seems to be the one being loaded for some reason.
    Nice thought but did not work admin email subject still says SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT Order Confirmation No: 6470

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by Congerman View Post
    Nice thought but did not work admin email subject still says SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT Order Confirmation No: 6470
    What process is generating this? Is this a from a plugin on the admin side, or is this when a customer purchases from the store front?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    This is a customer order. I have just tried using the classic template and all was resolved.

    It is a problem with "bana" template I guess

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Do you, by any chance, have a file named /includes/languages/english/YOUR_TEMPLATE/email_extras.php? If so, check to make sure that the constant in question is defined in that file.

  9. #9
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT and starnge charecter

    Quote Originally Posted by lat9 View Post
    Do you, by any chance, have a file named /includes/languages/english/YOUR_TEMPLATE/email_extras.php? If so, check to make sure that the constant in question is defined in that file.
    no i don't

 

 

Similar Threads

  1. Starnge Payment Issue
    By holsterland in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2011, 03:01 PM

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