1. jimmywiddle
  2. Bug Report
  3. Saturday, May 28 2016, 03:21 PM
Hi, Im getting js errors on easyprofile pages only (all other pages on my site work fine without errors).

On the view profile page i get 2 errors the following:

1) TypeError: jQuery(...).on is not a function
jQuery(window).on("resize", function(){
sm.js (line 185, col 1)

2) TypeError: jQuery(...).spasticNav is not a function
jQuery('#sm-mainnav .menu').spasticNav();
sm.js (line 3, col 2)

And on the edit profile page I get 1 error which is related to easyprofile, the following (this also makes the edit avatar button not work):

1) SyntaxError: missing } after function body
....html(imgSelectHtml); //imgSelect.php='/imgSelect/inc/imgSelect.php?name='+cont


Thanks in advance!
admin Accepted Answer
Admin
Hi,
please post me your site link to check this.
  1. more than a month ago
  2. Bug Report
  3. # 1
jimmywiddle Accepted Answer
Many thanks, I added it on the site details tab!
  1. more than a month ago
  2. Bug Report
  3. # 2
admin Accepted Answer
Admin
Hi,
Error on edit profile page
You have some plugin that try to compress HTML output, but this works badly. It only remove space and new lines but this create a problem with Javascript comments, for example see this javascript code:

alert('Test'); // Simple Alert
alert('Test 2');

You will show 2 alerts.

this come something like:

alert('Test'); // Simple Alertalert('Test 2');

second alert was ignored

Profile Page
Profile is on "secure" subdomain, in this site there are 2 differents jQuery instances:
- /templates/silk-media/scripts/jquery-1.4.2.min.js (BAD)
- /media/jui/js/jquery.min.js (CORRECT, loaded with Joomla APIs)
in some pages jQuery is loaded with a different order, so can create differents behaviours
  1. more than a month ago
  2. Bug Report
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.