Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is my WordPress PHP header template generating oddly coded paths and transcluding some css and js file in the outputted HTML?
    text
    copied!<p>I think this is an encoding problem(?), but not really sure.</p> <p>When I view my generated source (in both FF and IE) I see funky paths from my js and css files like: <code>&lt;script type="text/javascript" src="http://www.domain.com/wp-content/themes/dudical/js/ce.f4195499d3cfc40ae09588aae02ff2dc.jquery,oeasing,omin,l.js"&gt;&lt;/script&gt;</code></p> <p>Also, several of the js/css files are actually being transcluded, i.e I don't see references to the external files, but instead the content of those files are being shown in the source inside of <code>&lt;script&gt;</code> and <code>&lt;style&gt;</code> tags respectively. I've never seen this type of behavior before and am pretty baffled.</p> <p>Here is how my header.php file begins:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &lt;?php language_attributes(); ?&gt;&gt; &lt;head profile="http://gmpg.org/xfn/11"&gt; &lt;meta http-equiv="Content-Type" content="&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('charset'); ?&gt;" /&gt; &lt;title&gt;&lt;?php if (is_front_page() ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); } elseif (is_single() ) { single_post_title(); } elseif (is_page() ) { single_post_title(); echo ' - '; bloginfo('name'); } else { wp_title('',true); } ?&gt; &lt;/title&gt; &lt;?php if(get_option('favicon')) { ?&gt; &lt;link rel="shortcut icon" href="&lt;?php echo get_option('favicon'); ?&gt;" type="image/x-icon" /&gt; &lt;?php }else{?&gt;&lt;link rel="shortcut icon" href="&lt;?php echo system32_url; ?&gt;/favicon.ico" type="image/x-icon" /&gt; &lt;?php } ?&gt; &lt;?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?&gt; &lt;?php wp_head(); ?&gt; &lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php bloginfo('template_url'); ?&gt;/css/reset.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/style.css" /&gt; &lt;!-- Jquery and Easing--&gt; &lt;script type="text/javascript" src="&lt;?php bloginfo('template_url'); ?&gt;/js/jquery-1.4.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php bloginfo('template_url'); ?&gt;/js/jquery.easing.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php bloginfo('template_url'); ?&gt;/js/jquery.capSlide.js"&gt;&lt;/script&gt; </code></pre> <p>Here is what I see output:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang=en lang=en&gt; &lt;head profile="http://gmpg.org/xfn/11"&gt; &lt;meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"/&gt; &lt;title&gt;Surf Hatteras&lt;/title&gt; &lt;link rel="shortcut icon" href="http://www.surfhatteras.com/wp-content/uploads/2010/10/surf-icon.gif" type="image/x-icon"/&gt; &lt;style&gt;body { outline:none;} .postoptions { padding:0px; padding-top:0; } .postoptions select, ... &lt;/style&gt; &lt;style&gt;/* CSS for WP-Testimonials */ #sfstest-form label { float: left; width: 200px; font-weight: bold; } ... &lt;/style&gt; &lt;script type='text/javascript' src='http://www.surfhatteras.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'&gt;&lt;/script&gt; &lt;link rel=EditURI type="application/rsd+xml" title=RSD href="http://www.surfhatteras.com/xmlrpc.php?rsd"/&gt; &lt;link rel=wlwmanifest type="application/wlwmanifest+xml" href="http://www.surfhatteras.com/wp-includes/wlwmanifest.xml"/&gt; &lt;link rel=index title='Surf Hatteras' href='http://www.surfhatteras.com/'/&gt; &lt;meta name=generator content="WordPress 3.0.1"/&gt; &lt;style&gt;/* http://meyerweb.com/eric/tools/css/reset/ */ /* v1.0 | 20080212 */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } ... &lt;/style&gt; &lt;link rel=stylesheet type="text/css" href="http://www.surfhatteras.com/wp-content/themes/dudical/ce.51cd742ab6418eec6131ff2cf43b61c4.style,s.css"/&gt; &lt;!-- Jquery and Easing--&gt; &lt;script type="text/javascript" src="http://www.surfhatteras.com/wp-content/themes/dudical/js/ce.9e936b27d8d0e4e07ebef242d7c6e2cc.jquery-1,o4,omin,l.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;(function($) { $.fn.capslide = function(options) { var opts = $.extend({}, $.fn.capslide.defaults, options); return this.each(function() { $this = $(this); var o = $.meta ? $.extend({}, opts, $this.data()) : opts; ... })(jQuery);&lt;/script&gt; &lt;link rel=stylesheet type="text/css" href="http://www.surfhatteras.com/wp-content/themes/dudical/colors/ce.d47db6d7bbcb1f0192576f60ffa27ec9.white,s.css" media=screen /&gt; &lt;!-- Slider CSS--&gt; &lt;style&gt;/* Coin Slider jQuery plugin CSS styles http://workshop.rs/projects/coin-slider */ #coin-slider { margin-left:20px;} ... &lt;/style&gt; &lt;link rel=stylesheet type="text/css" media=screen href="http://www.surfhatteras.com/wp-content/themes/dudical/css/cc.224c1b363a793961fc7bc2e428d6ce58.nivo-slider,s+superfish,s.css"&gt; </code></pre> <p>Can't figure what is happening to my paths, or why some external files are getting treated as such...</p> <p><strong>EDIT</strong></p> <p>List of plug-ins I am using:</p> <ul> <li>Category Posts Widget</li> <li>Contact Form 7</li> <li>Contact Form 7 to DB Extension</li> <li>Get Post Image</li> <li>Get The Image</li> <li>Resize At Upload Plus</li> <li>Widgets Reloaded</li> <li>WordPress Hashcash</li> <li>WP-DBManager</li> <li>WP-Mail-SMTP</li> <li>WP Show IDs</li> <li>WP Wunderground</li> <li>(The caching plugin I was using is Quick Cache)</li> </ul> <p><a href="http://wordpress.pastebin.com/DK8Cs22S" rel="nofollow">Contents of my <code>functions.php</code> file</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload