Title: Problem with the execution/include path (with nusoap / WP2.9.2 )
Last modified: August 19, 2016

---

# Problem with the execution/include path (with nusoap / WP2.9.2 )

 *  [missfriendly](https://wordpress.org/support/users/missfriendly/)
 * (@missfriendly)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-the-executioninclude-path-with-nusoap-wp292/)
 * 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](https://wordpress.org/support/users/missfriendly/)
 * (@missfriendly)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-the-executioninclude-path-with-nusoap-wp292/#post-1467670)
 * …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.

 * 1 reply
 * 1 participant
 * Last reply from: [missfriendly](https://wordpress.org/support/users/missfriendly/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/problem-with-the-executioninclude-path-with-nusoap-wp292/#post-1467670)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
