Skip to main content
more detail and ruling out issues.
Source Link
Doug
  • 587
  • 3
  • 15

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQueryit isn't working at times: Channel images, WYGWAM, Tagger, and/or Grid. All but WYGWAM look right (the WYGWAM field shows as a basic text box, not the WYWAMY look) but don't work. If you click on a suggested tag it does not get added, if you click an "add row" icon for a Grid it just takes you to the top of the page.

In console I getsee the following error whenever it breaks (not when it works):

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "wwwStrange part is it is very inconsistent.example It will work fine, then break.com Then won't work on any browser (Mac, line 40 part I seePC, Chrome/Safari), then will start working again.

I've set up a test account:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

username: [email protected]

If I click on the link to the code where there error is I see this blockpassword: eecms

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

http://www.rcdevotee.com/contribute/model

Feel free to see if it works, doesn't work, and if you see any issues that can help figure it out when it isn't working.

The template does not have jQuery, the form includes it (include_jquery=="yes"). So no double jQuery issues in this case.

If I remove the form altogether I don't get the error I listed above. If I have just the form tags, but no fields it will give the error when it isn't working. So it has something to do with the Channel Form tag and not any of the fields it would seem.

Any help or ideas where to look for help much appreciated.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid.

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server it isn't working at times: Channel images, WYGWAM, Tagger, and Grid. All but WYGWAM look right (the WYGWAM field shows as a basic text box, not the WYWAMY look) but don't work. If you click on a suggested tag it does not get added, if you click an "add row" icon for a Grid it just takes you to the top of the page.

In console I see the following error whenever it breaks (not when it works):

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

Strange part is it is very inconsistent. It will work fine, then break. Then won't work on any browser (Mac, PC, Chrome/Safari), then will start working again.

I've set up a test account:

username: [email protected]

password: eecms

http://www.rcdevotee.com/contribute/model

Feel free to see if it works, doesn't work, and if you see any issues that can help figure it out when it isn't working.

The template does not have jQuery, the form includes it (include_jquery=="yes"). So no double jQuery issues in this case.

If I remove the form altogether I don't get the error I listed above. If I have just the form tags, but no fields it will give the error when it isn't working. So it has something to do with the Channel Form tag and not any of the fields it would seem.

Any help or ideas where to look for help much appreciated.

more trouble shooting to rule out browser inconsistencies
Source Link
Doug
  • 587
  • 3
  • 15

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid....BUT only on some systems. For me it won't work in Safari but does work in Chrome. For others it won't work in Chrome (with security settings set pretty tight).

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

Not sure where to go on this one. Does not work on dev/production when using Safari on at least two Macs (both 10.9). It works locally, works dev/production when using Chrome, works in Windows (Parallels) using Firefox and Chrome, also works on dev/production when using another Mac I have access to (not sure what version of OSX).

The only connection I can think of is the two computers/browsers it does NOT work are the two that I had used to post entries.

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid....BUT only on some systems. For me it won't work in Safari but does work in Chrome. For others it won't work in Chrome (with security settings set pretty tight).

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

Not sure where to go on this one. Does not work on dev/production when using Safari on at least two Macs (both 10.9). It works locally, works dev/production when using Chrome, works in Windows (Parallels) using Firefox and Chrome, also works on dev/production when using another Mac I have access to (not sure what version of OSX).

The only connection I can think of is the two computers/browsers it does NOT work are the two that I had used to post entries.

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid.

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

added 9 characters in body; edited tags
Source Link
Doug
  • 587
  • 3
  • 15

This may not be an issue with ExpressionEngine, but I'll start here and with the reference to some EE code.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid....BUT only on some systems using. For me it won't work in Safari but does work in Chrome. For others it won't work in Chrome (with security settings set pretty tight).

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

Not sure where to go on this one. Does not work on dev/production when using Safari on at least two Macs (both 10.9). It works locally, works dev/production when using Chrome, works in Windows (Parallels) using Firefox and Chrome, also works on dev/production when using another Mac I have access to (not sure what version of OSX).

The only connection I can think of is the two computers/browsers it does NOT work are the two that I had used to post entries.

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

This may not be an issue with ExpressionEngine, but I'll start here and with the reference to some EE code.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid....BUT only on some systems using Safari.

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

Not sure where to go on this one. Does not work on dev/production when using Safari on at least two Macs (both 10.9). It works locally, works dev/production when using Chrome, works in Windows (Parallels) using Firefox and Chrome, also works on dev/production when using another Mac I have access to (not sure what version of OSX).

The only connection I can think of is the two computers/browsers it does NOT work are the two that I had used to post entries.

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQuery isn't working: Channel images, WYGWAM, Tagger, and/or Grid....BUT only on some systems. For me it won't work in Safari but does work in Chrome. For others it won't work in Chrome (with security settings set pretty tight).

I get the following error:

[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)

When I hover over the "www.example.com, line 40 part I see:

http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40

If I click on the link to the code where there error is I see this block:

$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
    $(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
    $(this).parent().parent().css("height", "13px");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
    $(this).parent().parent().children().show();
    $(this).parent().parent().css("height", "auto");
    $(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});

Not sure where to go on this one. Does not work on dev/production when using Safari on at least two Macs (both 10.9). It works locally, works dev/production when using Chrome, works in Windows (Parallels) using Firefox and Chrome, also works on dev/production when using another Mac I have access to (not sure what version of OSX).

The only connection I can think of is the two computers/browsers it does NOT work are the two that I had used to post entries.

The template does not have jQuery, the form includes it. So no double jQuery issues in this case.

Any help or ideas where to look for help much appreciated.

Tweeted twitter.com/#!/StackExpression/status/480437587325505536
edited title
Link
Doug
  • 587
  • 3
  • 15
Loading
added 101 characters in body
Source Link
Doug
  • 587
  • 3
  • 15
Loading
Source Link
Doug
  • 587
  • 3
  • 15
Loading