Title: Sub-directory install wp-includes path calculated incorrectly
Last modified: August 21, 2016

---

# Sub-directory install wp-includes path calculated incorrectly

 *  [billsmithem](https://wordpress.org/support/users/billsmithem/)
 * (@billsmithem)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/)
 * Thumbnail Galleries using Thickbox are not displaying correctly when selected
   due to incorrect calculation of the path to wp-includes when WP is installed 
   in a sub-directory rather than the root directory.
 * wp-includes/js/thickbox/thickbox.js is 404 as the path is missing the directory
   in which WP is actually installed.
 * You are loading:
 * [http://domain.tld/wp-includes/js/thickbox/thickbox.js](http://domain.tld/wp-includes/js/thickbox/thickbox.js)
 * when the actual path is:
 * [http://domain.tld/sub-dir/wp-includes/js/thickbox/thickbox.js](http://domain.tld/sub-dir/wp-includes/js/thickbox/thickbox.js)
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942170)
 * [@billsmithem](https://wordpress.org/support/users/billsmithem/) – We do not 
   see this issue when testing with WordPress installed in sub-directories … or 
   are you referring to the WordPress URL and Site URL addresses being different(
   an issue we are still working on)?
 * – Cais.
 *  Thread Starter [billsmithem](https://wordpress.org/support/users/billsmithem/)
 * (@billsmithem)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942174)
 * Site address is: [http://domain.tld](http://domain.tld)
 * WordPress address is: [http://domain.tld/sub-dir](http://domain.tld/sub-dir)
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942325)
 * [@billsmithem](https://wordpress.org/support/users/billsmithem/) – Yes, in some
   instances NextGEN Gallery just will not work under those conditions (and as I
   noted, we are still trying to sort those out). Is it possible for you to set 
   those addresses to use the same URL?
 * – Cais.
 *  Thread Starter [billsmithem](https://wordpress.org/support/users/billsmithem/)
 * (@billsmithem)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942379)
 * LOL… I’m not going to move 20+ websites because you can’t figure out the correct
   path to the WP install. If I have to go through that much work I’ll just ditch
   NG and look for something more stable.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942380)
 * [@billsmithem](https://wordpress.org/support/users/billsmithem/) – I wasn’t asking
   you to change all of your sites, just one you are having the issue with as a 
   test for your instance(s).
 * If that is too much work, I can fully appreciate you not wanting to do it … or
   to try it … I’ll note this report of different URL addresses without any additional
   details.
 * Thanks!
 * – Cais.
 *  Thread Starter [billsmithem](https://wordpress.org/support/users/billsmithem/)
 * (@billsmithem)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942385)
 * Since we always use subdirectory installs, Thickbox has stopped working on every
   site that uses NextGen. The issue is the same on every one – NG is using the 
   Site Address instead of the WordPress Address to locate the thickbox.js script.
 * I have copied the thickbox folder, /wp-includes/js/thickbox/, to the root and
   it works just fine, but I really would prefer not to have to do this on all the
   sites. The only thing wrong is that your code has started looking for it in the
   wrong place.
 *  Thread Starter [billsmithem](https://wordpress.org/support/users/billsmithem/)
 * (@billsmithem)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942386)
 * and by copy to the root, I mean I’ve duplicated the entire path where it would
   be located were WP installed in the root directory.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942387)
 * [@billsmithem](https://wordpress.org/support/users/billsmithem/) – Thank you 
   very much for that troubleshooting and the specific example of an issue (with
   Thickbox). I will pass this along to our developers so they can review it against
   their current corrections to address the issue with paths as may be related to
   this differing URL address issue.
 * – Cais.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Sub-directory install wp-includes path calculated incorrectly’ is closed
to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/sub-directory-install-wp-includes-path-calculated-incorrectly/#post-4942387)
 * Status: not resolved