ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Amazon API

November 22, 2007 11:38am

Subscribe [6]
  • #16 / Nov 06, 2008 12:58pm

    jleijenaar

    10 posts

    Hi,

    I used CI + Zend libraries to create an amazon webservice client.

    I got it working on a local server, but on the enginehosting server it doesn’t parse the image url, instead i get an object id: http://the-artists.ehclients.com/books/picasso

    I also uploaded the client to an other server, no problem there:
    http://dekunstvanwolf.info/theartists/ci/index.php/shop/books/picasso

    So it has probably something to do with a configuration of the server.

    Can anybody help me out with this problem?

    thx,

    Jorgen

  • #17 / Nov 06, 2008 10:58pm

    Zac G.

    268 posts

    @Jorgen - That is interesting… I don’t have experience with enginehosting, but I am sure they will provide you with support, no?

    @Crimp - I finally got the code ready for community review and posted it to the wiki: http://codeigniter.com/wiki/Amazon_Services_API_Integration/  I hope it works for others!

  • #18 / Nov 06, 2008 11:45pm

    Derek Allard

    3168 posts

    I got it working on a local server, but on the enginehosting server it doesn’t parse the image url, instead i get an object id: http://the-artists.ehclients.com/books/picasso

    I also uploaded the client to an other server, no problem there:
    http://dekunstvanwolf.info/theartists/ci/index.php/shop/books/picasso

    Hey Jorgen,

    Are the files identical?  PHP versions the same?

    Can you share the code you’ve got so that I can try to re-create?  DerekAllard.com is on EngineHosting (I love them), so it’ll be easy for me to try to recreate this and I’m happy to help out.

  • #19 / Nov 07, 2008 4:46am

    jleijenaar

    10 posts

    @Zac G. : Yes, enginehosting does offer support for this problem, but no solution until now. I will try your code this weekend, thx

    @Derek Allard :
    At first I thought it had something to do with the following warning I get on all servers:

    Severity: Warning --> fopen(Zend/Validate/Hostname/Com.php) [<a href="http://function.fopen">function.fopen</a>]: failed to open stream: No such file or directory /www/eh8971/public_html/ci/system/application/libraries/Zend/Loader.php 160

    But then I found this reply on a post about this warning:

    “The Zend_Validate_Hostname code is capable of having per-top-level-domain validation. It looks like this is primarily intended for international domain names, so there is no separate logic for ‘.com’ extensions. The Zend_Validate_Hostname code is checking to see whether a file with the name Zend/Validate/Hostname/Com.php is readable by calling Zend_Loader::isReadable($filename), which is in turn checking whether fopen succeeds.”

    To be sure that this warning is not the cause of my problem I am going to try my code on the enginehosting server under an other domain than a .com domain >> com.php is missing.

    I will keep you updated

    I attached the controller I use.
    You will need to add the Zend libraries to CI: http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/

    thank you,

    Jorgen

  • #20 / Nov 07, 2008 1:46pm

    jleijenaar

    10 posts

    To be sure that this warning is not the cause of my problem I am going to try my code on the enginehosting server under an other domain than a .com domain >> com.php is missing.

    It didn’t resolve the problem

    @Derek Allard: Can you check my webservice client at the enginehosting server? Thanks for the help

  • #21 / Nov 08, 2008 5:58am

    jleijenaar

    10 posts

    @Derek:

    I fixed it..😊

    When I echo $image->Url on a seperate line I get the url.

    Does this sound familiar to you?
    It’s strange behaviour to me.
    When I had used a view I probably wouldn’t had this problem…:-)

    When I have finished my code I will post it here, in the wiki

  • #22 / Nov 08, 2008 9:34am

    Derek Allard

    3168 posts

    Hey, I didn’t even get a chance to look at this yesterday, so I’m thrilled you got it 😉 I’ll still take a quick run through it as I find some time this weekend or early next week anyhow (just so you know).  Thanks for reporting back.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases