• Hi trying to do the test and when connecting to my site via API /wp-json/lmfwc/v2/generators the response is a 500 error. Any idea on places to start? We are hosted on wordpress.com if that is relevant and I dont have the ability to modify .htaccess if that is the fix. any idea where to even see the log

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zz409

    (@zz409)

    Php error log says #19 {main}
    thrown in /srv/htdocs/wp-content/plugins/license-manager-for-woocommerce/includes/api/Authentication.php on line 221

    and that is

    /**
         * Return the user data for the given consumer_key.
         *
         * @param string $consumerKey Part of the user authentication
         * 
         * @return array
         */
        public function getUserDataByConsumerKey($consumerKey)
        {
            global $wpdb;
    
            $consumerKey = wc_api_hash(sanitize_text_field($consumerKey));
            $user        = $wpdb->get_row(
                $wpdb->prepare(
                    "
                        SELECT id, user_id, permissions, consumer_key, consumer_secret, nonces
                        FROM {$wpdb->prefix}lmfwc_api_keys
                        WHERE consumer_key = %s
                    ",
                    $consumerKey
                )
            );
    
            return $user;
        }
    Thread Starter zz409

    (@zz409)

    pls

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘500 error from API’ is closed to new replies.