• Resolved DavidOfMA

    (@davidofma)


    About half an hour ago, Jetpack notified me that it was unable to log into the test site I’m building into which I’ve installed Amazon Associates Link Builder. Trying to view the site or log in returned a 500 error. I checked the error log, and this is what I found:

    [05-Dec-2017 02:44:09 UTC] PHP Fatal error:  Cannot use object of type WP_Error as array in /home/[myrootfolder]/public_html/[websitesubfolder]/wp-content/plugins/amazon-associates-link-builder/ip2country/aalb_maxmind_db_manager.php on line 94
    [05-Dec-2017 02:45:15 UTC] Maxmind_db_manager:get_db:::Forbidden

    I then manually disabled the plugin and was able to log in normally.

    I don’t know enough about PHP to understand what happened here. I had done nothing to the site since this morning. I’d like to continue using the plugin and would appreciate your help in debugging this problem.

    This is the function line 94 is part of:

        private function check_and_update_db() {
            try {
                $response = $this->get_db();
                if ( $response ) {
                    if ( $this->should_update_db( $response["response"] ) ) {
                        $this->update_db( $response );
                    }
                    update_option( AALB_GEOLITE_DB_EXPIRATION_TIME, strtotime( wp_remote_retrieve_header( $response["response"] , 'expires' ) ) );
                }
            }
            catch ( Exception $e ) {
                error_log( "Error in maxmind_db_manager:should_update_db:::" . $e->getMessage() );
            }
        }
    

    Thanks,
    David

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear users,

    • Regarding Error in maxmind_db_manager:get_db:::WP_ERROR: Forbidden,
      this is dumped in logs when plugin is not able to contact maxmind to download GeoLite2 Database for IP2Country feature & reason for this error is that your hosting provider is forbidden to access this link to download maxmind db for some reason. This is not a fatal error and will only block you from using geo-targeted links feature
    • Regarding the users facing issues in activating the plugin or the ones whose site got crashed on the update, please note the following:
      The minimum supported PHP version for this plugin is 5.4.0. Although, instead of showing an error message and deactivating the plugin, it is giving a fatal error. We are working to fix that. Meanwhile, please update to PHP version >= 5.4.0 as even after the fix, you will not be able to use the plugin with a version < 5.4.0.
      Sincere apologies for all the inconvenience caused due to the same.
      Also please report to us if you still faced the issue with PHP version>=5.4.0
    Quique

    (@enriccardonagmailcom)

    Hello there, I contacted my host provider and they informed me that they are not forbidding any sort of access to that link mentioned.

    Same here. I asked my hosting provider and they do not block access and I am still having the error.

    Can’t you provide a deactivate button for the location feature? I don’t need it for my implementation anyway…

    Please forgive this interruption, but the only way I can figure out how to stop follow-up emails is to submit a response so I can un-check the notify box. My solution was to uninstall the plugin. One too many site crashes for me – again, the last one occurring just after I made my first qualifying sales and during my review process. My account was deleted because Amazon was “unable to verify my site” due to a fatal error. Bizarre timing. The number of hours it took to re-link under a new store-id was grueling. To add insult that injury, the woman who took my call said, “Our plugin was designed for WordPress. It’s not going to crash your site.” It didn’t matter that I had a screenshot of the error and the cause. No accountability. Draconian policy. Irritating.

    I hope you get it worked out. I really liked how the links looked. Very polished. Even if you do, though, I’ll never install it again. I can admire it from afar if I come across it on someone else’s site.

    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear users,

    We fixed the issues in v1.5.3 of plugin released yesterday. Please update the same and let us know if everything works fine.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘The plugin crashed my site’ is closed to new replies.