|
|
|
#1

Mar 16, 2011, 01:25 PM
|
|
|
Hi there,
I am using the latest chrome , latest wordpress and latest atahualpa... I see crazy jquery on the top of the webpage..
http://itp.nyu.edu/launch/
The exact code is this:
// centerwidth) { jQuery(this).css({width: maxwidth}); jQuery(this).css({height: newimgheight}); } }); /* Images with caption */ jQuery("div.wp-caption").each(function() { var captionwidth = jQuery(this).width(); var maxcaptionwidth = centerwidth + 'px'; var captionheight = jQuery(this).height(); var captionimgwidth = jQuery("div.wp-caption img").width(); var captionimgheight = jQuery("div.wp-caption img").height(); if (captionwidth > centerwidth) { jQuery(this).css({width: maxcaptionwidth}); var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px'; var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px'; jQuery(this).css({height: newcaptionheight}); jQuery("div.wp-caption img").css({height: newcaptionimgheight}); } }); /* sfhover for LI:HOVER support in IE6: */ jQuery("ul li"). hover( function() { jQuery(this).addClass("sfhover") }, function() { jQuery(this).removeClass("sfhover") } ); /* End IE6 */ } jQuery(".post table tr"). mouseover(function() { jQuery(this).addClass("over"); }). mouseout(function() { jQuery(this).removeClass("over"); }); jQuery(".post table tr:even"). addClass("alt"); jQuery("input.text, input.TextField, input.file, input.password, textarea"). focus(function () { jQuery(this).addClass("highlight"); }). blur(function () { jQuery(this).removeClass("highlight"); }) jQuery("input.inputblur"). focus(function () { jQuery(this).addClass("inputfocus"); }). blur(function () { jQuery(this).removeClass("inputfocus"); }) jQuery("input.button, input.Button, input#submit"). mouseover(function() { jQuery(this).addClass("buttonhover"); }). mouseout(function() { jQuery(this).removeClass("buttonhover"); }); /* toggle "you can use these xhtml tags" */ jQuery("a.xhtmltags"). click(function(){ jQuery("div.xhtml-tags").slideToggle(300); }); /* For the Tabbed Widgets plugin: */ jQuery("ul.tw-nav-list"). addClass("clearfix"); }); //]]> >
What is breaking here?
Thanks
|
|
#2

Mar 16, 2011, 01:33 PM
|
 |
|
|
9,372 posts · Jul 2009
Central New York State USA
|
|
|
If you didn't add any code try deactivating plugins. The Event Calendar plugin you have installed is old and would be my first suspect. You might want to try The newer Event Calendar plugin.
__________________
~Larry ( CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
|
|
#4

Mar 16, 2011, 02:13 PM
|
 |
|
|
1,320 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
|
Might be the tabbed widgets plugin.
As for calendars, I've had good luck with My Calendar by Joe Dolson. He is constantly improving the plugin, and you can modify its appearance infinitely, with CSS.
|
|
#5

Mar 16, 2011, 02:18 PM
|
|
|
|
The only plugins i have activated are:
Select Event Calendar 3 for PHP 5.3
Event Calendar 3 for PHP 5.3
Deactivate | Edit
Manage future events as an online calendar. Display upcoming events in a dynamic calendar, on a listings page, or as a list in the sidebar. You can subscribe to the calendar from iCal (OSX) or Sunbird. Change settings on the Event Calendar Options screen.
Version 3.1.5 | By Alex Tingle (PHP 5.3 version by Stig Ulfsby) | Visit plugin site
Select LDAP Authentication Plug-in
LDAP Authentication Plug-in
Deactivate | Edit
A plugin to override the core Wordpress authentication method so as to use an LDAP server for authentication. adapted from the wpmu pligin by Alistair Young, Patrick Cavit, Hugo Salgado, Alex Barker, Dexter Arver, Sean Wedig and from Clifton H. Griffin's wp plugin simple-ldap-login
By NDL (adaptor)
Select MiniMeta Widget
MiniMeta Widget
Settings | Deactivate | Edit
WordPress (Mini)Meta Widget with different logon types (form,link) and additional admin links. All links can enabeld/disabeld.
Version 4.5.3 | By Daniel Hüsken | Visit plugin site | FAQ | Support | Donate
Select WP Ajax Edit Comments
WP Ajax Edit Comments
Deactivate | Edit
Users can edit their own comments for a limited time, while admins can edit all comments.
Version 3.2.0.0 | By Ronald Huereca | Visit plugin site
i have disabled altahualpa's inline css/js and debugging to off... its still a little screwy
|
|
#6

Mar 16, 2011, 02:48 PM
|
 |
|
|
9,372 posts · Jul 2009
Central New York State USA
|
|
|
When I look at the source code of you site I see the following.
<!-- Added by EventCalendar plugin. Version 3.1.4 -->
Could this perhaps be left over code from the previous verion?
__________________
~Larry ( CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
|
|
#7

Mar 17, 2011, 02:51 AM
|
|
|
|
I assume you've got it sorted as I can view your site in Chrome with no issues...
|
|
#8

Mar 17, 2011, 08:34 AM
|
|
|
|
no.. .now the header disappears on many pages including the home... something is definitely not right
|
|
#10

Mar 17, 2011, 11:40 AM
|
|
|
|
right... this is after I make css / js external and debugging off ... also the Header Image doesnt show even though it is set to show...
this is even after I disable all plugins..
|
|
#11

Mar 17, 2011, 11:41 AM
|
|
|
also check this out...
http://itp.nyu.edu/bigscreens
This is a fresh install with no content in it... same crap on the top
|
|
#12

Mar 17, 2011, 11:42 AM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
1) what did you do to get rid of the code showing
2) what pages are missing the header
3) have you edited any of the theme code
4) go to ATO->export/import settings, export your setting and attach them to a reply
|
|
#13

Mar 17, 2011, 11:53 AM
|
|
|
Here it is for both http://itp.nyu.edu/launch and http://itp.nyu.edu/bigscreens
I went into css and js options and made css and js External and set compression and debugging to no.
Home page, legal advice and developing world are just a few that are missing the header image.
I have not edited any code on either sites...
|
|
#14

Mar 17, 2011, 12:07 PM
|
 |
|
|
9,372 posts · Jul 2009
Central New York State USA
|
|
|
Try deactivating all plugins to see if one of those is the culprit? That is one of the first steps in troubleshooting problems like this.
__________________
~Larry ( CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
|
|
#16

Mar 17, 2011, 12:45 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
Well I just imported your site and then went to ato->Style & edit CENTER COLUMN and reset all the options on that page and now that site is working, so you should look at what you changed in those options.
|
|
#17

Mar 17, 2011, 01:14 PM
|
|
|
so even when i reset "EVERYTHING" and disable "ALL" plugins. i still see the same code
http://itp.nyu.edu/launch/
|
|
#18

Mar 17, 2011, 01:52 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
send me a PM with an admin id/pw and I'll take a look
|
|
#19

Mar 17, 2011, 02:24 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
the plugin 'Event Calendar 3 for PHP 5.3' is causing the problem. you are using php 5.2.6
|
|
#20

Mar 17, 2011, 02:29 PM
|
|
|
|
understandable... but why would a Total fresh install with no plugin give the same error?
|
|
#21

Mar 17, 2011, 02:32 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
Looking again it looks like you have a stream wrapper issue.
In version 3.6.1 the developer changed from using the eval() function (due to a WordPress requirement) to using stream wrappers. All the odd code is happening when the stream wrappers are being used.
It doesn't look like you are using Suhosin, so I am at a loss as to what is happening.
|
|
#22

Mar 17, 2011, 02:52 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
what is interesting is that this happens on Safari on my mac, but I have no issue with FireFox. I'm thinking that there is some interaction with webkit
|
|
#23

Mar 17, 2011, 04:39 PM
|
|
|
|
@muji786
been looking into it, but cant see it anymore since you (understandably) switched back to external js.
can you post the sourcecode of a page with garbage to pastebin and link it here?
btw the garbage you are/were seeying is part of the atahualpa js.php file
|
|
#24

Mar 17, 2011, 06:59 PM
|
|
|
Basically what is happening here is that somehow the "//" javascript comment is not recognized as such.
More in detail, this is what's happening here when atahualpa is set to use inline js/css:
js.php gets included in the head by the themes functions.php like this:
<script type="text/javascript">script to be insterted here</script>
most of js.php is wrapped in CDATA to remove the need to unescape the javascript like this:
Code:
//<![CDATA[
script to be inserted here
//]]>
(starts at line 40 of js.php, ata 3.6.4)
the problem here is that the code for // (javascript comment) is not recognized
as a result, the browser writes the // onscreen. that is the 1st part of the garbage.
because the // is not recognized as javascript comment,
this means that the "<" sign is interpreted as a javascript opening tag
and it means that "<!CDATA" is interpreted as javascript (which it is not)
the javascript engine cant make sense of it, will ignore it, and it will look for a closing tag ">"
(hereby ignoring php code and php closing tags "?>" )
in atahualpa 3.6.4, the first instance of a closing tag ">" is on line 120 of js.php:
Code:
if (imgwidth > centerwidth) {
"centerwidth" is indeed the next garbage that is outputed on the screen after the "//"
from there on all other javascript in js.php to the end of the file is also outputted on the screen
The question now is why does this happen, and why does it happen on chrome/webkit browsers only?
.
Last edited by STB; Mar 17, 2011 at 07:03 PM.
Reason: typo
|
|
#25

Mar 17, 2011, 07:18 PM
|
 |
|
|
19,977 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
While what STB is conjecturing may also be an issue (though I seriously doubt it), the symptoms I saw while experimenting on the site lead me to believe that this is a problem with stream wrappers in this particular environment when the site is visited with a browser using WebKit. this is why it shows up in Chrome and Safari on the mac, but not Safari on Windows and not with Firefox.
You will need to talk to your IT people about what the possible cause might be.
Last edited by juggledad; Mar 18, 2011 at 07:00 AM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
|