• Resolved dbseo89

    (@dbseo89)


    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)
  • Hola, yo tengo el mismo error al instalar el plugin ??

    Thread Starter dbseo89

    (@dbseo89)

    Help?

    I’ve got the same error. Sent an email to support, but no reply yet.

    same error ??

    same error

    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.

    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

    (@dbseo89)

    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

    Thanks! Bug fixed!
    But now a warning appears:
    “WARNING – Adminstration of plugin should be done over a secure network. Please switch to HTTPS.”

    @dbseo89, you have to edit the file with filezilla. You can’t do it with wordpress.

    @makmakmak21, you have to configure wordpress with https, but you can use amazon without

    if you can, upgrade your php version

    Thread Starter dbseo89

    (@dbseo89)

    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

    (@dbseo89)

    But… “Default Marketplace” I can not choose, drop down menu does not work!

    i can choose default marketplace.
    What’s your php version?
    And can you force the value?

    Thread Starter dbseo89

    (@dbseo89)

    “Searching relevant products from Amazon”
    ….but finds nothing

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.