Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default DIR_WS_TEMPLATES error

    v1.3.9

    Up until yesterday I had a fully functional and working Zec Cart. I had to update the db password in my configure.php files. Seemed to give me no issues, I can log into the admin area and everything works fine. Until I go to my Online Catalog and I get the following error message in my server log....

    PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/mystore/index.php on line 43
    PHP Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/mysite/public_html/mystore/index.php on line 43

    Both index.php and html_header.php are in there proper dir's and have correct permissions. I have viewed both files and can find no errors. Any assistance would be appreciated.

    Thank You in advance!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: DIR_WS_TEMPLATES error

    What program did you use to edit the file?

    And the error is showing a missing (or corrupted) html_header.php file.

    Do you have any mods that would have over-written html_header.php ?
    20 years a Zencart User

  3. #3
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: DIR_WS_TEMPLATES error

    Quote Originally Posted by schoolboy View Post
    What program did you use to edit the file?

    And the error is showing a missing (or corrupted) html_header.php file.

    Do you have any mods that would have over-written html_header.php ?
    Gedit.

    No mods of any kind.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: DIR_WS_TEMPLATES error

    Try sending a fresh copy of the html_header.php file from your downloaded copy of zencart software, to the server. Make sure you put it in the right location.
    20 years a Zencart User

  5. #5
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: DIR_WS_TEMPLATES error

    Tried that with no positive change. Same error in logs. Ran both files (original and server copies) through diff and there were no discrepancies.

  6. #6
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: DIR_WS_TEMPLATES error

    Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'

    Should there be a "/" in DIR_WS_TEMPLATEStemplate_default to be DIR_WS_TEMPLATES/template_default?

    I checked my configure.php files and all paths have a trailing "/"

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: DIR_WS_TEMPLATES error

    'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'

    This indicates that the constant DIR_WS_TEMPLATES has not been defined. Look at your configure.php file(s) for any errors in this area.

  8. #8
    Join Date
    Dec 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: DIR_WS_TEMPLATES error

    Quote Originally Posted by gjh42 View Post
    'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'

    This indicates that the constant DIR_WS_TEMPLATES has not been defined. Look at your configure.php file(s) for any errors in this area.
    Both of my template lines in configure.php

    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');

    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: DIR_WS_TEMPLATES error

    Those look like lines from your admin configure.php. The missing define should be in the store /includes/configure.php.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Feb 2012, 09:08 PM
  2. UPS XML Error: cURL: Error [77]: error setting certificate verify locations
    By ultraloveninja in forum Addon Shipping Modules
    Replies: 3
    Last Post: 30 Nov 2009, 03:55 AM
  3. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  4. Replies: 9
    Last Post: 30 Mar 2009, 06:50 AM
  5. Dir_ws_templates
    By triplemaya in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 2 Aug 2006, 06:51 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