I got the same error message on two different sites.
same error
Parse error: syntax error, unexpected ‘[‘ in /web/htdocs/www.*******.it/home/wp-content/plugins/amazon-associates-link-builder/lib/php/aalb_tracking_api_helper.php on line 71
-
This reply was modified 8 years, 6 months ago by
NedLud2.
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.
Same issue here!
amazon-associates-link-builder\lib\php\aalb_tracking_api_helper.php on line 71
i have the same error.
and i can’t upgrade my php version
Me too!!
/wp-content/plugins/amazon-associates-link-builder/lib/php/aalb_tracking_api_helper.php on line 71
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();
The issue with plugin activation failure on systems with PHP version < 5.4 is now fixed with v1.2. Please update the plugin to v1.2 and let us know if you still face any such issues.
ok, it works. But for the Amazon Product Advertising API, after 12 months, I will pay or my account will remain free for the basic service?