Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8880313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:08:39+00:00 2026-06-14T20:08:39+00:00

I am having a really frustrating problem with my Zend Service Amazon package integrated

  • 0

I am having a really frustrating problem with my Zend Service Amazon package integrated into my codeigniter framework. The library works perfectly fine in my localhost but when I try it from the live site it doesn’t work, it gives me an internal server error. Why could this be?

The error in the PHP log is:

[22-Nov-2012 21:29:02] PHP Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home5/tradejun/public_html/application/controllers/dev.php on line 30
[22-Nov-2012 21:29:02] PHP Parse error: syntax error, unexpected T_STRING in /home5/tradejun/public_html/application/controllers/dev.php on line 30

Line 30:

$autoloader = new Zend\Loader\StandardAutoloader(array(

Here is my controller function:

public function amazon2($isbn)    {
    set_include_path(get_include_path() . PATH_SEPARATOR . 'application/libraries/Amazon');
    require_once 'Zend/Loader/StandardAutoloader.php';

    $autoloader = new Zend\Loader\StandardAutoloader(array(
        'namespaces' => array(
            'Zend'        => dirname(__FILE__) . '/Zend',
            'ZendRest'    => dirname(__FILE__) . '/ZendRest',
            'ZendService' => dirname(__FILE__) . '/ZendService',
        ),
        'fallback_autoloader' => true));

    $autoloader->register();

    $tag       = 'colleg-21'; // replace with your Amazon app ID
    $appId     = '[appid]'; // replace w/ your access key from https://portal.aws.amazon.com/gp/aws/securityCredentials
    $secretKey = '[secretkey]';
    $query  = new ZendService\Amazon\Query($appId, 'UK', $secretKey);
    $item   = $query->itemLookup($isbn,
        array('SearchIndex'   => 'Books',
            'AssociateTag'  => $tag,
            'IdType'        => 'ISBN',
            'ResponseGroup' => 'Large',));
    $item->smallImageAddress = $item->SmallImage->Url->getImageAddress();
    $item->mediumImageAddress = $item->MediumImage->Url->getImageAddress();
    $item->largeImageAddress = $item->LargeImage->Url->getImageAddress();
    $data['item'] = $item;
    $this->load->view('development/amazon',$data);
}

Can anyone provide any suggestions or possible solutions?

Points

  • Works perfectly fine on localhost, but not on live host server
  • I am using ZendService_Amazon-2.0.2.zip
  • CodeIgniter version is 2.02
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:08:40+00:00Added an answer on June 14, 2026 at 8:08 pm

    It must be an old version of php – doesn’t support namespaces. You need php 5.3 for namespaces. You’ll need to upgrade.

    Edit: corrected version number required for namespaces; only need 5.3, not 5.4. Thanks, E_p

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a really frustrating problem with SharedPreference.getBoolean in android. See the following snippet:
I'm having a really frustrating issue: Rake is being dumb. Here's how the problem
I am having a really frustrating problem in CakePHP where a space keeps coming
I'm having a really frustrating problem with a page at the moment. I'm using
I'm having a really frustrating problem I hope someone can help me with. Here
I'm having a really frustrating error trying to secure an ASP.NET application using the
Having a really aggravating problem using Managed Metadata in SP2010 where I can get
I'm really having a problem finding out how to fix this. I cannot seem
I'm having a really strange problem. I have 2 virtual machines running ubuntu 11.4
hey guys having this really simple problem but cant seem to figure out have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.