As an Amazon Associate I earn from qualifying purchases.
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home1/cougars1/public_html/include/paapi5-php-sdk-example-2/MySearchItemsApi.php:152
Stack trace:
#0 /home1/cougars1/public_html/include/football_functions.php(1340): searchItems('Camera', 2, 1, true)
#1 /home1/cougars1/public_html/include/football_functions.php(1311): AmazonAffiliatesAd->getAdList('Camera', 2, true)
#2 /home1/cougars1/public_html/include/football_functions.php(744): AmazonAffiliatesAd->__construct('square', false)
#3 /home1/cougars1/public_html/include/games_functions.php(1559): AdFactory::create('square', false)
#4 /home1/cougars1/public_html/games.php(190): GameStats->__construct(36892)
#5 {main}
thrown in /home1/cougars1/public_html/include/paapi5-php-sdk-example-2/MySearchItemsApi.php on line 152