Title: [Plugin: eBibleicious] The script is being added incorrectly, causing a Javascript error
Last modified: August 20, 2016

---

# [Plugin: eBibleicious] The script is being added incorrectly, causing a Javascript error

 *  [Chris Jean](https://wordpress.org/support/users/chrisjean/)
 * (@chrisjean)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ebibleicious-the-script-is-being-added-incorrectly-causing-a-javascript-error/)
 * This plugin has not been updated in a long time and could really use some updates.
   It seems that the externally loaded Javascript code was modified at some point,
   breaking this plugin.
 * Activating the plugin and loading the site results in the following error:
 * `document.body is null`
 * This is because the script is being printed in the head of the site, before the
   body tag is rendered and the Javascript attempts to immediately run appendChild
   on the body.
 * A quick and dirty fix is to change the following line:
 * `add_action('wp_head', 'includeJSHeader', 40);`
 * to
 * `add_action('wp_footer', 'includeJSHeader', 40);`
 * While this fixes the issue, the plugin really should be updated to properly enqueue
   the script and stylesheet using wp_enqueue_script and wp_enqueue_style, respetively;
   to properly use capabilities for adding to the menu rather than a number; and
   to update the editor to more closely match the UI design of WordPress.
 * [http://wordpress.org/extend/plugins/ebibleicious/](http://wordpress.org/extend/plugins/ebibleicious/)

The topic ‘[Plugin: eBibleicious] The script is being added incorrectly, causing
a Javascript error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ebibleicious.svg)
 * [eBibleicious](https://wordpress.org/plugins/ebibleicious/)
 * [Support Threads](https://wordpress.org/support/plugin/ebibleicious/)
 * [Active Topics](https://wordpress.org/support/plugin/ebibleicious/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ebibleicious/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ebibleicious/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Chris Jean](https://wordpress.org/support/users/chrisjean/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ebibleicious-the-script-is-being-added-incorrectly-causing-a-javascript-error/)
 * Status: not resolved