View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003375 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2011-11-17 12:40 | 2012-12-10 14:38 |
Reporter | Holger Kohnen | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | 64bit | OS | Ubuntu/Linux | OS Version | 11.04 |
Product Version | 4.5.3 revision 39087 | ||||
Fixed in Version | 4.6.0_beta3 | ||||
Summary | 0003375: Javascript errors caused by ajax calls are not visible | ||||
Description | oxajax.js loads content via ajax, and if the content contains js-errors they are catched and not displayed. Makes debugging and templating development very hard. | ||||
Steps To Reproduce | Add: [{oxscript add="missing_function()"}] to: tpl/page/details/ajax/productmain.tpl Then goto a details-page with variants and select an variant -> no price update and you can't put the variant into the basket. Another way to reproduce is just to remove the cloudzoom.js from the inc/productmain.tpl | ||||
Additional Information | i have attached a patch | ||||
Tags | No tags attached. | ||||
Attached Files | oxajax-show-eval-errors.patch.txt (868 bytes)
Index: oxajax.js =================================================================== --- oxajax.js (Revision 281) +++ oxajax.js (Arbeitskopie) @@ -203,12 +203,16 @@ try { eval(this.innerHTML); } catch (e) { - // console.error(e); + if (typeof console != 'undefined' && typeof console.error != 'undefined') { + console.error(e); + } } $(this).remove(); }); - } catch (e) { - // console.error(e); + } catch (e) { + if (typeof console != 'undefined' && typeof console.error != 'undefined') { + console.error(e); + } } } }; | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||