Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2005
    Posts
    124
    Plugin Contributions
    0

    Default Email header.jpg problem

    Just when I thought I had it all sussed. Something else pops up I cannot figure out.

    My /catalog/email/header.jpg is in the correct place and the chmod is 755 but...all I see in the welcome and such emails is a red x "logo" with no image. It used to work for me before the new 1.3.5 installation.

    any help greatly appreciated.

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

    Default Re: Email header.jpg problem

    What is the URL to your site?

    If you put that URL and the path to the image in your browser, what do you see?

    Perhaps you can post the raw html of your email message here...

    Perhaps you can post your includes/configure.php contents here w/o password
    .

    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
    Jul 2005
    Posts
    124
    Plugin Contributions
    0

    Default Re: Email header.jpg problem

    Quote Originally Posted by DrByte
    What is the URL to your site?

    If you put that URL and the path to the image in your browser, what do you see?

    Perhaps you can post the raw html of your email message here...

    Perhaps you can post your includes/configure.php contents here w/o password
    Dr. Byte: I ended up figuring out it was a problem with the .htaccess file I had in that folder. All is well now. ;)

  4. #4
    Join Date
    Jul 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Email header.jpg problem

    What is the URL to your site?

    If you put that URL and the path to the image in your browser, what do you see?

    Perhaps you can post the raw html of your email message here...

    Perhaps you can post your includes/configure.php contents here w/o password
    Dr Byte, I also have this problem, but I don't seem able to figure it out and I don't have a .htaccess file in that folder, so here are my answers to the above questions

    The permissions on the image are 644. If I put the image in my browser I get this:-
    You don't have permission to access /shop/email/header.jpg on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    I don't know how to post the raw html for the message

    Here is my configure.php:-

    <?php
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://www.thebirdsinthemeadow.com');
    define('HTTPS_SERVER', 'https://www.thebirdsinthemeadow.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/****/public_html/shop/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '***');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '*****');
    define('DB_SERVER_PASSWORD', '****');
    define('DB_DATABASE', '*****');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'database');
    define('DIR_FS_SQL_CACHE', '/home/****/public_html/shop/cache');

    ?>
    I blanked out a whole bunch of identifying stuff there, hopefully nothing you need :)

    I'm running version 1.3.7 without the recent patch and I'm not quite online with the shop yet. I'll try to find out how to post the html for the message, but that may take some time. Hope i've given you enough information to help me! And thank you very much, in advance :)

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

    Default Re: Email header.jpg problem

    What's in your .htaccess file at either of these locations, if any?
    - public_html/.htaccess
    - public_html/shop/.htaccess

    Have you enabled anything on your site to prevent image theft ? That could be blocking it too.
    .

    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
    Jul 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Email header.jpg problem

    Aha! Hello Dr Byte, thank you for getting back to me!

    Have you enabled anything on your site to prevent image theft ?
    Bingo! I had hotlink protection switched on in my CPanel! When I switched it off my logo came through on email. At first I was pretty clueless as to what to do next, but for anyone else who needs to know, this is how I resolved it.

    1/switch hotlinking protection off in your cpanel

    2/Google .htaccess, there are lots of pages explaining about preventing image theft with this file.

    3/I used this one:-htaccess hotlink protection which helped me write a decent .htaccess file that actually worked, and even explained clearly what it does.

    4/Try again with your freshly written .htaccess file. It might just solve your problem!

    Thanks again Dr Byte for pointing me the right way :)

 

 

Similar Threads

  1. Email header logo (header.jpg) not displaying
    By 1100101 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2010, 10:46 AM
  2. No email logo although header.jpg in folder.
    By chufty bill in forum General Questions
    Replies: 32
    Last Post: 22 Aug 2010, 10:04 PM
  3. Email Header.jpg
    By neparker in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 May 2009, 07:40 PM
  4. Email header.jpg problems
    By kellyshults in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Oct 2006, 04:21 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