Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: what does this mean? Fatal error

    Now there's another file in mydebug.
    What does this one mean?

    [07-Feb-2011 18:53:56] PHP Warning: include_once(includes/languages/english.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /cust-web/d/m/user/sites/www.lovetovape.com.au/html/includes/init_includes/init_templates.php on line 72

    [07-Feb-2011 18:53:56] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english.php' for inclusion (include_path='./:/cust-web/d/m/user/sites/www.lovetovape.com.au/include:/cust-web/d/m/user/sites/include:/usr/share/php') in /cust-web/d/m/user/sites/www.lovetovape.com.au/html/includes/init_includes/init_templates.php on line 72
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: what does this mean? Fatal error

    Quote Originally Posted by maxy007 View Post
    Now there's another file in mydebug.
    What does this one mean?

    [07-Feb-2011 18:53:56] PHP Warning: include_once(includes/languages/english.php) [function.include-once]: failed to open stream: No such file or directory in ...
    Again, exactly as it says.
    reference on reading the error messages: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: what does this mean? Fatal error

    Hi DrByte,
    Sorry to be a pain but I still don't get it?? The template I'm using is Surfshop.

    Here's the file.
    Line 72 is in red

    <?php
    /**
    * initialise template system variables
    * see {@link http://www.zen-cart.com/wiki/index.p...als#InitSystem wikitutorials} for more details.
    *
    * Determines current template name for current language, from database<br />
    * Then loads template-specific language file, followed by master/default language file<br />
    * ie: includes/languages/classic/english.php followed by includes/languages/english.php
    *
    * @package initSystem
    * @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
    * @version $Id: init_templates.php 3123 2006-03-06 23:36:46Z drbyte $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }

    /*
    * Determine the active template name
    */
    $template_dir = "";
    $sql = "select template_dir
    from " . TABLE_TEMPLATE_SELECT . "
    where template_language = 0";
    $template_query = $db->Execute($sql);
    $template_dir = $template_query->fields['template_dir'];

    $sql = "select template_dir
    from " . TABLE_TEMPLATE_SELECT . "
    where template_language = '" . $_SESSION['languages_id'] . "'";
    $template_query = $db->Execute($sql);
    if ($template_query->RecordCount() > 0) {
    $template_dir = $template_query->fields['template_dir'];
    }

    /**
    * The actual template directory to use
    */
    define('DIR_WS_TEMPLATE', DIR_WS_TEMPLATES . $template_dir . '/');
    /**
    * The actual template images directory to use
    */
    define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_TEMPLATE . 'images/');
    /**
    * The actual template icons directory to use
    */
    define('DIR_WS_TEMPLATE_ICONS', DIR_WS_TEMPLATE_IMAGES . 'icons/');

    /**
    * Load the appropriate Language files, based on the currently-selected template
    */

    if (file_exists(DIR_WS_LANGUAGES . $template_dir . '/' . $_SESSION['language'] . '.php')) {
    $template_dir_select = $template_dir . '/';
    /**
    * include the template language overrides
    */
    include_once(DIR_WS_LANGUAGES . $template_dir_select . $_SESSION['language'] . '.php');
    } else {
    $template_dir_select = '';
    // include_once(DIR_WS_LANGUAGES . $template_dir_select . $_SESSION['language'] . '.php');
    }
    /**
    * include the template language master (to catch all items not defined in the override file).
    * The intent here is to: load the override version to catch preferencial changes;
    * then load the original/master version to catch any defines that didn't get set into the override version during upgrades, etc.
    */
    // THE FOLLOWING MIGHT NEED TO BE DISABLED DUE TO THE EXISTENCE OF function() DECLARATIONS IN MASTER ENGLISH.PHP FILE
    // THE FOLLOWING MAY ALSO SEND NUMEROUS ERRORS IF YOU HAVE ERROR_REPORTING ENABLED, DUE TO REPETITION OF SEVERAL DEFINE STATEMENTS
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');


    /**
    * send the content charset "now" so that all content is impacted by it
    */
    header("Content-Type: text/html; charset=" . CHARSET);

    /**
    * include the extra language definitions
    */
    include(DIR_WS_MODULES . 'extra_definitions.php');
    ?>
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: what does this mean? Fatal error

    No, you're reading the error message backwards.

    Start at the beginning. The error tells you that it's trying to include/require a certain file. Then it tells you the file is not found. Then it tells you what line of what file *asked* for it to load the first file.

    The file at the end of the error message is where the problem *occurs*, but not *what* the problem is. The *first* filename is *what* the problem is. In your case, english.php is missing.
    .

    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.

  5. #5
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: what does this mean? Fatal error

    Are you saying I need to change this
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');
    to
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . 'english.php');

    Do you think this could be the problem of me being not able to add/update product descriptions

    Thanks for your help. I'm finding it difficult to wrap my head around this.

    Cheers,

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: what does this mean? Fatal error

    Quote Originally Posted by maxy007 View Post
    Are you saying I need to change this
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');
    to
    [COLOR=Red]include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . 'english.php');
    No. I'm saying that the error message you quoted is telling you that the include_once() line is LOOKING FOR the /includes/languages/english.php file on your server, but when it's going out to find it, it's not found.
    Nothing wrong with the software code. You just have a missing file, which you'll need to put back onto the server.
    Or, maybe it's still a permissions problem, and it can't find the file because permissions are set so low (ie: 000 or something bizarre) such that it can't even see the file, let alone try to open it.

    Quote Originally Posted by maxy007 View Post
    Do you think this could be the problem of me being not able to add/update product descriptions
    No idea.
    Usually if english.php is missing you'll see all kinds of TEXT_BLAHBLAH and ENTRY_SOMETHING_BLAH etc stuff on the screen.
    .

    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
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: what does this mean? Fatal error

    Quote Originally Posted by DrByte View Post
    No. I'm saying that the error message you quoted is telling you that the include_once() line is LOOKING FOR the /includes/languages/english.php file on your server, but when it's going out to find it, it's not found.
    Nothing wrong with the software code. You just have a missing file, which you'll need to put back onto the server.
    Or, maybe it's still a permissions problem, and it can't find the file because permissions are set so low (ie: 000 or something bizarre) such that it can't even see the file, let alone try to open it.

    That's strange because english.php is there and the permissions are 644.

    No idea.
    Usually if english.php is missing you'll see all kinds of TEXT_BLAHBLAH and ENTRY_SOMETHING_BLAH etc stuff on the screen.
    No I'm not getting that I just can't update my product descriptions. any text that has ; or . or : or ' etc after it does not stick
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

 

 

Similar Threads

  1. v151 sesskey error what does this mean
    By cshart in forum Basic Configuration
    Replies: 7
    Last Post: 12 Jun 2013, 02:43 AM
  2. wHAT DOES THIS ERROR CODE MEAN AND HOW WOULD I FIX THIS?
    By Snaggle in forum General Questions
    Replies: 2
    Last Post: 15 Jun 2011, 10:27 PM
  3. Error 12263 what does this mean?
    By penster in forum General Questions
    Replies: 2
    Last Post: 25 Jan 2008, 04:32 PM
  4. What does this error mean? DIR_WS_BLOCK
    By max44 in forum General Questions
    Replies: 7
    Last Post: 8 May 2007, 06:45 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