It sounds like the MWS SDK __autoload
function is having trouble finding the MWS Class files. Take a look in the .config.inc.php file for that function definition. I think you'll find it in the 'Samples' directory.
Make sure that .config.inc.php is getting included in the sample script you're trying to run. It might help to print out the include path the script is using by adding echo get_include_path();
in the sample script and temporarily commenting out the line that is throwing fatal errors. If the correct path to your MWS class files is not printed out with get_include_path()
you'll need to add in a set_include_path()
call in .config.inc.php to get the __autoload
function to work correctly.
For example:
set_include_path(get_include_path() . PATH_SEPARATOR . 'my/MWS_SDK/path/');