Guest User

Error code

a guest
May 12th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. Notice (8): Undefined index: categories [APP/Controller/AppController.php, line 158]
  2. Code Context
  3. //Loop throug categories to search if have cards
  4. $return['data']['cards'] = FALSE;
  5. foreach ($return['data']['categories'] as $cat) {
  6. $appID = '211070'
  7. $currency = 'en'
  8. $cacheName = 'gamesInfo'
  9. $return = array(
  10. 'success' => false,
  11. 'data' => array(
  12. 'cards' => false
  13. )
  14. )
  15. $url = 'http://store.steampowered.com/api/appdetails?appids=211070&cc=en'
  16. $json = array(
  17. (int) 211070 => array(
  18. 'success' => false
  19. )
  20. )
  21. AppController::getAppInfo() - APP/Controller/AppController.php, line 158
  22. AjaxController::couponUserModal() - APP/Controller/AjaxController.php, line 41
  23. ReflectionMethod::invokeArgs() - [internal], line ??
  24. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
  25. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  26. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  27. [main] - APP/webroot/index.php, line 116
  28. Warning (2): Invalid argument supplied for foreach() [APP/Controller/AppController.php, line 158]
  29. Code Context
  30. //Loop throug categories to search if have cards
  31. $return['data']['cards'] = FALSE;
  32. foreach ($return['data']['categories'] as $cat) {
  33. $appID = '211070'
  34. $currency = 'en'
  35. $cacheName = 'gamesInfo'
  36. $return = array(
  37. 'success' => false,
  38. 'data' => array(
  39. 'cards' => false
  40. )
  41. )
  42. $url = 'http://store.steampowered.com/api/appdetails?appids=211070&cc=en'
  43. $json = array(
  44. (int) 211070 => array(
  45. 'success' => false
  46. )
  47. )
  48. AppController::getAppInfo() - APP/Controller/AppController.php, line 158
  49. AjaxController::couponUserModal() - APP/Controller/AjaxController.php, line 41
  50. ReflectionMethod::invokeArgs() - [internal], line ??
  51. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
  52. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  53. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  54. [main] - APP/webroot/index.php, line 116
Advertisement
Add Comment
Please, Sign In to add comment