Forums / General Questions / what does this mean? Fatal error

what does this mean? Fatal error

Started by maxy007 on 7 Feb 2011, 9:27 AM · Views: 3,440

Results 1 to 13 of 13
7 Feb 2011, 9:27 AM
#1
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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!!!

7 Feb 2011, 9:34 AM
#2
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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,account_password,address_book,advanced_search,advanced_search_result,checkout_success,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,cookie_usage,create_account_success,contact_us,download,download_timeout,customers_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe,info_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_check'); // 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!!!

7 Feb 2011, 9:46 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: what does this mean? Fatal error

maxy007:

[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.

7 Feb 2011, 9:49 AM
#4
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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!!!

7 Feb 2011, 9:56 AM
#5
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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!!!

7 Feb 2011, 5:54 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: what does this mean? Fatal error

maxy007:

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/index.php?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 Feb 2011, 5:56 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: what does this mean? Fatal error

maxy007:

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.

7 Feb 2011, 7:32 PM
#8
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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.php/Developers_API_Tutorials#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!!!

7 Feb 2011, 8:29 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.

7 Feb 2011, 8:44 PM
#10
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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!!!

7 Feb 2011, 8:56 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: what does this mean? Fatal error

maxy007:

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.

maxy007:

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 Feb 2011, 9:01 PM
#12
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: what does this mean? Fatal error

DrByte:

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 :yuck:

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

8 Feb 2011, 12:09 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: what does this mean? Fatal error

Very odd. This is where I usually go at this point:
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

.
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.