
Originally Posted by
DivaVocals
Ask the person installing this for you to post the contents of the error log that Zen Cart generates whenever you get a blank or erroneous page. (it's in the "cache" folder of your store..)
.
I believe in *learn by doing*, and seeing as the *other person* is not available till late tomorrow I will try this myself. :)
I have found the Cache and the logs. There were to many and so using logic and common sense (which could have been nonsense. lol ) I deleted the reports first. Then I went into my admin and played around doing the usual things (kept checking error log and no entry).
I then went to edit an invoice, made some changes and clicked on update, and as usual I got kick out of admin and got an error page. I tried to do this in English and also in my default language (german) and neither worked.
The Cache had 5 new reports, and they all contained the same information...... here a copy .
PHP Code:
PHP Warning: require(includes/languages/2.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/www/webXXX/html/webshop/my_admin_folder/includes/init_includes/init_languages.php on line 35
PHP Warning: require(includes/languages/2.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/www/webXXX/html/webshop/my_admin_folder/includes/init_includes/init_languages.php on line 35
PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/2.php' (include_path='/usr/local/php/lib/php:.') in /home/www/webXXX/html/webshop/my_admin_folder/includes/init_includes/init_languages.php on line 35
here also a copy of the init_languages.php
PHP Code:
<?php
/**
* initialise language handling
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
*
* @package initSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @todo ICW(SECURITY) is it worth having a sanitizer for $_GET['language'] ?
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: init_languages.php 2753 2005-12-31 19:17:17Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (!isset($_SESSION['language']) || isset($_GET['language'])) {
$lng = new language();
if (isset($_GET['language']) && zen_not_null($_GET['language'])) {
$lng->set_language($_GET['language']);
} else {
if (LANGUAGE_DEFAULT_SELECTOR=='Browser') {
$lng->get_browser_language();
} else {
$lng->set_language(DEFAULT_LANGUAGE);
}
}
$_SESSION['language'] = (zen_not_null($lng->language['directory']) ? $lng->language['directory'] : 'english');
$_SESSION['languages_id'] = (zen_not_null($lng->language['id']) ? $lng->language['id'] : 1);
$_SESSION['languages_code'] = (zen_not_null($lng->language['code']) ? $lng->language['code'] : 'en');
}
?>
Please don't hit me if this is all the wrong info and i am wasting your time
Just let me know, delete it, and I will talk to the *other person* tomorrow :) :)
Bookmarks