Title: &#8220;Can only flip STRING and INTEGER&#8221; Error
Last modified: December 14, 2021

---

# “Can only flip STRING and INTEGER” Error

 *  Resolved [baraak](https://wordpress.org/support/users/baraak/)
 * (@baraak)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/can-only-flip-string-and-integer-error/)
 * Hi,
 * Few days ago Permalink manager stopped redirecting links, instead i was getting
   404 for the redirected links. and i’m getting the following error:
 * PHP Warning: array_flip(): Can only flip STRING and INTEGER values! in wp-content/
   plugins/permalink-manager-pro/includes/core/permalink-manager-core-functions.
   php on line 171′, referer: [https://website.com/wp-admin/edit.php?post_type=product](https://website.com/wp-admin/edit.php?post_type=product)
 * And this is only one error. there are many in other areas too.
 * The only thing that was changed is newly installing W3 Total Cache. however i
   tried to disable that plugin, but the same issue kept occurring.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/can-only-flip-string-and-integer-error/#post-15162750)
 * Hi [@baraak](https://wordpress.org/support/users/baraak/),
 * Could you check what version of Permalink Manager do you use? The problem you
   have experienced occurred in older version of Permalink Manager and was caused
   by script cache plugins (incl. WP Rocket and W3 Total Cache). It seems that because
   of cache the Permalink Manager global variables are malformed and you will need
   either to restore them from backup or recreate them.
 * Please check the below article for more detailed instructions:
    [https://permalinkmanager.pro/docs/basics/performance/#3-why-the-custom-permalinks-disappeared](https://permalinkmanager.pro/docs/basics/performance/#3-why-the-custom-permalinks-disappeared)

Viewing 1 replies (of 1 total)

The topic ‘“Can only flip STRING and INTEGER” Error’ is closed to new replies.

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/can-only-flip-string-and-integer-error/#post-15162750)
 * Status: resolved