Jump to content

 

e236

Member Since 06 Jan 2015
Offline Last Active Feb 03 2015 08:08 PM
-----

Topics I've Started

Default Responsive Theme Install Less Error

31 January 2015 - 11:27 PM

Trying to install the default responsive theme that comes with CS Cart v4.2.4 results in a broken homepage due to the error below with the /public_html/design/themes/responsive/css/styles.less style sheet. Clearing the cache via the admin panel and FTP doesn't fix it. Adding a color to the line results in additional error after error found with any line that defines lighten or darken for color or background. This seems to be a common issue but couldn't find the fix using a google or forums search so any help would be really appreciated.


LESS expected color value: failed at `color: darken(@links, 10%);` line: 52
 
    .transition(all 150ms);
}
a:hover {
    color: darken(@links, 10%);
}
ul {
    padding: 0;
    margin: 0;

Blank Index/admin Pages After Install

06 January 2015 - 04:12 PM

Hi All,

I installed the latest 4.2.4 version of CS Cart but the domain/index.php and domain/admin.php return blank white pages. The install seemed to go ok until it completed and tried to redirect to http://<my domain>/admin.php?welcome= and then nothing.

For the install, I set all the file and folder permissions for /design, /images, /var and /install to 755 (the host doesn't allow 777 for the folders and automatically switches them back to 755) and the config.local.php to 666 as recommended but no luck with two attempts. After the install, I left the folders at 755 and set all the files back to 644 to resecure the site which didn't change the result. The current PHP version is 5.3.

I tried some fixes from what little info I could find in the forums and docs but nothing helped. I work in IT support and I've installed a few other carts before so I know my way around (FTP'ing, creating databases/users, CMS backend configuring, editing stylesheets, simple coding, etc.) but I'm not a pro web dev so I could use some help with this.

Below is my config.local.php code if that helps. I've replaced the actual domain, database name/user/pass and key code with <my info> for public posting. The only production changes made were setting the @ini_set memory limit to 128M and default permissions to 644/755. I'll change the admin.php file name after I know I can get into the backend.

<?php
/***************************************************************************
*																		  *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev	*
*																		  *
* 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.			*
****************************************************************************/

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

/*
* PHP options
*/

// Log everything, but do not display
error_reporting(E_ALL);
ini_set('display_errors', 0);

// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
  // 32bit PHP
  @ini_set('memory_limit', '128M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
  // 64bit PHP
  @ini_set('memory_limit', '256M');
}

if (!defined('CONSOLE')) {
	// Set maximum time limit for script execution.
	@set_time_limit(3600);
}

/*
* Database connection options
*/
$config['db_host'] = 'localhost';
$config['db_name'] = '<my info>';
$config['db_user'] = '<my info>';
$config['db_password'] = '<my info>';

$config['database_backend'] = 'mysqli';

// Database tables prefix
$config['table_prefix'] = 'cscart_';

/*
* Script location options
*
*	Example:
*	Your url is http://www.yourcompany.com/store/cart
*	$config['http_host'] = 'www.yourcompany.com';
*	$config['http_path'] = '/store/cart';
*
*	Your secure url is https://secure.yourcompany.com/secure_dir/cart
*	$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'] = '<my info>';
$config['http_path'] = '';

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

/*
* Misc options
*/
// Names of index files for the frontend and backend
$config['customer_index'] = 'index.php';
$config['admin_index']	= 'admin.php';


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

// Tweaks
$config['tweaks'] = array (
	'anti_csrf' => false, // protect forms from CSRF attacks
	'disable_block_cache' => false, // used to disable block cache
	'disable_localizations' => true, // Disable Localizations functionality
	'disable_dhtml' => false, // Disable Ajax-based pagination and Ajax-based "Add to cart" button
	'gzip_css_js' => false, // gzip compiled css/js files
	'dev_js' => false, // set to true to disable js files compilation
	'redirect_to_cart' => false, // Redirect customer to the cart contents page. Used with the "disable_dhtml" setting.
	'api_https_only' => false, // Allows the use the API functionality only by the HTTPS protocol
	'api_allow_customer' => false, // Allow open API for unauthorized customers
	'lazy_thumbnails' => false, // generate image thumbnails on the fly
);

// Key for sensitive data encryption
$config['crypt_key'] = '<my info>';

// Cache backend
// Available backends: file, sqlite, database, redis
// To use sqlite cache the "sqlite3" PHP module should be installed
$config['cache_backend'] = 'file';
$config['cache_redis_server'] = 'localhost';
$config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size

// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'database';
$config['session_redis_server'] = 'localhost';

// CDN server backend
$config['cdn_backend'] = 'cloudfront';

// Storage options
$config['storage'] = array(
	'images' => array(
		'prefix' => 'images',
		'dir' => $config['dir']['root'],
		'cdn' => true
	),
	'downloads' => array(
		'prefix' => 'downloads',
		'secured' => true,
		'dir' => $config['dir']['var']
	),
	'statics' => array(
		'dir' => & $config['dir']['cache_misc'],
		'prefix' => 'statics',
		'cdn' => true
	),
	'custom_files' => array(
		'dir' => & $config['dir']['var'],
		'prefix' => 'custom_files'
	)
);

// Default permissions for newly created files and directories
define('DEFAULT_FILE_PERMISSIONS', 0644);
define('DEFAULT_DIR_PERMISSIONS', 0755);

// Maximum number of files, stored in directory. You may change this parameter straight after a store was installed. And you must not change it when the store has been populated with products already.
define('MAX_FILES_IN_DIR', 1000);

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