문제

I have been trying to use a sample from Amazon MWS API but whatever I do I always get blank page with error 500.

I have setup the IDs correctly. cURL is up and running The server has correct SSL certificates (I tried the samples on two different servers I have) I have tried a sample on the scratchpad and it works

Does anyone have an idea about this problem?

Any help is appreciated

도움이 되었습니까?

해결책

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/');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top