Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Error HTML email displays - $EMAIL_MESSAGE_HTML after Admin Alert: New admin user add

    Stock Zen Cart 1.55f, php 7.1

    Admin -> Configuration -> E-Mail Options
    Select Enable HTML Emails? is set to true
    Select Email Admin Format? is set to HTML

    Admin emails sent as HTML have no problem sending/tracking etc.

    However, when I get the notification from admin it displays the following in the body of the email:

    Admin Alert: New admin user added $EMAIL_MESSAGE_HTML


    Copyright (c) 2018 etc...

    line 175 of includes/functions/admin_access.php
    PHP Code:
    zen_record_admin_activity(sprintf(TEXT_EMAIL_MESSAGE_ADMIN_USER_ADDED$newname$admname), 'warning');
        
    zen_mail(STORE_OWNER_EMAIL_ADDRESSSTORE_OWNER_EMAIL_ADDRESSTEXT_EMAIL_SUBJECT_ADMIN_USER_ADDEDsprintf(TEXT_EMAIL_MESSAGE_ADMIN_USER_ADDED$newname$admname), STORE_NAMEEMAIL_FROM, array(), 
    Shows it is not printing the sprintf line found here:
    admin/includes/languages/english/email_extras.php
    PHP Code:
    define('TEXT_EMAIL_MESSAGE_ADMIN_USER_ADDED''Administrative  alert: A new admin user (%s) has been ADDED to your store by %s.' .  "\n\n" 'If you or an authorized administrator did not initiate this  change, it is advised that you verify your site security immediately.'); 
    I can not find a solution to this problem and it's a brand new cart. I've also compared the files to originals from the 1.55f zip - they match the stock files.

    Does anyone have a solution?

    Thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Error HTML email displays - $EMAIL_MESSAGE_HTML after Admin Alert: New admin user

    This is a bug in Zen Cart 1.5.5. It has been fixed in 1.5.6. You can see the fixed copy of the file here:
    https://github.com/zencart/zencart/b...min_access.php
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Error HTML email displays - $EMAIL_MESSAGE_HTML after Admin Alert: New admin user

    Thanks! Got it and it corrects the problem.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 16 May 2020, 07:10 PM
  2. Admin Page Alert after Admin Dir name change
    By shocker in forum Basic Configuration
    Replies: 3
    Last Post: 28 Oct 2011, 05:36 AM
  3. in_array error displays after add customers from admin mod added
    By ellentracymac2 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Jan 2009, 10:28 PM
  4. Admin ID and email displays in Admin header
    By salnick in forum General Questions
    Replies: 7
    Last Post: 16 Oct 2007, 06:09 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