Title: Javascript input causes 404 or 500 error
Last modified: August 18, 2016

---

# Javascript input causes 404 or 500 error

 *  [dprundle](https://wordpress.org/support/users/dprundle/)
 * (@dprundle)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/javascript-input-causes-404-or-500-error/)
 * When editing my default theme in WordPress 2.3 if I try to enter javascript into
   a theme file that is writable I get a 404 Error. However, I can edit that same
   file with any text as long as it isn’t javascript.
 * If I use a custom theme I downloaded doing the above task causes a 500 internal
   server error.
 * The javascript I’m trying to enter is adsense javascript cut and pasted from 
   google’s website:
 *     ```
       <script type="text/javascript"><!--
       google_ad_client = "pub-7774992805004161";
       google_ad_width = 180;
       google_ad_height = 150;
       google_ad_format = "180x150_as";
       google_ad_type = "text";
       //2007-11-07: geeksandphreaks-post
       google_ad_channel = "1380497186";
       google_color_border = "CAF99B";
       google_color_bg = "000000";
       google_color_link = "80FF00";
       google_color_text = "C0C0C0";
       google_color_url = "999999";
       google_ui_features = "rc:6";
       //-->
       </script>
       <script type="text/javascript"
         src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
       </script>
       ```
   

Viewing 1 replies (of 1 total)

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/javascript-input-causes-404-or-500-error/#post-649932)
 * What are the odds that you’re getting tripped up by mod_security, I wonder?
 * Have you tried using an FTP client to download the theme file, make your changes
   and then re-upload it?

Viewing 1 replies (of 1 total)

The topic ‘Javascript input causes 404 or 500 error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Chris_K](https://wordpress.org/support/users/handysolo/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/javascript-input-causes-404-or-500-error/#post-649932)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
