[wp-trac] [WordPress Trac] #24544: 404 error when using 2 scripts

WordPress Trac noreply at wordpress.org
Sun Jun 9 13:15:25 UTC 2013


#24544: 404 error when using 2 scripts
----------------------------+-----------------------------
 Reporter:  nielsniels2012  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  3.5.1
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 Hello,

 I need to use this code in my functions.php folder:

 function wp_jquery_cdn_init(){
                 if (!is_admin()){
                     wp_deregister_script('jquery');
                     wp_register_script('jquery',
 "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js");
                     wp_enqueue_script('jquery');
                 }
             }
             add_action('init', 'wp_jquery_cdn_init');

 and this code in the post or page I want my Iframe:

 <script type="text/javascript"
 src="http://energieleverancierkiezen.energievergelijken.nl/Scripts/iframe/widget.js"></script><iframe
 src="http://energieleverancierkiezen.energievergelijken.nl/nl/input/widget/"
 height="325" width="332"></iframe>

 and im using the "iframe" plugin to let things work, but this plugin is
 not important for this bug. This is my website:
 http://www.energieleverancierkiezen.net/ when I try to use a plugin, for
 instance a social widget into my homepage it causes it to break.

 I have on all my posts a social widget at the bottom of the post, for
 instance: http://www.energieleverancierkiezen.net/energieleveranciers-
 kiezen/

 When I also activate this on pages, my homepage will break, because of
 this script on my homepage:
 <script type="text/javascript"
 src="http://energieleverancierkiezen.energievergelijken.nl/Scripts/iframe/widget.js"></script><iframe
 src="http://energieleverancierkiezen.energievergelijken.nl/nl/input/widget/"
 height="325" width="332"></iframe>

 But for letting that script work, I need also this script, like I said
 before:

 <script type="text/javascript"
 src="http://energieleverancierkiezen.energievergelijken.nl/Scripts/iframe/widget.js"></script><iframe
 src="http://energieleverancierkiezen.energievergelijken.nl/nl/input/widget/"
 height="325" width="332"></iframe>

 I've totally no clue why this problem occurs. I talked with the author of
 my theme, I talked with different plugin authors, but nobody has a clue
 why my homepage breaks. Everybody thinks it is something with wordpress.

 My website only breaks on pages where I add the iframe (this code: <script
 type="text/javascript"
 src="http://energieleverancierkiezen.energievergelijken.nl/Scripts/iframe/widget.js"></script><iframe
 src="http://energieleverancierkiezen.energievergelijken.nl/nl/input/widget/"
 height="325" width="332"></iframe> and a social plugin or my live chat)

 Thanks in advance,
 Niels

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24544>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list