WordPress Trac: Ticket #13896: js load error in RC3 on wamphttps://core.trac.wordpress.org/ticket/13896
<p>
sorry of my bad English.
</p>
<p>
I have upgrade my local wordpress (running on "wamp") to RC3
</p>
<blockquote>
<p>
version and I cant use more the admin panel Because of a js error in:
</p>
</blockquote>
<p>
load-scripts.php?c=1&amp;load=hoverIntent,common,jquery-color,wp-ajax-response,wp-lists,jquery-ui-core,jquery-ui-resizable,admin-comments,jquery-ui-sortable,postbox,dashboard,thickbox,plugin-install,media-upload&amp;ver=1c33e12a06a28402104d18bdc95ada53,
line 1 char 300
</p>
<p>
I try it in IE/FF and in buth the javascript not working
</p>
en-usWordPress Trachttps://core.trac.wordpress.org/chrome/site/your_project_logo.pnghttps://core.trac.wordpress.org/ticket/13896
Trac 1.0.1paperreductionTue, 15 Jun 2010 02:01:29 GMThttps://core.trac.wordpress.org/ticket/13896#comment:1
https://core.trac.wordpress.org/ticket/13896#comment:1
<p>
Having same issue on linux box (though i don't think the OS has anything to do with it). Error I'm getting is "this._mouseInit is not a function".
</p>
<p>
I'll try to switch to the dev version to get more info, but maybe someone will beat me to it.
</p>
TicketnacinTue, 15 Jun 2010 02:17:52 GMTkeywords changedhttps://core.trac.wordpress.org/ticket/13896#comment:2
https://core.trac.wordpress.org/ticket/13896#comment:2
<ul>
<li><strong>keywords</strong>
<em>reporter-feedback</em> added; <em>js</em> <em>error</em> <em>windows</em> removed
</li>
</ul>
<p>
Please disable all of your plugins.
</p>
Ticketmati1000Tue, 15 Jun 2010 06:59:08 GMThttps://core.trac.wordpress.org/ticket/13896#comment:3
https://core.trac.wordpress.org/ticket/13896#comment:3
<p>
before I open the ticket I install a new clear wordpress installation - with the same error
</p>
<p>
Replying to <a class="closed" href="https://core.trac.wordpress.org/ticket/13896#comment:2" title="Comment 2 for Ticket #13896">nacin</a>:
</p>
<blockquote class="citation">
<p>
Please disable all of your plugins.
</p>
</blockquote>
TicketnacinTue, 15 Jun 2010 07:15:12 GMThttps://core.trac.wordpress.org/ticket/13896#comment:4
https://core.trac.wordpress.org/ticket/13896#comment:4
<p>
Okay, can you add <tt>define('SCRIPT_DEBUG', true);</tt> to wp-config and see if that takes care of it?
</p>
TicketnacinTue, 15 Jun 2010 07:23:02 GMThttps://core.trac.wordpress.org/ticket/13896#comment:5
https://core.trac.wordpress.org/ticket/13896#comment:5
<p>
Is this on every page? What page are you seeing this? I'm having trouble locating which page loads all of those scripts.
</p>
Ticketocean90Tue, 15 Jun 2010 10:26:41 GMThttps://core.trac.wordpress.org/ticket/13896#comment:6
https://core.trac.wordpress.org/ticket/13896#comment:6
<p>
It's the dashboard page.<br />
My output:
</p>
<p>
<em>&lt;script type='text/javascript' src='http://localhost/wp/wp-admin/load-scripts.php?c=1&amp;amp;load=hoverIntent,common,jquery-color,wp-ajax-response,wp-lists,jquery-ui-core,jquery-ui-resizable,admin-comments,jquery-ui-sortable,postbox,dashboard,thickbox,plugin-install,media-upload&amp;amp;ver=1c33e12a06a28402104d18bdc95ada53'&gt;&lt;/script&gt;</em>
</p>
<p>
mati1000, do you get mati1000 &amp;amp; or &amp; in your URL?
</p>
TicketnacinTue, 15 Jun 2010 10:32:20 GMThttps://core.trac.wordpress.org/ticket/13896#comment:7
https://core.trac.wordpress.org/ticket/13896#comment:7
<p>
Apparently my comment never went through on here.
</p>
<p>
It is indeed the dashboard page, specifically the JavaScript error is referring to an unbind call within a jQuery plugin called hoverIntent. We've used that plugin for quite a while, it is not modified from its original source, and I minified it again to find that it matched what was in trunk. So I'm not sure what's going on here. Having no problems in all the browsers I've tried, including FF 3.6.3.
</p>
Ticketmati1000Tue, 15 Jun 2010 19:59:30 GMThttps://core.trac.wordpress.org/ticket/13896#comment:8
https://core.trac.wordpress.org/ticket/13896#comment:8
<p>
yes! I added and this takes care of it!
</p>
<p>
why?
</p>
<p>
Replying to <a class="closed" href="https://core.trac.wordpress.org/ticket/13896#comment:4" title="Comment 4 for Ticket #13896">nacin</a>:
</p>
<blockquote class="citation">
<p>
Okay, can you add <tt>define('SCRIPT_DEBUG', true);</tt> to wp-config and see if that takes care of it?
</p>
</blockquote>
Ticketmati1000Tue, 15 Jun 2010 20:00:21 GMThttps://core.trac.wordpress.org/ticket/13896#comment:9
https://core.trac.wordpress.org/ticket/13896#comment:9
<blockquote>
<p>
I get &amp;amp;
</p>
</blockquote>
<p>
Replying to <a class="closed" href="https://core.trac.wordpress.org/ticket/13896#comment:6" title="Comment 6 for Ticket #13896">ocean90</a>:
</p>
<blockquote class="citation">
<p>
It's the dashboard page.<br />
My output:
</p>
<p>
<em>&lt;script type='text/javascript' src='http://localhost/wp/wp-admin/load-scripts.php?c=1&amp;amp;load=hoverIntent,common,jquery-color,wp-ajax-response,wp-lists,jquery-ui-core,jquery-ui-resizable,admin-comments,jquery-ui-sortable,postbox,dashboard,thickbox,plugin-install,media-upload&amp;amp;ver=1c33e12a06a28402104d18bdc95ada53'&gt;&lt;/script&gt;</em>
</p>
<p>
mati1000, do you get mati1000 &amp;amp; or &amp; in your URL?
</p>
</blockquote>
TicketpaperreductionWed, 16 Jun 2010 03:41:20 GMThttps://core.trac.wordpress.org/ticket/13896#comment:10
https://core.trac.wordpress.org/ticket/13896#comment:10
<p>
@nacin, did the versions of jquery or jquery UI change? This issue seems to get crazier the more i've looked into it.
</p>
<p>
I found the same thing you did by switching to dev files. Thinking my files were corrupt i pulled down RC3 over SSH and unpacked on server. That still didn't fix it. I blew away the dbase did clean install and the error was gone!
</p>
<p>
After adding 4 pages (in the span of 2 minutes) the js error was back (I was watching my error counsel...). I verified the error in Safari as well.
</p>
<p>
I cleared the dbase again (dropped all tables), and again after install everything was fine. Plus I created all pages w/o issue. So I can't reproduce the problem consistently.
</p>
<p>
Can this somehow be dbase related? Being a js issue, that would seem to be really odd.
</p>
TicketpaperreductionWed, 16 Jun 2010 04:04:26 GMThttps://core.trac.wordpress.org/ticket/13896#comment:11
https://core.trac.wordpress.org/ticket/13896#comment:11
<p>
SOLVED (for me at least):
Realizing the database played a roll in this, I got firebug running and started looking through everything...
</p>
<p>
The theme I'm using has jQuery UI defined inside! And it's not queued, and there's no is_admin check. I didn't catch it above because I was trying to get everything reloaded, and I was creating pages while doing this other stuff.
</p>
<p>
So, removing the include solved the issue for me, not sure if this is the same problem for others. But hopefully this helps. (Note jQuery UI 1.8.1 was being included)
</p>
Ticketocean90Wed, 16 Jun 2010 06:55:32 GMTpriority, status changed; resolution set; keywords, milestone deletedhttps://core.trac.wordpress.org/ticket/13896#comment:12
https://core.trac.wordpress.org/ticket/13896#comment:12
<ul>
<li><strong>keywords</strong>
<em>reporter-feedback</em> removed
</li>
<li><strong>priority</strong>
changed from <em>high</em> to <em>normal</em>
</li>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>invalid</em>
</li>
<li><strong>milestone</strong>
<em>Unassigned</em> deleted
</li>
</ul>
<p>
WordPress Backend doesn't support UI 1.8 yet, see also <a class="closed ticket" href="https://core.trac.wordpress.org/ticket/12863" title="defect (bug): jQuery UI 1.8 (closed: fixed)">#12863</a>. An !is_admin() check would be good.
</p>
Ticketmati1000Wed, 16 Jun 2010 20:13:32 GMTstatus changed; resolution deletedhttps://core.trac.wordpress.org/ticket/13896#comment:13
https://core.trac.wordpress.org/ticket/13896#comment:13
<ul>
<li><strong>status</strong>
changed from <em>closed</em> to <em>reopened</em>
</li>
<li><strong>resolution</strong>
<em>invalid</em> deleted
</li>
</ul>
<p>
I (ticket opener ) dont using UI 1.8.
</p>
<p>
I installed a new instalion of RC3 and the JS in admin panel have errors.
</p>
<p>
after I added: define('SCRIPT_DEBUG', true);
</p>
<ul><li>its work (with the dev version of jQuery).
</li></ul><p>
maby the "minified" is bad.
</p>
TicketnacinWed, 16 Jun 2010 20:22:08 GMTmilestone sethttps://core.trac.wordpress.org/ticket/13896#comment:14
https://core.trac.wordpress.org/ticket/13896#comment:14
<ul>
<li><strong>milestone</strong>
set to <em>Unassigned</em>
</li>
</ul>
<p>
I can confirm the minified works for me in Chrome 5, Firefox 3.6.3, etc.
</p>
<p>
Can you turn off script concatenation? <tt>define('CONCATENATE_SCRIPTS', false);</tt>. That will still print the minified scripts but not concatenate them. If you still see an error in hoverIntent, then we'll try something else.
</p>
Ticketmati1000Wed, 16 Jun 2010 21:55:08 GMThttps://core.trac.wordpress.org/ticket/13896#comment:15
https://core.trac.wordpress.org/ticket/13896#comment:15
<p>
this help! I dont have errors.
</p>
<p>
Replying to <a class="closed" href="https://core.trac.wordpress.org/ticket/13896#comment:14" title="Comment 14 for Ticket #13896">nacin</a>:
</p>
<blockquote class="citation">
<p>
I can confirm the minified works for me in Chrome 5, Firefox 3.6.3, etc.
</p>
<p>
Can you turn off script concatenation? <tt>define('CONCATENATE_SCRIPTS', false);</tt>. That will still print the minified scripts but not concatenate them. If you still see an error in hoverIntent, then we'll try something else.
</p>
</blockquote>
TicketnacinThu, 17 Jun 2010 01:07:51 GMThttps://core.trac.wordpress.org/ticket/13896#comment:16
https://core.trac.wordpress.org/ticket/13896#comment:16
<p>
I'm out of ideas then. Concatenating the same scripts should mean no difference.
</p>
<p>
Can you reproduce this in 2.9?
</p>
Ticketduck_Mon, 22 Nov 2010 16:39:43 GMTkeywords sethttps://core.trac.wordpress.org/ticket/13896#comment:17
https://core.trac.wordpress.org/ticket/13896#comment:17
<ul>
<li><strong>keywords</strong>
<em>reporter-feedback</em> added
</li>
</ul>
TicketnacinMon, 22 Nov 2010 18:24:04 GMTstatus changed; resolution set; milestone deletedhttps://core.trac.wordpress.org/ticket/13896#comment:18
https://core.trac.wordpress.org/ticket/13896#comment:18
<ul>
<li><strong>status</strong>
changed from <em>reopened</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>invalid</em>
</li>
<li><strong>milestone</strong>
<em>Awaiting Review</em> deleted
</li>
</ul>
Ticket