Error Oops, Something Went Wrong (Error). Please Try Again.

Hi can you help please trying to add items to the block but keep getting the same error



on my old site and the new 4…2.4 i installed

please try to add:


define('DEVELOPMENT', true);


to “config.local.php” file of your CS-Cart



it should help to see more detailed info about error

if it doesn't help, issue might be caused by multiple reasons and our specialists will be glad to help you

[quote name='Damir (WSA-team)' timestamp='1427470362' post='209304']

please try to add:


define('DEVELOPMENT', true);


to “config.local.php” file of your CS-Cart



it should help to see more detailed info about error

if it doesn't help, issue might be caused by multiple reasons and our specialists will be glad to help you

[/quote]



Also please change



ini_set('display_errors', 0);




to



ini_set('display_errors', 1);




In the same file

just forgot this, please make sure that this line presents too:

error_reporting(E_ALL);



all 3 lines should guarantee error display

To prevent customer shock, strongly suggest you use the following as a local_conf.php file:

```php

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

define('my_debug_enabled', true); // change to false to disable
function my_debug_ip() {
$debug_ips = array('[YOUR IP ADDRESS HERE]');
return in_array($_SERVER['REMOTE_ADDR'], $debug_ips);
}
if( defined('my_debug_enabled') && my_debug_enabled && my_debug_ip() ) {
if(!defined('DEVELOPMENT')) define('DEVELOPMENT', true);
error_reporting(E_ALL);
ini_set('display_errors', true);
define('DEBUG_MODE', true);
}
?>

```

This will then only turn on DEVELOPMENT and DEBUG_MODE and adjust error_reporting() and display_errors for the IP addresses in the array within my_debug_ip(). This function can then be called to conditionally do diagnostics in other areas of code so that you will be the only one who sees them.