View Issue Details

IDProjectCategoryView StatusLast Update
0003375OXID eShop (all versions)1. ----- eShop frontend -----public2012-12-10 14:38
ReporterHolger Kohnen Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform64bitOSUbuntu/LinuxOS Version11.04
Product Version4.5.3 revision 39087 
Fixed in Version4.6.0_beta3 
Summary0003375: Javascript errors caused by ajax calls are not visible
Descriptionoxajax.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 ReproduceAdd:
  [{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 Informationi have attached a patch
TagsNo 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);
+                }
             }
         }
     };
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

svetlana

2011-11-17 15:31

reporter   ~0005397

@developers please investigate it

mindaugas.rimgaila

2012-01-25 13:57

reporter   ~0005650

Added Ajax JS error reporting for FF console.