If you see blank pages or CS-Cart simply works strange, there are several things you need to check.
If you see blank pages when trying to open the storefront or the Administration panel, it might be because MySQLi extension is not installed on your server. Here’s a quick way to fix the problem:
Go to the root directory of the CS-Cart installation.
Open the config.local.php file.
Find the following line:
$config['database_backend'] = 'mysqli';
Replace it with this line:
$config['database_backend'] = 'pdo';
Save the file and see if that solves the problem.
Another possible reason for the strange behaviour of CS-Cart is that the initial amount of memory allocated to CS-Cart is not enough. To resolve the issue, follow the instructions below:
// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
// 32bit PHP
@ini_set('memory_limit', '64M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
// 64bit PHP
@ini_set('memory_limit', '256M');
}
// 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', '512M');
}
Another possible reason for the issues is the enabled Safe mode setting in your PHP configuration.
All features of CS-Cart work properly only if the safe mode is off. If the safe mode is, the most important PHP functions do not work.
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.