= Some CS-Cart pages are blank or a functionality does not work =
== The PHP version problem: ==
# Check the PHP version installed on the server:
## Log in your administrator panel and click on the PHP information link at the bottom.
## The PHP version is displayed in the top part of the page.
# If the version is 5.0.5( or 5.0.4), unfortunately it contains a few bugs and CS-Cart shopping cart software cannot work with it correctly.
#:<pre>For example: PHP 5.0.5 has the following serious bug: http://bugs.php.net/bug.php?id=31478</pre>
# Contact your hosting administrator and ask him to update PHP to version 5.1 or install PHP 4.X special for your account.
== The zlib.output_compression PHP setting problem: ==
This setting conflicts with the ob_gzhandler function (CS-Cart uses it to compress web pages and increase the page loading speed).
# Open the fn_common.php file located in the core directory of your CS-Cart installation.
# Find the following part of code there:
#:<source lang="php">@ob_start('ob_gzhandler');</source>
# Comment it in the following way:
#:<source lang="php">// @ob_start('ob_gzhandler');</source>
# Save the file.
== The size of the memory is not enough on the server: ==
# Open the config.php file located in the root directory of the CS-Cart installation.
# Find the following part of the code there:
#:<source lang="php">@ini_set('memory_limit', '12M');</source>
# Replace it with this one:
#:<source lang="php">@ini_set('memory_limit', '64M');</source>
# Save the file.
== The enabled Safe mode setting in your PHP configuration ==
CS-Cart (all its features) works properly only if the safe mode is off. It is caused by that almost every complex PHP script will not work if the safe mode is on. Here is the list of commands that do not work if safe mode is enabled:
http://php.net/manual/en/features.safe-mode.functions.php
= <nowiki>Getting the '403 Forbidden' or 'Not Acceptable' errors after submitting forms that contain curl, perl, set, file, etc.</nowiki> =
Most probably your webserver has '''mod_security''' enabled. The '''mod_security''' feature scans all incoming posts for forbidden words or phrases that might indicate someone is trying to hack the system, and if any of them exist then Apache returns the '''403 Forbidden''' error. Common phrases that tend to trigger mod_security include '''curl''', '''wget''', '''set''', '''file(''', and '''system(''', although there are many others.
== To disable 'mod_security' for your website: ==
# Open the '''.htaccess''' file located in the root directory of your CS-Cart installation.
# Add the following part of code there:
#:<code><IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule></code>
# Save the file.
# It does not help on some server, in this case contact your server administrator.
= Secure connection is failed =
If the following warning is displayed when enabling secure connection on the '''General''' page in the administrator panel:
:* '''Warning''': The secure connection check has failed. Check HTTPS settings in '''config.php''' file and make sure that SSL certificate is installed on your server.
# Check whether SSL certificate is installed on the server. I.e. check whether the following HTML page is accessible through HTTPS as well as it is through HTTP:
#:[http://your_store.com/directory/store_closed.html http://your_store.com/directory/store_closed.html]
#:and
#:[https://your_store.com/directory/store_closed.html https://your_store.com/directory/store_closed.html]
If when using the URLs mentioned above the opened pages have the same content it means that SSL certificate is installed on the server.
# Check whether the host and directory where cs-cart is installed on the secure server are set up in the '''config.php''' file located in the root CS-Cart directory. To check it refer to [http://kb.cs-cart.com/ssl-installation link (point #2].
# Check if there is proxy on your server. If it is, please follow the instructions in item #2 in [http://kb.cs-cart.com/curl-problem this article].
# If everything is set up properly but the warning is displayed, most probably the problem is caused by specific way of determining secure connection on your server.
## Compare PHP configuration of your store and its copy in the secure directory:
### Log in your administrator panel and click on the '''PHP information''' link at the bottom. The following page will be open: [http://www.your_domain.com/admin.php?target=tools&mode=phpinfo http://www.your_domain.com/admin.php?target=tools&mode=phpinfo], where your_domain.com is the address of your store.
### Open the [https://www.your_domain.com/admin.php?target=tools&mode=phpinfo https://www.your_domain.com/admin.php?target=tools&mode=phpinfo] (note https instead of http is used in this link).
### Compare the opened pages.
###:'''For example''': The store has the '''_SERVER["SERVER_PORT"]''' setting with the '''80''' value and its copy in the secure directory has the same setting with the '''443''' value.
### Add one more condition to the '''https_detect.php''' file located in the '''core''' directory.
###:'''For example''':
####Add the following part of code to the file:
####:
<pre>} elseif ($_SERVER['SERVER_PORT']=='443') {
define('HTTPS', true);</pre>
####:below this one:
####:
<pre>} elseif (isset($_SERVER['HTTP_X_FORWARDED_SERVER']) && ($_SERVER['HTTP_X_FORWARDED_SERVER']=='secure')) {
define('HTTPS', true);</pre>
####Save the file.
####Try to enable the secure connection options.
<!-- Keep this below your edit -->
[[Category:General]]
<!-- -->