• Hi, I’m having a huge problem with a simple thing:

    <?php include("nusoap/lib/nusoap.php"); >

    I get the error:

    “failed to open stream: No such file or directory in /a/b/c/d/wp-content/themes/Maggo/mindex.php”

    This is why I know it’s a WordPress/’user error’ problem:

    If I copy single.php to the /nusoap/lib/ directory then –
    <?php include("nusoap/lib/single.php"); ?>

    It includes single.php okay…

    (which hints it is a nusoap problem).

    However

    If I install the php-execution-plugin, and copy the nusoap lib to the plugin execution path, I can include nusoap.php without any errors from the posts and pages I make through the backend system.

    The problem is, I want to be calling it from my theme, in my header.php file. I’ve tried everything – uploading it to root, to the wp-include directory, to the theme directory. Tried using the full path, the relative path, the absolute path – tried with and without ABSPATH & WPINC defs.

    I’ve even read a few examples of people using nusoap in WP, and tried copying their code, but no luck.

    I’m tearing my hair out here – can’t figure it out :/

    Can anyone help me figure this out? Many thanks…

Viewing 1 replies (of 1 total)
  • Thread Starter missfriendly

    (@missfriendly)

    …and, here’s the stupidest work-around ever…

    In my header.php:

    <?
    $page_id = 1006;
    $page_data = get_page( $page_id );
    $content = $page_data->post_content;
    $page_data->post_content;
    ?>

    Where the content of Page ID 1006 is (thanks to the php-execution-plugin):

    <?php include("nusoap/lib/nusoap.php"); > ?>

    :-/ :-/ :-/ :-/

    hey, it works.

    :-/

Viewing 1 replies (of 1 total)

The topic ‘Problem with the execution/include path (with nusoap / WP2.9.2 )’ is closed to new replies.