Title: Error in WPLA_Amazon_SP_API.php
Last modified: August 20, 2024

---

# Error in WPLA_Amazon_SP_API.php

 *  Resolved [bb86](https://wordpress.org/support/users/bb86/)
 * (@bb86)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-in-wpla_amazon_sp_api-php/)
 * Since yesterday I’ve been getting the following error message and I’m not sure
   of the cause. I restored the WordPress site with older backups, but that didn’t
   change anything. I changed the PHP versions in Siteground, but that didn’t help
   either. Any help would be greatly appreciated.
 * An error of type E_ERROR was caused in line 1254 of the file /home/customer/www/%.
   com/public_html/wp-content/plugins/wp-lister-for-amazon/classes/core/WPLA_Amazon_SP_API.
   php. Error message: Uncaught Error: Call to a member function getOrders() on 
   null in /home/customer/www/%.com/public_html/wp-content/plugins/wp-lister-for-
   amazon/classes/core/WPLA_Amazon_SP_API.php:1254
   Stack trace: 0 /home/customer/
   www/%.com/public_html/wp-content/plugins/wp-lister-for-amazon/classes/core/WPLA_CronActions.
   php(368): WPLA_Amazon_SP_API->getOrders(‘2024-08-18 22:0…’, false) 1 /home/customer/
   www/%.com/public_html/wp-includes/class-wp-hook.php(324): WPLA_CronActions->action_update_orders(”)
   2 /home/customer/www/%.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters(”, Array) 3 /home/customer/www/%.com/public_html/wp-includes/plugin.
   php(517): WP_Hook->do_action(Array) 4 /home/customer/www/%.com/public_html/wp-
   content/plugins/wp-lister-for-amazon/classes/page/OrdersPage.php(137): do_action(‘
   wpla_update_ord…’) 5 /home/customer/www/%.com/public_html/wp-content/plugins/
   wp-lister-for-amazon/classes/page/OrdersPage.php(239): WPLA_OrdersPage->handleActions()
   6 /home/customer/www/%.com/public_html/wp-includes/class-wp-hook.php(324): WPLA_OrdersPage-
   >displayOrdersPage(”) 7 /home/customer/www/%.com/public_html/wp-includes/class-
   wp-hook.php(348): WP_Hook->apply_filters(”, Array) 8 /home/customer/www/%.com/
   public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /home/customer/
   www/%.com/public_html/wp-admin/admin.php(259): do_action(‘amazon_page_wpl…’) 
   10 {main}
 * thrown

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [bb86](https://wordpress.org/support/users/bb86/)
 * (@bb86)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-in-wpla_amazon_sp_api-php/#post-17964393)
 * I also got this message in the account options:
   Error: This account does not 
   seem to be valid. Please check your MWS credentials and update the account details.
   I fully uninstalled everything and refetched keys from amazon but still no luck.
 * I also installed the plugin on a wordpress site using php 7.4 but got the same
   error.
 *  Thread Starter [bb86](https://wordpress.org/support/users/bb86/)
 * (@bb86)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-in-wpla_amazon_sp_api-php/#post-17964535)
 * Is working again, I didn’t change anything. Strange.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error in WPLA_Amazon_SP_API.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-lister-for-amazon/assets/icon-256x256.png?rev=2160056)
 * [WP-Lister Lite for Amazon](https://wordpress.org/plugins/wp-lister-for-amazon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lister-for-amazon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lister-for-amazon/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lister-for-amazon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lister-for-amazon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lister-for-amazon/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [bb86](https://wordpress.org/support/users/bb86/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/error-in-wpla_amazon_sp_api-php/#post-17964535)
 * Status: resolved