Title: Subdirectory Bug
Last modified: August 21, 2016

---

# Subdirectory Bug

 *  Resolved [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/)
 * I’m setting up an intranet using Alfie Weather. Really love the widget and the
   client loves it too. However the widget does not load on a subdirectory. I installed
   WP in a subdirectory called ‘test’ to debug this issue in a fresh WP install.
   localhost/test/
 * I get a 404 Not Found error for getfeed.php. It is pointing to the root directory
   of the localhost, instead of the WP root, ‘/test/’ in my case. So, it’s looking
   for /wp-content/plugins/alfie-wp-weather/getfeed.php in the localhost root.
 * When moved WP to the localhost root, it worked fine.
 * [http://wordpress.org/extend/plugins/alfie-wp-weather/](http://wordpress.org/extend/plugins/alfie-wp-weather/)

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/subdirectory-bug/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/subdirectory-bug/page/2/?output_format=md)

 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683003)
 * Hi,
 * Right, there should be an update including a fix for this issue in a few hours.
 * The Alfie Team
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683075)
 * Marking this as resolved.
 *  Thread Starter [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683076)
 * Thanks for the quick response!
 * Got this when i updated the plugin:
 *  ! ) SCREAM: Error suppression ignored for
    ( ! ) Warning: include(shortcode.
   php) [[function.include](https://wordpress.org/support/topic/subdirectory-bug/function.include?output_format=md)]:
   failed to open stream: No such file or directory in C:\wamp\www\intranet\wp-content\
   plugins\alfie-wp-weather\index.php on line 61 Call Stack # Time Memory Function
   Location 1 0.0032 970024 {main}( ) ..\plugins.php:0 2 0.0046 1087400 require_once(‘
   C:\wamp\www\intranet\wp-admin\admin.php’ ) ..\plugins.php:10 3 0.0051 1113336
   require_once( ‘C:\wamp\www\intranet\wp-load.php’ ) ..\admin.php:30 4 0.0055 1132408
   require_once( ‘C:\wamp\www\intranet\wp-config.php’ ) ..\wp-load.php:29 5 0.0067
   1263808 require_once( ‘C:\wamp\www\intranet\wp-settings.php’ ) ..\wp-config.php:
   91 6 0.4921 27981296 include_once( ‘C:\wamp\www\intranet\wp-content\plugins\alfie-
   wp-weather\index.php’ ) ..\wp-settings.php:195
 * ( ! ) SCREAM: Error suppression ignored for
    ( ! ) Warning: include() [[function.include](https://wordpress.org/support/topic/subdirectory-bug/function.include?output_format=md)]:
   Failed opening ‘shortcode.php’ for inclusion (include_path=’.;C:\php\pear’) in
   C:\wamp\www\intranet\wp-content\plugins\alfie-wp-weather\index.php on line 61
   Call Stack # Time Memory Function Location 1 0.0032 970024 {main}( ) ..\plugins.
   php:0 2 0.0046 1087400 require_once( ‘C:\wamp\www\intranet\wp-admin\admin.php’)..\
   plugins.php:10 3 0.0051 1113336 require_once( ‘C:\wamp\www\intranet\wp-load.php’)..\
   admin.php:30 4 0.0055 1132408 require_once( ‘C:\wamp\www\intranet\wp-config.php’)..\
   wp-load.php:29 5 0.0067 1263808 require_once( ‘C:\wamp\www\intranet\wp-settings.
   php’ ) ..\wp-config.php:91 6 0.4921 27981296 include_once( ‘C:\wamp\www\intranet\
   wp-content\plugins\alfie-wp-weather\index.php’ ) ..\wp-settings.php:195
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683077)
 * Hi,
 * Please open shortcode.php in a text editor and change line 61 to
 * `include 'shortcode.php';`
 * Let us now if the error dissapears.
 * The Alfie Team
 *  Thread Starter [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683080)
 * I don’t see a shortcode.php file in your plugin. There is one in the wp core 
   files called shortcodes.php.
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683081)
 * Sorry, the file you have to edit is index.php, located inside alfie-wp-weather
   directory. But, still, there MUST be a shortcode.php file in the same directory.
 *  [allcore](https://wordpress.org/support/users/allcore/)
 * (@allcore)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683107)
 * I just installed your plugin so I have the most current version. I am unfortuanatly
   having the same 404 error within a sub-directory . . . It is calling the root
   and not the sub-directory. I have
    include ‘shortcode.php’; on line 61 in my 
   index.php file as well.
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683109)
 * Hi,
 * Sorry to hear you encountered problems with the plugin. Could you please post
   a link to a page where you have the widget active, so we can look into the issue?
 * Thanks.
 * The Alfie Team
 *  [allcore](https://wordpress.org/support/users/allcore/)
 * (@allcore)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683110)
 * [http://tiffdemo.hostserve.net/ddlease/](http://tiffdemo.hostserve.net/ddlease/)
 *  Thread Starter [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683111)
 * My version is being developed for an intranet so i can’t give you a link. But
   i modified the include shortcode.php line 61 in index.php and got same result.
   It seems you need an actual shortcode.php file in your plugin if you are going
   to call it.
 * I commented out line 61 and the error was removed. However, i’m still not seeing
   the widget.
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683112)
 * pkd, please update to the latest version, there was a bug with the latest version
   and shortcode.php wasn’t comitted. Let us know if it solves the issue.
 * Regards.
    The Alfie Team
 *  Thread Starter [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683113)
 * Ok. I did just catch that. Thanks. The error is now gone. However, the widget
   is not showing when on a subfolder. I’m seeing the same error where the JS is
   calling getfeed.php in the root.
 * I’m running locally, could that have something to do with it? I have not tested
   this from a live site.
 * The intranet i’m running from this machine is also local, but i’ve created a 
   Virtualhost to rename the site locally. Still have same problem here.
 *  Plugin Author [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * (@appcuarium)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683115)
 * Hi,
 * We’ve just released an update for the plugin that fully fixes subdirectory install
   issues. Please update the plugin to the latest version.
 * Hope it finally works for you guys.
 * The Alfie Team
 *  [allcore](https://wordpress.org/support/users/allcore/)
 * (@allcore)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683125)
 * It works great! Love your plugin and great support!
 *  Thread Starter [pkd](https://wordpress.org/support/users/peter-king-design/)
 * (@peter-king-design)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/#post-3683132)
 * It works for me now in a test version. My live intranet version is not working
   and i’m banging my head trying to figure out. My guess is a Jquery conflict somewhere,
   possibly with TImely Event Calendar. But i’ve disabled and deleted all the plugins
   and it still breaks. Any of this sound familiar?
 * Works on my Test version though. Thanks for fixing. I do like the plugin.

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/subdirectory-bug/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/subdirectory-bug/page/2/?output_format=md)

The topic ‘Subdirectory Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alfie-wp-weather_f6f1e6.svg)
 * [Alfie WP Weather](https://wordpress.org/plugins/alfie-wp-weather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alfie-wp-weather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alfie-wp-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/alfie-wp-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alfie-wp-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alfie-wp-weather/reviews/)

 * 26 replies
 * 3 participants
 * Last reply from: [appcuarium](https://wordpress.org/support/users/appcuarium/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/subdirectory-bug/page/2/#post-3683152)
 * Status: resolved