Problem with the execution/include path (with nusoap / WP2.9.2 )
-
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…
The topic ‘Problem with the execution/include path (with nusoap / WP2.9.2 )’ is closed to new replies.