Title: Invalid argument pager.php
Last modified: August 22, 2016

---

# Invalid argument pager.php

 *  [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invalid-argument-pagerphp/)
 * When trying to delete all records in the log, WP returns this warning:
    Warning:
   Invalid argument supplied for foreach() in /home/***/public_html/wp-content/plugins/
   redirection/models/pager.php on line 88
 * Warning does not occur in the 404 log.
 * Would be nice to fix.
    Thanks!
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

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

 *  [maiki](https://wordpress.org/support/users/maiki/)
 * (@maiki)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-pagerphp/#post-5310539)
 * I can’t reproduce this, so if you think the plugin author should fix it, you’ll
   have to include more information. I suggest trying it on a different site, to
   see if the error happens again. Then you have data to debug, such as your server
   setup or something else. ^_^
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-pagerphp/#post-5310571)
 * I can’t find a rule yet to describe so you can test it too. But bug has occured
   at least once more since my posting here. As soon as I get the logic I’ll write
   it here.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-pagerphp/#post-5310599)
 * I think I found a way to reproduce the bug. In the page: wp-admin/tools.php?page
   =redirection.php&sub=log if you select “delete” option in the bottom of the page
   without actually selecting any entry in the page to be deleted, this error will
   appear:
 * Warning: Invalid argument supplied for foreach() in /home/***/public_html/wp-
   content/plugins/redirection/models/pager.php on line 457
 * Then, if you select the delete all, in the same page, the error is kept on top
   of the page (it may not appear again, but only the message could be shown.. this
   is only a supposition)

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

The topic ‘Invalid argument pager.php’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [foreach](https://wordpress.org/support/topic-tag/foreach/)
 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [M](https://wordpress.org/support/users/infolegal/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-pagerphp/#post-5310599)
 * Status: not resolved