Forums

WordPress-Amazon-Associate
[resolved] Conflict with Amazon Machine Tags shortcodes (5 posts)

  1. gorky5
    Member
    Posted 1 year ago #

    The most recent version of WordPress Amazon Associate is causing problems whenever Amazon Machine Tags plugin shortcodes are used (I have both plugins running on my site, pending a full conversion to WPAA).

    The AMTag shortcodes are [amtap amazon:asin=B00XXXXXX]. However, if WPAA is activated I get broken pages and the following message:

    Fatal error: Call to undefined function curl_init() in /home/accountname/public_html/sitename.com/www/wp/wp-content/plugins/wordpress-amazon-associate/WPAA.php on line x

    It fails at the precise point where it gets to an Amazon Machine Tags shortcode. The only way my pages aren't broken is if I disable WPAA. Previous versions of WPAA worked fine - it's just the latest update that is awry.

    http://wordpress.org/tags/wordpress-amazon-associate

  2. mdbitz
    Member
    Posted 1 year ago #

    Hi:

    This is not a plugin compatibility issue. WordPress Amazon Associate requires the cURL extension be installed to function fully. As part of 1.6.0 I extended Geo-Localization of static amazon product links. This requires a request to amazon to verify the localized link exists so visitors are not sent to 404 Page Not Found error page.

    > Matthew

  3. gorky5
    Member
    Posted 1 year ago #

    OK, so how can I get WPAA to play nicely? I have the cURL extension installed on my server. At the moment your plugin has to be disabled as it's breaking my pages.

  4. mdbitz
    Member
    Posted 1 year ago #

    Make sure that it is enabled in your php.ini file. Although it is installed it may be commented out in the file disabling. The only reason you would get the error Fatal error: Call to undefined function curl_init() is because cURL is not installed or disabled.

    > Matthew J. Denton

  5. gorky5
    Member
    Posted 1 year ago #

    You're right - thanks so much Matthew.

    My sysadmin re-installed php5-curl and curl and it works perfectly now. I'll mark this as resolved, and sorry for presuming it was a plugin conflict before.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic