Title: Errors when wp in sub directory
Last modified: August 21, 2016

---

# Errors when wp in sub directory

 *  [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * (@petervanderdoes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-when-wp-in-sub-directory/)
 * Version 0.24
 * This version throws errors in the admin screen that it can’t include wp-load.
   php
 * My setup follows the WordPress-Skeleton setup by Mark Jaquith
    / -content –plugins–
   themes -wp
 * wp-load.php is included through a relative path and that relative path does not
   lead to the directory where my WordPress is located.
 * [http://wordpress.org/plugins/image-pro-wordpress-image-media-management-and-resizing-done-right/](http://wordpress.org/plugins/image-pro-wordpress-image-media-management-and-resizing-done-right/)

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

 *  Plugin Author [mihaivalentin](https://wordpress.org/support/users/mihaivalentin/)
 * (@mihaivalentin)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-when-wp-in-sub-directory/#post-4010962)
 * Hi Peter,
 * Yes, my plugin makes the assumption that wp-load.php is where the wordpress installs
   it by default.
 * For a custom installation as you have, I advise to change the path to fit your
   setup.
 * Mihai.
 *  Thread Starter [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * (@petervanderdoes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-when-wp-in-sub-directory/#post-4010965)
 * Why not use the constant ABSPATH to load wp-load.php?
 *  Plugin Author [mihaivalentin](https://wordpress.org/support/users/mihaivalentin/)
 * (@mihaivalentin)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-when-wp-in-sub-directory/#post-4010987)
 * Hi Peter,
 * ABSPATH constant is not available until wp-load is included, as it’s defined 
   there 🙂

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

The topic ‘Errors when wp in sub directory’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/image-pro-wordpress-image-media-management-
   and-resizing-done-right.svg)
 * [Image Pro - Image resizing and media management done right](https://wordpress.org/plugins/image-pro-wordpress-image-media-management-and-resizing-done-right/)
 * [Support Threads](https://wordpress.org/support/plugin/image-pro-wordpress-image-media-management-and-resizing-done-right/)
 * [Active Topics](https://wordpress.org/support/plugin/image-pro-wordpress-image-media-management-and-resizing-done-right/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-pro-wordpress-image-media-management-and-resizing-done-right/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-pro-wordpress-image-media-management-and-resizing-done-right/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mihaivalentin](https://wordpress.org/support/users/mihaivalentin/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/errors-when-wp-in-sub-directory/#post-4010987)
 * Status: not resolved