Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default what does this mean? Fatal error

    I checked my debug file and I'm wondering if this is why I can't update my products and have the changes stick.
    What do I need to do to fix this?

    [07-Feb-2011 18:26:27] PHP Warning: require(/cust-web/d/m/user/sites/www.lovetovape.com.au/html/includes/languages/english/meta_tags.php) [<a href='function.require'>function.require</a>]: failed to open stream: Permission denied in /cust-web/d/m/user/sites/www.lovetovape.com.au/html/my_secret_admin/includes/languages/english.php on line 54
    [07-Feb-2011 18:26:27] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/cust-web/d/m/User/sites/www.lovetovape.com.au/html/includes/languages/english/meta_tags.php' (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/My_secret_admin/includes/languages/english.php on line 54
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: what does this mean? Fatal error

    From my my_secret_admin/includes/languages/english php file
    line 54 is in red

    // include template specific meta tags defines
    if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
    $template_dir_select = $template_dir . '/';
    } else {
    $template_dir_select = '';
    }
    require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

    From my /includes/languages/english/meta_tags.php file

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2008 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: meta_tags.php 10330 2008-10-10 20:14:32Z drbyte $
    */

    // page title
    define('TITLE', 'Love to Vape!');

    // Site Tagline
    define('SITE_TAGLINE', 'C');

    // Custom Keywords
    define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');

    // Home Page Only:
    define('HOME_PAGE_META_DESCRIPTION', '');
    define('HOME_PAGE_META_KEYWORDS', '');

    // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
    define('HOME_PAGE_TITLE', ''); // usually best left blank


    // EZ-Pages meta-tags. Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
    // If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
    // (ie: the Title tag is best not set, so that site-wide defaults can be used.)
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_EZPAGE_#','');
    define('META_TAG_KEYWORDS_EZPAGE_#','');
    define('META_TAG_TITLE_EZPAGE_#', '');

    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
    define('META_TAG_DESCRIPTION_page_name','');
    define('META_TAG_KEYWORDS_page_name','');
    define('META_TAG_TITLE_page_name', '');

    // Review Page can have a lead in:
    define('META_TAGS_REVIEW', 'Reviews: ');

    // separators for meta tag definitions
    // Define Primary Section Output
    define('PRIMARY_SECTION', ' : ');

    // Define Secondary Section Output
    define('SECONDARY_SECTION', ' - ');

    // Define Tertiary Section Output
    define('TERTIARY_SECTION', ', ');

    // Define divider ... usually just a space or a comma plus a space
    define('METATAGS_DIVIDER', ' ');

    // Define which pages to tell robots/spiders not to index
    // This is generally used for account-management pages or typical SSL pages, and usually doesn't need to be touched.
    define('ROBOTS_PAGES_TO_SKIP','login,logoff,create_account,account,account_edit, account_history,account_history_info,account_newsletters,account_notifications,a ccount_password,address_book,advanced_search,advanced_search_result,checkout_suc cess,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,c ookie_usage,create_account_success,contact_us,download,download_timeout,customer s_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe,inf o_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_che ck');


    // favicon setting
    // There is usually NO need to enable this unless you need to specify a path and/or a different filename
    // define('FAVICON','favicon.ico');

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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: what does this mean? Fatal error

    Quote Originally Posted by maxy007 View Post
    [07-Feb-2011 18:26:27] PHP Warning: require(/cust-web/d/m/user/sites/www.lovetovape.com.au/html/includes/languages/english/meta_tags.php) [function.require]: failed to open stream: Permission denied in ...
    The message means what it says: "Permission denied" when trying to open the file specified.
    .

    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.

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

    Default Re: what does this mean? Fatal error

    Thanks Drbyte.
    Should the permissions for the metatags file be 777?
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  5. #5
    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!!!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: what does this mean? Fatal error

    Quote Originally Posted by maxy007 View Post
    Thanks Drbyte.
    Should the permissions for the metatags file be 777?
    Not usually. permissions on *files* would typically be 644.
    Ref: https://www.zen-cart.com/tutorials/index.php?article=9
    https://www.zen-cart.com/tutorials/i...hp?article=148
    .

    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
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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.

  8. #8
    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!!!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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.

  10. #10
    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!!!

 

 
Page 1 of 2 12 LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR