Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    22
    Plugin Contributions
    0

    Default Email Welcome stack error

    Hi,

    I installed ZC 1.3.9 with two languages.

    Everything works well to choose the new language, send emails and subscribe newsletters.

    BUT... In the Admin, when I go to "Tools>Email Welcome"

    a pink stripe appear at the top of the page with the message "header".

    It is a class="messageStackError".

    In the welcome email of THAT language, the email header doesn't appear.

    BUT... if I switch to English to see the email welcome tool, the stripe disappears... the email header appears... and, finally, the Zencart Admin logo also disappears.

    I believe there are 2 problems in the same page, but I don't know how to solve them.

    Any idea?

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Welcome stack error

    Simple: Don't use that screen. It's ONLY a preview anyway, and doesn't always work well in a multi-lingual case especially if the language files for the added languages aren't complete (missing defines, missing files, images, etc) or your haven't created the email templates for the additional languages.

    Much better to create new customer accounts so that you send ACTUAL real emails out. That's the true test of ensuring it works correctly anyway. And that's your best workaround.


    ref: http://www.zen-cart.com/wiki/index.p...lish_Languages
    .

    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.

  3. #3
    Join Date
    Oct 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Email Welcome stack error

    Hooray, I think I found the answer

    at least to 1 of the 2 problems (as I suspected...)

    http://www.zen-cart.com/forum/showthread.php?t=88305

    No Stack Error anymore, Email Logo visible in every language.



    Only 1 problem left:

    Zencart Admin header is without logo, and

    "Check for Updates to Zen Cart
    (You are presently using: v1.3.9h)"

    is not aligned...

    This only happens in the Email Welcome page, and in both languages...

    If you have a clue, please tell me

  4. #4
    Join Date
    Oct 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Email Welcome stack error

    Why is the header of Admin Email Welcome page getting images from a different place from all other pages?

    Instead of /zencart/images/logo.gif

    it should be /zencart/admin/images/logo.gif


    The same is happening with the "current version" button.


    Possibly, it has something to do with "require language template"

    in admin/email_welcome.php:


    PHP Code:
     if (file_exists(DIR_FS_CATALOG DIR_WS_LANGUAGES $_SESSION['language'] . (($template_dir=='') ? '' '/'.$template_dir) .'/' 'create_account.php')) {

        require(
    DIR_FS_CATALOG DIR_WS_LANGUAGES $_SESSION['language'] . (($template_dir=='') ? '' '/'.$template_dir) . '/' 'create_account.php');

      } else {

        require(
    DIR_FS_CATALOG DIR_WS_LANGUAGES $_SESSION['language'] . '/' 'create_account.php');

      } 

    Anyone knows how to correct this?

    Thanks

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Welcome stack error

    I'm not sure what you've changed, or what you've got wrong on your site. I can't replicate the problems you're describing when looking at my fresh clean uncustomized install of v1.3.9h.

    If your DIR_FS_xxxxx or DIR_WS_xxxxx settings have been tampered with then it might start looking in the wrong places.

    However, the email-welcome screen is NOT a true representation of normal use. And the only way it can SOMEWHAT emulate SOME of the store-side operation in order to TRY to show a SAMPLE of what the welcome email MIGHT look like, is to use store-side paths to find the store-side files including languages and images and email templates, etc. If you are tampering with any of the paths then I'm not surprised if it stops working.
    .

    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.

  6. #6
    Join Date
    Oct 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Email Welcome stack error

    Thanks for your answer.

    Well, I tell you what I did...

    I installed a brand new Zencart just to compare the code.

    Since the only add-on I installed related with E-mail files was Newsletter Subscribe 2.2.2 for ZC 1.3.9, I believe that something in it (I don't know what) is affecting the Welcome Email Page.

    The only differences I see in the code (not present in the original ZC) are related to the CSS styling of the Newsletter. It doesn't have anything to do with the "corrupted" header of Welcome Email Page.

    It doesn't bother me, as long as it doesn't affect anything else.

    So, for now, I give up of finding the cause.

 

 

Similar Threads

  1. Inserting message stack error in confirmation email
    By rjspomer in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jan 2011, 08:46 PM
  2. Error in welcome email
    By srwebguy in forum Basic Configuration
    Replies: 5
    Last Post: 20 Aug 2010, 06:59 PM
  3. Welcome Email Error
    By Aderra in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Oct 2009, 07:27 PM
  4. "header" Message Stack Error in welcome email tool
    By koolos.com in forum General Questions
    Replies: 0
    Last Post: 8 Jan 2008, 03:24 AM
  5. Email Welcome goes through but creates error
    By frankiepol in forum General Questions
    Replies: 1
    Last Post: 4 Nov 2007, 08:53 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