• Resolved pkd

    (@peter-king-design)


    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.

    https://www.ads-software.com/extend/plugins/alfie-wp-weather/

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author appcuarium

    (@appcuarium)

    Hi,

    Right, there should be an update including a fix for this issue in a few hours.

    The Alfie Team

    Plugin Author appcuarium

    (@appcuarium)

    Marking this as resolved.

    Thread Starter pkd

    (@peter-king-design)

    Thanks for the quick response!

    Got this when i updated the plugin:

    ! ) SCREAM: Error suppression ignored for
    ( ! ) Warning: include(shortcode.php) [function.include]: 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]: 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

    (@appcuarium)

    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

    (@peter-king-design)

    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

    (@appcuarium)

    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.

    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

    (@appcuarium)

    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

    Thread Starter pkd

    (@peter-king-design)

    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

    (@appcuarium)

    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

    (@peter-king-design)

    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

    (@appcuarium)

    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

    It works great! Love your plugin and great support!

    Thread Starter pkd

    (@peter-king-design)

    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)
  • The topic ‘Subdirectory Bug’ is closed to new replies.