Title: Parse error: syntax error, unexpected &#8216;[&#8216;
Last modified: December 16, 2016

---

# Parse error: syntax error, unexpected ‘[‘

 *  Resolved [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/)
 * Parse error: syntax error, unexpected ‘[‘ in ……..wp-content/plugins/amazon-associates-
   link-builder/lib/php/aalb_tracking_api_helper.php on line 71

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/page/2/?output_format=md)

 *  [makmakmak21](https://wordpress.org/support/users/makmakmak21/)
 * (@makmakmak21)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8560005)
 * Hola, yo tengo el mismo error al instalar el plugin 🙁
 *  Thread Starter [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8560120)
 * Help?
 *  [DaveB](https://wordpress.org/support/users/alkowna/)
 * (@alkowna)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8560889)
 * I’ve got the same error. Sent an email to support, but no reply yet.
 *  [suigintou](https://wordpress.org/support/users/suigintou/)
 * (@suigintou)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8562073)
 * same error 🙁
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8562312)
 * same error
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8562320)
 * Amazon said :
 * > Thank you for sharing your feedback. We are closely tracking this issue and
   > expect to fix it with next version of the plugin. Please note that the issue
   > should only impact applications running on PHP version older than php-5.4.28.
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8563890)
 * so if you have the error, you can fix it :
    /wp-content/plugins/amazon-associates-
   link-builder/lib/php/aalb_tracking_api_helper.php on line 71 replace //return
   json_decode($response, true)[“link-id”]; by $obj = json_decode($response,true);
   return $obj->{‘link-id’};
 * and
 * in wp-content/plugins/amazon-associates-link-builder/includes/aalb_config_loader.
   php
    replace //$updated_marketplace = []; by $updated_marketplace=array();
 *  Thread Starter [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8564190)
 * i haven’t amazon-associates-link-builder/lib/php/aalb_tracking_api_helper.php
 * file:
 * amazon-associates-link-builder/amazon-associates-link-builder.php
    amazon-associates-
   link-builder/admin/aalb_admin.php amazon-associates-link-builder/readme.txt amazon-
   associates-link-builder/shortcode/aalb_shortcode_loader.php amazon-associates-
   link-builder/shortcode/aalb_shortcode.php amazon-associates-link-builder/aalb_config.
   php amazon-associates-link-builder/css/aalb_basics.css amazon-associates-link-
   builder/template/ProductGrid.css amazon-associates-link-builder/template/ProductAd.
   css amazon-associates-link-builder/template/ProductCarousel.css amazon-associates-
   link-builder/template/PriceLink.css amazon-associates-link-builder/NOTICE.txt
   amazon-associates-link-builder/includes/aalb_config_loader.php amazon-associates-
   link-builder/includes/aalb_autoloader.php amazon-associates-link-builder/includes/
   aalb_remote_loader.php amazon-associates-link-builder/includes/aalb_manager.php
   amazon-associates-link-builder/includes/aalb_template_engine.php amazon-associates-
   link-builder/includes/aalb_hook_loader.php amazon-associates-link-builder/includes/
   aalb_cache_template_loader.php amazon-associates-link-builder/includes/aalb_cache_loader.
   php amazon-associates-link-builder/includes/aalb_deactivator.php amazon-associates-
   link-builder/includes/aalb_activator.php amazon-associates-link-builder/includes/
   aalb_helper.php amazon-associates-link-builder/COPYING.txt
 *  [makmakmak21](https://wordpress.org/support/users/makmakmak21/)
 * (@makmakmak21)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8564271)
 * Thanks! Bug fixed!
    But now a warning appears: _“WARNING – Adminstration of plugin
   should be done over a secure network. Please switch to HTTPS.”_
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8564723)
 * [@dbseo89](https://wordpress.org/support/users/dbseo89/), you have to edit the
   file with filezilla. You can’t do it with wordpress.
 * [@makmakmak21](https://wordpress.org/support/users/makmakmak21/), you have to
   configure wordpress with https, but you can use amazon without
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8564727)
 * if you can, upgrade your php version
 *  Thread Starter [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8565023)
 * Thanks… solved!
 * /wp-content/plugins/amazon-associates-link-builder/lib/php/aalb_tracking_api_helper.
   php on line 71
    replace //return json_decode($response, true)[“link-id”]; by 
   $obj = json_decode($response,true); return $obj->{‘link-id’};
 * and
 * in wp-content/plugins/amazon-associates-link-builder/includes/aalb_config_loader.
   php
    replace //$updated_marketplace = []; by $updated_marketplace=array();
 *  Thread Starter [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8565035)
 * But… “Default Marketplace” I can not choose, drop down menu does not work!
 *  [jaoden](https://wordpress.org/support/users/jaoden/)
 * (@jaoden)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8565049)
 * i can choose default marketplace.
    What’s your php version? And can you force
   the value?
 *  Thread Starter [dbseo89](https://wordpress.org/support/users/dbseo89/)
 * (@dbseo89)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/#post-8565085)
 * “Searching relevant products from Amazon”
    ….but finds nothing

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/page/2/?output_format=md)

The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-associates-link-builder_fec375.
   svg)
 * [Amazon Associates Link Builder](https://wordpress.org/plugins/amazon-associates-link-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-associates-link-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-associates-link-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-associates-link-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-associates-link-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-associates-link-builder/reviews/)

 * 19 replies
 * 6 participants
 * Last reply from: [Amazon Associates Link Builder](https://wordpress.org/support/users/amazonlinkbuilder/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-186/page/2/#post-8572004)
 * Status: resolved