[size=4][font=tahoma,geneva,sans-serif]Hello, CS-Cart users and developers! I really glad to be a user of this unbelievable software! I am setting up the store at the moment and get to one problem that I hope you will help me to fix! [/font][/size]
[size=4][font=tahoma,geneva,sans-serif]I am trying to upload new banners instead of the default ones. I took the default banner and redone it in photoshop the way I want, but the dimensions and file format is still the same. I am creating new banner, put all the information in the fields and choose the file from my computer. When I press “Create” or “Create and close” it redirects me to the page “Service Unavailable Sorry, the service is temporary unavailable.” That's it! If I am trying to change the banners I have by default - same thing! If I am coming back to Marketing - Banners, it shows newly created banners, that I just tried to create, but no banner image inside and no way to upload it. I hope somebody can help me out with that problem. [/font][/size]
[size=4][font=tahoma,geneva,sans-serif]Btw CS-Cart Version is 4.2.4, and I checked my website error log, it shows:[/font][/size]
[quote][Wed Jan 21 09:14:56 2015] [warn] [client ip-address] mod_fcgid: stderr: PHP Notice: Constant AREA already defined in /var/www/vhosts/domain.com/httpdocs/app/addons/redesk_connection/controllers/frontend/init.post.php on line 5, referer: https://domain.com/a…=banners.manage[/quote]
I changed domain name to domain.com, that shows it correctly in the log.
[size=4][font=tahoma,geneva,sans-serif][color=#000000]Depend to that warning I checked init.post.php:[/color][/font][/size]
$result = array ('result' => 'no');
$api_key = Registry::get('settings.redesk_connection.general.api_key');
if (!$api_key || $api_key != $_REQUEST['api_key'])
if ($_REQUEST['re_action'] == 'login')
$user_data = db_get_row("SELECT * FROM ?:users WHERE email = ?s", $_REQUEST['email']);
$salt = isset($user_data['salt']) ? $user_data['salt'] : '';
$salt_password = fn_generate_salted_password($_REQUEST['password'], $salt);
if ($salt_password == $user_data['password'])
$result = array (
'result' => 'ok',
'name' => $user_data['lastname'] . ' ' . $user_data['firstname']
Line 5 is in bold. I don't think that is the problem, but who knows.
Btw, that's not the whole code of init.post.php, but I can give the whole one if required.
Any help is appreciated!