Script Error In A Red Rectangle

Hello,

I have latest CS-Cart, VIVASHOP Theme, and when I navigate on the website and hit "Back" button on the browser, sometime I get a white page with the message: Script Error like in the attach.

Any help?

Thanks!

Website is: http://www.anemonacom.ro

Clipboard01.jpg

This error comes in cs-cart when their is error related to JavaScript.

but it is showing in your site it could be mean that you have enabled error mode.

I notice that is present more on the Firefox browser, on Chrome I did not manage to make it.

I have in config:

// Log everything, but do not display
error_reporting(E_ALL);
ini_set('display_errors', 0);
Is it not all right?

I think I manage to disable the reporting by commenting the lines:

//define('DEVELOPMENT', true);
// Enable DEV mode if Product status is not empty (like Beta1, dev, etc.)
//if (PRODUCT_STATUS != '' && !defined('DEVELOPMENT')) {
// ini_set('display_errors', 'on');
// ini_set('display_startup_errors', true);
//
// define('DEVELOPMENT', true);
//}
Is ok?

Yes, development mode should not be enabled on the live store

i'm making the same mistake. i share the console error below. I am using the latest version cs-cart.

at HTMLIFrameElement.e.onload (floatbutton_e9eb3d0b7d18705ec338bd725bbd654a_.js:1)
at HTMLDivElement. (jquery-3.5.1.min.js?ver=1632484226:2)
at Pe (jquery-3.5.1.min.js?ver=1632484226:2)
at s.fn.init.before (jquery-3.5.1.min.js?ver=1632484226:2)
at s.fn.init.$.fn. [as before] (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:246)
at s.fn.init.S.fn. [as insertBefore] (jquery-3.5.1.min.js?ver=1632484226:2)
at k..._moveToTop (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at k...k.isFunction.a. [as _moveToTop] (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at k...mousedown (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at HTMLDivElement.i (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)

i'm making the same mistake. i share the console error below. I am using the latest version cs-cart.

at HTMLIFrameElement.e.onload (floatbutton_e9eb3d0b7d18705ec338bd725bbd654a_.js:1)
at HTMLDivElement. (jquery-3.5.1.min.js?ver=1632484226:2)
at Pe (jquery-3.5.1.min.js?ver=1632484226:2)
at s.fn.init.before (jquery-3.5.1.min.js?ver=1632484226:2)
at s.fn.init.$.fn. [as before] (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:246)
at s.fn.init.S.fn. [as insertBefore] (jquery-3.5.1.min.js?ver=1632484226:2)
at k..._moveToTop (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at k...k.isFunction.a. [as _moveToTop] (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at k...mousedown (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)
at HTMLDivElement.i (scripts-b31ab8f022acc006fadc89e5031b1133.js?1632484226:1)

{if "DEVELOPMENT"|defined && $smarty.const.DEVELOPMENT == true}
{/if}