Admin Page wont load

After installing the cart and attempting to load the admin.php page all I get is a blank screen.



I have reinstalled 3 times and each time all I get is blank screen when I attempt to load the admin section.



Front end of the site works fine.



Any ideas?

What does your site error_log say? Normally it’s in the home directory of your site user in the ‘logs’ directory.

There is no such “log” file or directory for me to check.



Alsos, ther is no such file on another CS cart site that I have installed which works fine.

Check your config.local.php paths for errors or an additional / where there should be none.

the file admin.php is being loaded.



If I put an echo statement at top of file, I get the echo to display which proves admin.php is being accessed. Then I get the following display



“If the page does not redirect automatically in 10 seconds, please click on this link: Continue”



If I click continue a blank screen again



Ive even reinstalled for a 4th time but still no admin page!!



If it’s any help; I enter

[url]http://gdscot.co.uk/admin.php[/url] which then changes to:

[url]http://gdscot.co.uk/admin.php?dispatch=auth.login_form&return_url=admin.php[/url]

Post your config.local.php file. Just your paths.

Again, I would check your error_log. This is a log file generated by PHP, not by the cart. It is usually in the location I described above. If not, contact your hosting provider to find out the location. My bet is that you are getting a fatal php error of some sort. Hence the blank screen.

/***************************************************************************
* *
* Copyright (c) 2004 Simbirsk Technologies Ltd. All rights reserved. *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
* PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
****************************************************************************/


//
// $Id: config.local.php 9088 2010-03-15 10:40:51Z 2tl $
//

if ( !defined('AREA') ) { die('Access denied'); }

/*
* PHP options
*/

// Disable notices displaying
error_reporting(E_ALL ^ E_NOTICE);
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
error_reporting(error_reporting() & ~E_DEPRECATED);
}

// Set maximum memory limit
@ini_set('memory_limit', '48M');

// Set maximum time limit for script execution
@set_time_limit(3600);

/*
* Database connection options
*/
$config['db_host'] = '';
$config['db_name'] = '';
$config['db_user'] = '';
$config['db_password'] = '';
$config['db_type'] = 'mysql';

/*
* Script location options
*
* Example:
* Your url is [url]http://www.yourcompany.com/store/cart[/url]
* $config['http_host'] = 'www.yourcompany.com';
* $config['http_path'] = '/store/cart';
*
* Your secure url is [url]https://secure.yourcompany.com/secure_dir/cart[/url]
* $config['https_host'] = 'secure.yourcompany.com';
* $config['https_path'] = '/secure_dir/cart';
*
*/

// Host and directory where software is installed on no-secure server
$config['http_host'] = '';
$config['http_path'] = '';

// Host and directory where software is installed on secure server
$config['https_host'] = '';
$config['https_path'] = '';

/*
* Misc options
*/
// Names of index files for administrative and customer areas
$config['admin_index'] = 'admin.php';
$config['customer_index'] = 'index.php';

// DEMO mode
$config['demo_mode'] = false;

// Tweaks
$config['tweaks'] = array (
'js_compression' => false, // enables compession to reduce size of javascript files
'check_templates' => true, // disables templates checking to improve template engine speed
'inline_compilation' => true, // compiles nested templates in one file
'anti_csfr' => false, // protect forms from CSFR attacks (experimental)
'disable_ajax_preload' => false, // used to disable ajax preload for speed-up admin area
);

// Key for sensitive data encryption
$config['crypt_key'] = 'gdscot';

// Developer configuration file
if (file_exists(DIR_ROOT . '/local_conf.php')) {
include(DIR_ROOT . '/local_conf.php');
}

define('AUTH_CODE', '');

?>

I managed to find the log file. I can see ther are errors in the scripts but Ive no idea why they are generated.



Any ideas?







gdscot.co.uk [Thu Apr 22 22:20:43 2010] [error] [client 78.86.60.185] PHP Warning: parse_ini_file(/home/sites/gdscot.co.uk/public_html/skins/basic/manifest.ini) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/sites/gdscot.co.uk/public_html/core/fn.init.php on line 154

gdscot.co.uk [Thu Apr 22 22:20:44 2010] [error] [client 78.86.60.185] PHP Warning: parse_ini_file(/home/sites/gdscot.co.uk/public_html/skins/basic/manifest.ini) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/sites/gdscot.co.uk/public_html/core/fn.init.php on line 154

gdscot.co.uk [Thu Apr 22 22:20:44 2010] [error] [client 78.86.60.185] PHP Fatal error: Cannot use string offset as an array in /home/sites/gdscot.co.uk/public_html/var/compiled/admin/%%C3^C31^C313275D%%login_form.tpl.php on line 21

gdscot.co.uk [Thu Apr 22 22:20:45 2010] [error] [client 78.86.60.185] client denied by server configuration: /home/sites/gdscot.co.uk/public_html/skins/basic/admin/images/index.php, referer: [url]http://gdscot.co.uk/admin.php?dispatch=auth.login_form&return_url=admin.php[/url]

[quote name=‘jmccann’]I managed to find the log file. I can see ther are errors in the scripts but Ive no idea why they are generated.



Any ideas?







gdscot.co.uk [Thu Apr 22 22:20:43 2010] [error] [client 78.86.60.185] PHP Warning: parse_ini_file(/home/sites/gdscot.co.uk/public_html/skins/basic/manifest.ini) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/sites/gdscot.co.uk/public_html/core/fn.init.php on line 154

gdscot.co.uk [Thu Apr 22 22:20:44 2010] [error] [client 78.86.60.185] PHP Warning: parse_ini_file(/home/sites/gdscot.co.uk/public_html/skins/basic/manifest.ini) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/sites/gdscot.co.uk/public_html/core/fn.init.php on line 154

gdscot.co.uk [Thu Apr 22 22:20:44 2010] [error] [client 78.86.60.185] PHP Fatal error: Cannot use string offset as an array in /home/sites/gdscot.co.uk/public_html/var/compiled/admin/%%C3^C31^C313275D%%login_form.tpl.php on line 21

gdscot.co.uk [Thu Apr 22 22:20:45 2010] [error] [client 78.86.60.185] client denied by server configuration: /home/sites/gdscot.co.uk/public_html/skins/basic/admin/images/index.php, referer: [URL]http://gdscot.co.uk/admin.php?dispatch=auth.login_form&return_url=admin.php[/URL][/quote]



you are missing /skins/basic/admin/

most likely that you’ve got incorrect file permissions set.

Not sure what you edited out of the config.local.php file you supplied but you have no database access defined, and no http_host.

// Host and directory where software is installed on no-secure server
$config['http_host'] = '[COLOR="Blue"]gdscot.co.uk[/COLOR]';
$config['http_path'] = '';

// Host and directory where software is installed on secure server
$config['https_host'] = '[COLOR="Blue"]gdscot.co.uk[/COLOR]';
$config['https_path'] = '';




If you are using www.gdscot.co.uk then add the www.



I am assuming you edited out the DB details.?

Hi,



I reinstalled again.



This time however, I chose the Basic Template and NOT another option.



It installed and admin now loads!!



Once admin is loaded I can now slecet another theme