Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Help Please!!!.....Warning Message

    Hi,

    I've been developing a site. I've moved it from a folder I was using and uploaded it to the server but got this message...

    Warning: main(includes/templates/template_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/ownapiec/public_html/index.php on line 43

    Warning: main(includes/templates/template_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/ownapiec/public_html/index.php on line 43

    Warning: main(includes/templates/template_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/ownapiec/public_html/index.php on line 43

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/common/html_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ownapiec/public_html/index.php on line 43


    Does anyone know how I can fix this please? Apart from this I think I am ready to go and would then appreciate your views.

    Thanks and here's hoping..

    Alan.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Help Please!!!.....Warning Message

    Did you change the paths in the configure.php files to point to your server?

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    As stevesh said, check your admin/includes/configure.php and includes/configure.php and make certain the paths are correct.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    Clarification of what we're talking about.

    In includes/configure.php, look for
    Code:
    // 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', '/store/');
      define('DIR_WS_HTTPS_CATALOG', '/store/');
    and change it to
    Code:
    // 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', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    At the bottom of the same file, look for
    Code:
    // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/onhodnet/public_html/mydomain.com/store/cache');
    and change it to
    Code:
    // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/onhodnet/public_html/mydomain.com/store/cache');
    In admin/includes/configure.php, look for

    Code:
    // 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_ADMIN', '/store/admin/');
      define('DIR_WS_CATALOG', '/store/');
      define('DIR_WS_HTTPS_ADMIN', '/store/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/store/');
    and change it to
    Code:
    // 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_ADMIN', '/admin/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', '/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    Next change
    Code:
    // * 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_ADMIN', '/home/onhodnet/public_html/mydomain.com/store/admin/');
      define('DIR_FS_CATALOG', '/home/onhodnet/public_html/mydomain.com/store/');
    to
    Code:
    // * 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_ADMIN', '/home/onhodnet/public_html/mydomain.com/admin/');
      define('DIR_FS_CATALOG', '/home/onhodnet/public_html/mydomain.com/');
    Finally, at the bottom of the file change

    Code:
      // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/onhodnet/public_html/mydomain.com/store/cache');
    to


    Code:
      // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/onhodnet/public_html/mydomain.com/cache');
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    Hi Afo,

    I think I've made the changes correctly but still get the same error.

    Your suggestion is as follows:

    Code:
    // 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', 'none');
    define('DIR_FS_SQL_CACHE', '/home/onhodnet/public_html/mydomain.com/cache');##############################___

    The point I'm confused on is the line above. My amended line reads:

    ('DIR_FS_SQL_CACHE', '/home/ownapiec/public_html/ownapieceofamerica.co.uk/cache');

    Is this correct? Sorry for being soooo stupid!

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

    Default Re: Help Please!!!.....Warning Message

    Quote Originally Posted by atjhza View Post
    My amended line reads:

    define('DIR_FS_SQL_CACHE', '/home/ownapiec/public_html/ownapieceofamerica.co.uk/cache');

    Is this correct?
    I think I'd do it this way:
    define('DIR_FS_SQL_CACHE', '/home/ownapiec/public_html/cache');

    (it would normally match your DIR_FS_CATALOG with /cache added to the end)
    .

    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.

  7. #7
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    Hi Afo,

    I'm having no joy!! and I still can't figure out where I've gone wrong. Would you mind if I send you both files and you have a look for me or is that really being cheeky?!

    Thanks,

    Alan.

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    Quote Originally Posted by DrByte View Post
    I think I'd do it this way:
    define('DIR_FS_SQL_CACHE', '/home/ownapiec/public_html/cache');

    (it would normally match your DIR_FS_CATALOG with /cache added to the end)
    Of course, DrByte is correct. My setup is a bit different than most, so I have some oddities in my ZC files.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  9. #9
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Help Please!!!.....Warning Message

    Quote Originally Posted by atjhza View Post
    Hi Afo,

    I'm having no joy!! and I still can't figure out where I've gone wrong. Would you mind if I send you both files and you have a look for me or is that really being cheeky?!

    Thanks,

    Alan.
    I can probably take a peek. Click on my avatar for contact info. Edit out any password info before you send it to me or just send me the bits giving you the problems.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. Replies: 2
    Last Post: 23 Jul 2012, 12:00 AM
  2. Warning message on checkout - please help
    By lightup in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 9 Sep 2011, 05:12 AM
  3. Warning Message help needed please!?
    By jacky in forum Basic Configuration
    Replies: 8
    Last Post: 25 Jan 2011, 11:32 PM
  4. Warning Message, please help me
    By naturesi in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 4 Sep 2007, 10:06 PM
  5. Warning Message help needed please!?
    By davidandrews in forum Basic Configuration
    Replies: 1
    Last Post: 13 Aug 2006, 10:46 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